Skip to content

List audit events

GET
/v1/Accounts/{auth_id}/AuditEvents
curl --request GET \
--url https://api.siprtc.io/v1/Accounts/AC000000000000000000/AuditEvents \
--header 'Authorization: Basic <credentials>'

Lists the account’s privacy audit trail, newest first: recording and transcript fetches (recording.accessed, transcript.accessed), deletions and refused deletions (recording.deleted, recording.delete_blocked, transcript.deleted, transcript.delete_blocked), recordings discarded at upload (recording.discarded), retention batches (retention.deleted), archiving and chat redaction (transcript.archived, chat.redacted), and changes to settings, public keys and legal holds (settings.updated, public_key.created/updated/deleted, legal_hold.created/released). Events are append-only. Paging: Page is zero-based, PageSize defaults to 50 (at most 1000), and first_page_uri / next_page_uri / previous_page_uri and meta carry the paging links. Also served at AuditEvents.json. Only the account owner (Basic auth with the account’s Auth ID and Auth Secret) or a platform admin may call it; other logins get 403.

auth_id
required
string

Account Auth ID (AC followed by the account id) the request acts on

Example

AC000000000000000000
ResourceSid
string

Only events about this resource (recording, transcript, key or hold SID)

EventType
string

Only events of this type, e.g. recording.accessed

ActorSid
string

Only events caused by this login (account id, or system for the platform)

StartDate
string

Only events at or after this date (YYYY-MM-DD, RFC 3339, RFC 2822 or unix seconds)

EndDate
string

Only events at or before this date; a bare date covers the whole day

PageSize
integer

Items per page, 1 to 1000 (larger values are capped). Default 50

Page
integer

Zero-based page number. Default 0

OK

Media type application/json
object
audit_events

The audit events on this page, newest first.

Array<object>
object
account_sid

Account the event belongs to.

string
actor_sid

Login that caused the event, or system for the platform (retention, uploads).

string
actor_type

Role of the actor: tenant, admin, supervisor, agent, member, qa_agent or system.

string
date_created

When the event happened, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”.

string
details

Event-specific details, e.g. format and encryption of a media fetch, or the parameters of a settings change.

object
key
additional properties
any
event_type

What happened, e.g. recording.accessed, recording.deleted, settings.updated, legal_hold.created, retention.deleted.

string
ip

Client IP address of the request; empty for platform events.

string
resource_sid

SID of the resource the event concerns.

string
resource_type

Kind of resource: recording, transcript, recording_settings, public_key, legal_hold or chat.

string
sid

Audit event SID: AE followed by 32 hex digits.

string
url

Absolute URL of this event.

string
end

Zero-based index of the last item on this page.

integer
first_page_uri

Relative URI of the first page, with the same filters.

string
meta

The same paging links as absolute URLs, grouped under meta.

object
first_page_url

Absolute URL of the first page.

string
key

Name of the property that holds the items, e.g. recordings.

string
next_page_url

Absolute URL of the next page; null on the last page.

string
page

Zero-based number of this page.

integer
page_size

Items per page.

integer
previous_page_url

Absolute URL of the previous page; null on the first page.

string
url

Absolute URL of this page.

string
next_page_uri

Relative URI of the next page; null on the last page.

string
page

Zero-based number of this page.

integer
page_size

Items per page.

integer
previous_page_uri

Relative URI of the previous page; null on the first page.

string
start

Zero-based index of the first item on this page.

integer
uri

Relative URI of this page.

string

Example

{
"audit_events": [
{
"account_sid": "AC000000000000000000",
"actor_sid": "AC000000000000000000",
"actor_type": "tenant",
"date_created": "Thu, 26 Nov 2026 10:15:30 +0000",
"event_type": "recording.accessed",
"ip": "203.0.113.10",
"resource_sid": "9b1d7e0c-2f4a-4c1e-8f3b-5a6d7c8e9f00",
"resource_type": "recording",
"sid": "AE0123456789abcdef0123456789abcdef",
"url": "https://api.siprtc.io/v1/Accounts/AC000000000000000000/AuditEvents/AE0123456789abcdef0123456789abcdef"
}
],
"end": 49,
"first_page_uri": "/v1/Accounts/AC000000000000000000/Recordings.json?Page=0&PageSize=50",
"meta": {
"first_page_url": "https://api.siprtc.io/v1/Accounts/AC000000000000000000/Recordings.json?Page=0&PageSize=50",
"key": "recordings",
"page": 0,
"page_size": 50,
"url": "https://api.siprtc.io/v1/Accounts/AC000000000000000000/Recordings.json?Page=0&PageSize=50"
},
"page": 0,
"page_size": 50,
"start": 0,
"uri": "/v1/Accounts/AC000000000000000000/Recordings.json?Page=0&PageSize=50"
}

Bad date or paging parameter (code 20001)

Media type application/json
object
code

Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.

integer
message

Human readable explanation.

string
more_info

Link to more information; currently always empty.

string
status

HTTP status code of the response.

integer

Example

{
"code": 20404,
"message": "the requested resource was not found",
"more_info": "",
"status": 404
}

Authentication failed: missing or invalid credentials (JSON string from the API gateway)

Media type application/json
string

Example generated

example

Only the account owner or an admin may do this, or the login does not belong to this account (code 20403)

Media type application/json
object
code

Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.

integer
message

Human readable explanation.

string
more_info

Link to more information; currently always empty.

string
status

HTTP status code of the response.

integer

Example

{
"code": 20404,
"message": "the requested resource was not found",
"more_info": "",
"status": 404
}

Storage or account lookup unavailable (code 20503)

Media type application/json
object
code

Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.

integer
message

Human readable explanation.

string
more_info

Link to more information; currently always empty.

string
status

HTTP status code of the response.

integer

Example

{
"code": 20404,
"message": "the requested resource was not found",
"more_info": "",
"status": 404
}