Administration
Audit log and stored media.
List audit events
GET/v1/tenants/{tenantSlug}/audit
Lists the workspace's audit log, newest first: who did what to which record, with before and after values. Filter by action (for example campaign.created), resourceType and resourceId. Paged with an opaque cursor: pass nextCursor back as cursor until it is null.
Query parameters
actionOnly events with exactly this action, written
area.record.verb: for examplelms.lead.created,lms.lead.stage_changed,lms.lead.assignment_changed,campaign.updatedorintegration.api_key.rotated. Copy the value from an event'saction.resourceIdOnly events about this record, usually its ID.
resourceTypeOnly events about this kind of record, matched exactly: for example
lead,lead_contact,campaign,process,tenant_team,tenant_member,human_call,source_connectionorintegration_api_key.cursorOpaque cursor from the previous page's
nextCursor. Leave it out to start at the first page.limitMaximum number of records to return in one page.
Responses
One page of audit events, newest first, and nextCursor.
itemsAudit events, newest first.
nextCursorPass as
cursorto fetch the next page;nullon the last page.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks theaudit.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.
Get a media download link
GET/v1/tenants/{tenantSlug}/media/{mediaId}/download
Returns a short-lived signed URL for a stored media file, such as a Voicebot call recording or transcript listed in an attempt's media. Fetch the file from downloadUrl within expiresIn seconds without sending your API key; request a new link after it expires.
Path parameters
mediaIdMedia file ID.
Responses
A signed download link.
downloadUrlSigned URL to download the file; it works for
expiresInseconds.expiresInSeconds until
downloadUrlstops working.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks themedia.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.MEDIA_OBJECT_NOT_FOUNDThe media file does not exist or the key cannot see it.