Skip to content
Files, email and meetings

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.

You’ll need:

  • A valid API key
  • The files:create scope to upload and complete files
  • The meetings:update scope to attach recordings to a meeting
  • The meetings:create scope if you also create the meeting
  • Optional meetings:read and files:read scopes 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.

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.

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:

FilepurposeTypesSize limit
Transcriptmeeting_transcripttext/plain, text/markdown, application/markdown20 MB
Audio or videomeeting_recordingvideo/mp4, video/webm, video/quicktime, audio/mpeg, audio/mp4, audio/x-m4a, audio/wav, audio/webm, audio/ogg512 MB

For each file:

  1. POST /v1/files with the file’s purpose, filename, mimeType and sizeBytes
  2. PUT <uploadUrl> with the bytes and the returned uploadHeaders
  3. POST /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.

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.

Terminal window
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.

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:

Terminal window
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.

StatusWhat to check
400The body has a missing or unknown field, for example a recording without transcriptFileId.
403The caller isn’t a meeting participant or a workspace owner. See Check access before attaching.
404The meeting or recording doesn’t exist, or the caller can’t see it.
422A 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.

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:

PatternWhen to useMeeting request
Attach on createYou are creating the meeting and transcript togetherPOST /v1/meetings with relationships.$transcript
Attach on updateThe meeting already exists, or you want to replace the transcript laterPOST /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.

Terminal window
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.

Terminal window
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.

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.
Terminal window
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.

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.

Terminal window
curl https://api.lightfield.app/v1/meetings/$MEETING_ID/recordings/$RECORDING_ID \
-H "Authorization: Bearer $LIGHTFIELD_API_KEY" \
-H "Lightfield-Version: 2026-03-01"