Uploading meeting recordings
Upload a meeting's transcript, with its audio or video if you have it, and attach them to a meeting in Lightfield, or remove a transcript that was uploaded by mistake.
You can bring a past call into Lightfield through the API: upload its transcript and, if you have it, its audio or video, then attach both to the meeting. Each upload becomes a recording on the meeting, next to any from Lightfield’s recorder, Gong or Granola. That makes the API a good fit for importing calls from a dialer, a call recorder or another CRM.
To read recordings and transcripts back, see Retrieving meeting transcripts.
Before you begin
Section titled “Before you begin”You’ll need:
- A valid API key
- The
files:createscope to upload and complete files - The
meetings:updatescope to attach recordings to a meeting - The
meetings:createscope if you also create the meeting - Optional
meetings:readandfiles:readscopes to check the result
A synced email attachment cannot be reused as the transcript file. Upload and complete a new transcript file instead; reusing the email attachment’s ID returns Email attachments cannot be attached as transcripts. See adding transcript text in the app for the manual alternative.
Check access before attaching
Section titled “Check access before attaching”To attach a recording or update a meeting, the caller must be a meeting participant or a workspace owner. Admins who aren’t participants get a 403. Read access alone doesn’t grant edit access. Creating a meeting doesn’t guarantee that a creator who isn’t an owner can update it later, so make sure that caller qualifies as a participant. Meeting privacy and transcript visibility explains which role a workspace key is checked with.
After the write, a caller with metadata-only access may not see the transcript relationship or the meeting’s recordings. Read Meeting privacy and transcript visibility before treating a missing transcript as a failed upload.
Upload the files
Section titled “Upload the files”Every recording needs a transcript. Audio or video is optional: you can attach it with the transcript or add it later, but not without a transcript. Upload each file through the file upload lifecycle, using the purpose that matches it:
| File | purpose | Types | Size limit |
|---|---|---|---|
| Transcript | meeting_transcript | text/plain, text/markdown, application/markdown | 20 MB |
| Audio or video | meeting_recording | video/mp4, video/webm, video/quicktime, audio/mpeg, audio/mp4, audio/x-m4a, audio/wav, audio/webm, audio/ogg | 512 MB |
For each file:
POST /v1/fileswith the file’spurpose,filename,mimeTypeandsizeBytesPUT <uploadUrl>with the bytes and the returneduploadHeadersPOST /v1/files/{id}/complete
Until audio or video is attached to a recording, only whoever uploaded it can read it: the same API key, or the same user.
Attach a recording to a meeting
Section titled “Attach a recording to a meeting”Use an existing meeting’s ID, or create a meeting first. Both $startDate and $endDate must be in the past.
Then create the recording with the transcript’s file ID and, if you have it, the audio or video’s file ID. Both attach in one write, so a request that fails attaches neither file.
curl https://api.lightfield.app/v1/meetings/$MEETING_ID/recordings \ -X POST \ -H "Authorization: Bearer $LIGHTFIELD_API_KEY" \ -H "Lightfield-Version: 2026-03-01" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: import-call-001" \ -d '{ "transcriptFileId": "fil_transcript123", "mediaFileId": "fil_video123" }'The response is the new recording. Its media.url is a short-lived download link for the audio or video:
{ "id": "rec_abc123", "provider": "UPLOAD", "recordedAt": null, "recordedBy": "Alex Rivera", "isCanonical": true, "transcript": { "fileId": "fil_transcript123" }, "media": { "url": "https://...", "mimeType": "video/mp4" }}The new recording becomes the meeting’s canonical transcript, the one its summary and relationships.$transcript use. To add it without changing that, send "isCanonical": false. On a meeting where nobody has chosen a canonical transcript, Lightfield prefers its recorder, then Gong, then Granola, then uploads, and the newest within each, so a new upload can still become canonical. Sending a transcript that’s already on the meeting returns its existing recording instead of creating a second one.
Choose a new idempotency key for each intended write and reuse it only when retrying the same request. See Idempotency.
Add or replace audio or video later
Section titled “Add or replace audio or video later”To add audio or video to an uploaded recording, or to replace what it has, upload the file with purpose: "meeting_recording", then update the recording:
curl https://api.lightfield.app/v1/meetings/$MEETING_ID/recordings/$RECORDING_ID \ -X POST \ -H "Authorization: Bearer $LIGHTFIELD_API_KEY" \ -H "Lightfield-Version: 2026-03-01" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: add-video-001" \ -d '{ "mediaFileId": "fil_audio456" }'Replacing audio or video deletes the previous file, and that can’t be undone. Recordings from Lightfield’s recorder, Gong and Granola come from their source, so they can’t be given audio or video here; the request returns a 422.
To make any recording the canonical transcript, whatever its source, send { "isCanonical": true } to the same endpoint. The recording needs a transcript file, which some older recordings from Lightfield’s recorder don’t have. "isCanonical": false is rejected; set isCanonical: true on another recording instead.
Automations that run when a transcript is added to a meeting run when an upload becomes the meeting’s canonical transcript. Adding or replacing its audio or video doesn’t run them again.
If a request fails
Section titled “If a request fails”| Status | What to check |
|---|---|
400 | The body has a missing or unknown field, for example a recording without transcriptFileId. |
403 | The caller isn’t a meeting participant or a workspace owner. See Check access before attaching. |
404 | The meeting or recording doesn’t exist, or the caller can’t see it. |
422 | A file can’t be used: it isn’t complete, its purpose or type is wrong, or it’s already attached elsewhere. Also returned for audio or video on a recording from another source, for "isCanonical": false, and for an update with neither mediaFileId nor isCanonical. |
How transcript attachment works
Section titled “How transcript attachment works”You can also attach a transcript through the meeting’s $transcript relationship. It’s the shortest path when you create the meeting and its transcript in one request, but it can’t attach audio or video. A transcript attached this way is a recording like any other: it’s listed with the meeting’s recordings, and you can add its audio or video later as shown above.
There are two supported patterns:
| Pattern | When to use | Meeting request |
|---|---|---|
| Attach on create | You are creating the meeting and transcript together | POST /v1/meetings with relationships.$transcript |
| Attach on update | The meeting already exists, or you want to replace the transcript later | POST /v1/meetings/{id} with relationships.$transcript.replace |
In both patterns, you first upload and complete the transcript as in Upload the files, then attach the completed file to the meeting.
Option A: create a meeting with a transcript attached
Section titled “Option A: create a meeting with a transcript attached”Create the meeting and set relationships.$transcript to the completed file id.
Both $startDate and $endDate must be in the past. Pass a single organizer email in $organizerEmail. See Create a meeting for the request contract.
curl https://api.lightfield.app/v1/meetings \ -X POST \ -H "Authorization: Bearer $LIGHTFIELD_API_KEY" \ -H "Lightfield-Version: 2026-03-01" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: attach-transcript-001" \ -d '{ "fields": { "$title": "Customer Call", "$startDate": "2026-04-07T21:00:00.000Z", "$endDate": "2026-04-07T21:45:00.000Z", "$description": "Q2 renewal call with Acme", "$meetingUrl": "https://meet.google.com/abc-defg-hij", "$organizerEmail": "alex@acme.com", "$attendeeEmails": ["alex@acme.com", "jamie@example.com"], "$privacySetting": "FULL" }, "relationships": { "$transcript": "fil_abc123" } }'Option B: attach or replace a transcript on an existing meeting
Section titled “Option B: attach or replace a transcript on an existing meeting”If the meeting already exists, upload and complete the transcript file first. Then update the meeting by setting relationships.$transcript.replace. This works for both manual and already-synced meetings as long as the caller is allowed to edit the meeting.
curl https://api.lightfield.app/v1/meetings/$MEETING_ID \ -X POST \ -H "Authorization: Bearer $LIGHTFIELD_API_KEY" \ -H "Lightfield-Version: 2026-03-01" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: replace-transcript-001" \ -d '{ "relationships": { "$transcript": { "replace": "fil_abc123" } } }'Update a meeting sets the selected file as the canonical transcript. If the file isn’t already on the meeting, it’s attached first. The previous transcript stays in relationships.$transcripts and isn’t deleted.
Remove an uploaded transcript
Section titled “Remove an uploaded transcript”If a transcript was uploaded to the wrong meeting, remove it by updating the meeting with relationships.$transcript.remove set to its file ID. The meeting’s relationships.$transcripts lists the file ID of every transcript on it. Removing needs meetings:update and the same edit access as attaching (see Check access before attaching).
Removing can’t be undone. Lightfield deletes the transcript and its file, along with any audio or video attached to it, unless a file is also attached somewhere else in Lightfield. The meeting summary then depends on what’s left:
- If the removed transcript was the canonical one and others remain, the next transcript in Lightfield’s default order becomes canonical and the meeting summary is regenerated from it.
- If it was the meeting’s last transcript, the meeting summary is cleared.
- Otherwise, the meeting summary stays as it is.
curl https://api.lightfield.app/v1/meetings/$MEETING_ID \ -X POST \ -H "Authorization: Bearer $LIGHTFIELD_API_KEY" \ -H "Lightfield-Version: 2026-03-01" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: remove-transcript-001" \ -d '{ "relationships": { "$transcript": { "remove": "fil_abc123" } } }'Send either replace or remove in one request, not both. Only uploaded transcripts can be removed: a transcript from Lightfield’s recorder, Gong or Granola would come back on the next sync, so the request is rejected with a validation error such as ‘$transcript’ cannot remove a GONG transcript; only uploaded transcripts can be removed.
Verifying the attachment
Section titled “Verifying the attachment”To check a recording, retrieve it with GET /v1/meetings/{id}/recordings/{recordingId} and confirm its transcript.fileId, and media if you attached audio or video. For a transcript attached through $transcript, retrieve the meeting and check that relationships.$transcript.values[0] equals the uploaded file ID. Both need full access under the meeting’s privacy rules; see Meeting privacy and transcript visibility.
curl https://api.lightfield.app/v1/meetings/$MEETING_ID/recordings/$RECORDING_ID \ -H "Authorization: Bearer $LIGHTFIELD_API_KEY" \ -H "Lightfield-Version: 2026-03-01"Next steps
Section titled “Next steps”- Retrieving meeting transcripts: list a meeting’s recordings, play their audio or video, and download transcripts.
- Uploading files: reference guide for the underlying file upload lifecycle.
- Objects in Lightfield: learn how meetings relate to other records in Lightfield.
- API Reference: full endpoint reference for files, meetings, and other resources.
Related documentation
Section titled “Related documentation”- In the app: add and choose transcript sources.
- Endpoint contracts: create a recording, update a recording, create a meeting and update a meeting.