Skip to Content
InsurgeDocumentation

Recordings

List meeting recordings, download them with a checksum, and delete Insurge's copy once you have your own.

Developers
Markdown

When a meeting is recorded, Insurge keeps an MP4 of the screen the visitor saw, with the agent's voice and the visitor's microphone. These endpoints let you copy each recording into your own storage and then delete Insurge's copy. Insurge deletes its copy anyway at the end of its retention period, at the time in expires_at, so copy recordings before then.

EndpointScope
GET /api/v1/recordingsrecordings:read
GET /api/v1/meetings/{meeting_id}/recordingrecordings:read
GET /api/v1/meetings/{meeting_id}/recording.mp4recordings:read
DELETE /api/v1/meetings/{meeting_id}/recordingrecordings:delete

Neither scope is on for a new key. Switch on Download recordings and, to delete, Delete recordings when you create the key.

The recording object

Recordings are described the same way here, in Get a meeting and in the recording webhooks.

NameTypeDescription
statusstringnone (never recorded), processing (being put together), completed (ready to download), failed, expired (removed at the end of retention) or deleted.
content_typestring | nullvideo/mp4 when completed, otherwise null.
size_bytesnumber | nullThe file size. Kept after a delete as a record of what was deleted.
sha256string | nullThe SHA-256 of the file, in hex. Older recordings may have none. Kept after a delete.
completed_atnumber | nullWhen the recording became ready, in Unix seconds.
expires_atnumber | nullWhen Insurge deletes its copy anyway. Only set while the recording is completed.
deleted_atnumber | nullWhen it was deleted or expired.
deleted_byobject | nullWho deleted it: kind and id. See the table below.
download_pathstring | nullWhere to download it, relative to https://api.insurgeai.com. Only set while completed.
deleted_by.kindMeaningdeleted_by.id
api_keyDeleted through this APIThe id of the key that deleted it
userA workspace admin deleted it on the meeting's page in the dashboardThat person's user id
insurgeInsurge deleted itnull
retentionIt reached the end of retention (status is expired)null

Copy recordings to your storage

Find out a recording is ready

Subscribe to the recording.ready webhook, or page through List recordings for recordings made before you subscribed.

Download it and check it

Download the MP4 and compute its SHA-256 as you write it. Compare it with the X-Content-SHA256 header (also recording.sha256).

Store your copy

Upload it to your own storage and check the upload succeeded.

Delete Insurge's copy

Call DELETE with ?sha256= set to the digest of your copy. Nothing is deleted unless it matches. A recording.deleted webhook confirms it.

Only the video is deleted. The meeting, its transcript and its brief stay in Insurge, so the dashboard and analytics keep working.

Copy, check, then delete
import hashlib
import os

import requests

API = "https://api.insurgeai.com"
H = {"Authorization": f"Bearer {os.environ['INSURGE_API_KEY']}"}  # recordings:read + recordings:delete


def copy_then_delete(meeting_id: str) -> None:
    path, digest = f"{meeting_id}.mp4", hashlib.sha256()
    url = f"{API}/api/v1/meetings/{meeting_id}/recording.mp4"
    with requests.get(url, headers=H, stream=True, timeout=60) as r:
        r.raise_for_status()
        expected = r.headers.get("X-Content-SHA256")
        with open(path, "wb") as f:
            for chunk in r.iter_content(1 << 20):
                f.write(chunk)
                digest.update(chunk)
    actual = digest.hexdigest()
    if expected and actual != expected:
        raise RuntimeError("download corrupted; not deleting")
    upload_to_your_storage(path)  # your code: S3, GCS, Azure, a NAS...
    # Older recordings have no stored digest: then delete without the check.
    params = {"sha256": actual} if expected else {}
    r = requests.delete(
        f"{API}/api/v1/meetings/{meeting_id}/recording",
        headers=H, params=params, timeout=30,
    )
    r.raise_for_status()


# Back-fill what was recorded before you subscribed to recording.ready.
cursor = None
while True:
    params = {"limit": 100, **({"cursor": cursor} if cursor else {})}
    r = requests.get(f"{API}/api/v1/recordings", headers=H, params=params, timeout=30)
    r.raise_for_status()
    page = r.json()
    for item in page["recordings"]:
        copy_then_delete(item["meeting_id"])
    cursor = page["next_cursor"]
    if not cursor:
        break

Run copy_then_delete from your recording.ready handler after you have answered the webhook, not inside it. Copy one recording at a time: a workspace can have at most 4 downloads open at once, and each key can make 60 requests a minute.

List recordings

GET /api/v1/recordings returns recorded meetings, oldest first.

NameTypeDescription
statusstringWhich recordings: processing, completed, failed, expired or deleted, several separated by commas, or all.Default: completed
sincenumberOnly meetings that started at or after this time, in Unix seconds.
untilnumberOnly meetings that started before this time, in Unix seconds.
cursorstringThe next_cursor of the previous page.
limitnumberRecordings per page, 1 to 500.Default: 100
List completed recordings
curl 'https://api.insurgeai.com/api/v1/recordings?limit=100' \
  -H "Authorization: Bearer $INSURGE_API_KEY"
200 OK
{
  "recordings": [
    {
      "meeting_id": "9b2e7c4d1a3f4b6e8d0c2a4e6f8b1d3c",
      "lead_id": "3f6c1a9e2b7d4e5f8a9b0c1d2e3f4a5b",
      "agent_id": "product-tour",
      "channel": "web",
      "started_at": 1796119200.4,
      "ended_at": 1796119612.4,
      "duration_s": 412.0,
      "recording": {
        "status": "completed",
        "content_type": "video/mp4",
        "size_bytes": 48211934,
        "sha256": "9f2c4be1d07a5e3c8b6f1a2d4e7c9b0a3f5e8d1c6b4a2e9f7d0c3b5a8e1f4d26",
        "completed_at": 1796119671.7,
        "expires_at": 1796724000.4,
        "deleted_at": null,
        "deleted_by": null,
        "download_path": "/api/v1/meetings/9b2e7c4d1a3f4b6e8d0c2a4e6f8b1d3c/recording.mp4"
      }
    }
  ],
  "count": 1,
  "next_cursor": null
}

Each item has the meeting's meeting_id, lead_id, agent_id, started_at, ended_at and duration_s, its channel (web for your Insurge pages, otherwise the meeting platform), and the recording object.

To get the next page, pass next_cursor back as cursor. It is null when there are no more. Unlike an offset, a cursor stays correct while you delete the recordings you have already copied.

StatusWhen
400cursor is not one this API returned.
403The key doesn't have recordings:read.
422status names something other than the values above.

Get a recording's details

GET /api/v1/meetings/{meeting_id}/recording returns the recording object of one meeting. A meeting that was never recorded answers 200 with status: "none".

Get a recording's details
curl 'https://api.insurgeai.com/api/v1/meetings/your_meeting_id/recording' \
  -H "Authorization: Bearer $INSURGE_API_KEY"
200 OK
{
  "meeting_id": "9b2e7c4d1a3f4b6e8d0c2a4e6f8b1d3c",
  "recording": {
    "status": "completed",
    "content_type": "video/mp4",
    "size_bytes": 48211934,
    "sha256": "9f2c4be1d07a5e3c8b6f1a2d4e7c9b0a3f5e8d1c6b4a2e9f7d0c3b5a8e1f4d26",
    "completed_at": 1796119671.7,
    "expires_at": 1796724000.4,
    "deleted_at": null,
    "deleted_by": null,
    "download_path": "/api/v1/meetings/9b2e7c4d1a3f4b6e8d0c2a4e6f8b1d3c/recording.mp4"
  }
}

404 Meeting not found: <id> when there is no such meeting in your workspace.

Download a recording

GET /api/v1/meetings/{meeting_id}/recording.mp4 returns the whole file (200), or exactly the byte range you ask for with a Range header (206), so a broken download can carry on where it stopped.

Download a recording
curl 'https://api.insurgeai.com/api/v1/meetings/your_meeting_id/recording.mp4' \
  -H "Authorization: Bearer $INSURGE_API_KEY" \
  -o recording.mp4

To carry on a broken download, run the same command with -C - added.

Response headers
HTTP/1.1 200 OK
content-type: video/mp4
content-length: 48211934
content-disposition: attachment; filename="meeting-2026-12-01-9b2e7c4d.mp4"
accept-ranges: bytes
cache-control: private, no-store
etag: "9f2c4be1d07a5e3c8b6f1a2d4e7c9b0a3f5e8d1c6b4a2e9f7d0c3b5a8e1f4d26"
x-content-sha256: 9f2c4be1d07a5e3c8b6f1a2d4e7c9b0a3f5e8d1c6b4a2e9f7d0c3b5a8e1f4d26
  • X-Content-SHA256 and ETag carry the file's SHA-256. They are absent for older recordings that have no stored digest.
  • A 206 answer also has Content-Range: bytes <start>-<end>/<size>.
  • A client that takes more than 2 minutes to accept one 4 MB chunk is cut off. Carry on with a Range request.
  • At most 4 downloads can be open at once per workspace. A fifth answers 429 with Retry-After: 30.
StatusWhen
404Recording not ready: the recording isn't completed (still processing, failed, deleted or expired). Recording file not found: the file is missing. Meeting not found: <id>.
416The Range can't be satisfied, for example it starts past the end of the file. The answer has no body and Content-Range: bytes */<size>.
4294 downloads are already open for your workspace. Wait for Retry-After.
503Recording temporarily unavailable. Try again shortly.

Delete Insurge's copy

DELETE /api/v1/meetings/{meeting_id}/recording deletes Insurge's stored copy of the recording. It needs the recordings:delete scope.

This can't be undone

The video is removed from Insurge for good. The meeting, its transcript and its brief stay. Always pass sha256 so nothing is deleted unless Insurge's copy matches the one you kept.

NameTypeDescription
meeting_id requiredstringThe meeting's id, in the path.
sha256stringQuery parameter: the SHA-256 of your copy, 64 hex characters. Nothing is deleted unless it matches the stored digest.
Delete Insurge's copy, only if it matches yours
curl -X DELETE 'https://api.insurgeai.com/api/v1/meetings/your_meeting_id/recording?sha256=9f2c4be1d07a5e3c8b6f1a2d4e7c9b0a3f5e8d1c6b4a2e9f7d0c3b5a8e1f4d26' \
  -H "Authorization: Bearer $INSURGE_API_KEY"
200 OK
{
  "meeting_id": "9b2e7c4d1a3f4b6e8d0c2a4e6f8b1d3c",
  "recording": {
    "status": "deleted",
    "content_type": null,
    "size_bytes": 48211934,
    "sha256": "9f2c4be1d07a5e3c8b6f1a2d4e7c9b0a3f5e8d1c6b4a2e9f7d0c3b5a8e1f4d26",
    "completed_at": 1796119671.7,
    "expires_at": null,
    "deleted_at": 1796128200.9,
    "deleted_by": {
      "kind": "api_key",
      "id": "7a1c3e5b9d2f4a6c8e0b1d3f5a7c9e2b"
    },
    "download_path": null
  }
}
  • The answer is the recording object after the delete, with status: "deleted" and deleted_by naming your key.
  • Calling it again, or on a recording that already expired, answers 200 with the same object and does nothing. It is safe to retry.
StatusWhenWhat to do
400sha256 must be 64 hexadecimal characters.Send the hex digest, not base64.
404Meeting not found: <id>, or This meeting has no stored recording. (never recorded, or the recording failed).Nothing to delete.
409The recording is still being processed.Wait for recording.ready, then try again.
409The recording changed while it was being deleted.Fetch the recording's details and decide again.
412sha256 does not match the stored recording; nothing was deleted. Also for an older recording with no stored digest.Download again and compare. For a recording with no digest, check your copy yourself and delete without sha256.
503The recording could not be deleted. Try again. Nothing changed.Try again.

A workspace admin can also delete a recording on the meeting's page in the dashboard: Delete beside the recording, then Delete recording to confirm.

On this page