Skip to content

Fetch an audit event

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

Returns one audit event: its type, the actor (login and role), the resource it concerns, the client IP and event-specific details. 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
audit_event_sid
required
string

Audit event SID, AE followed by 32 hex digits

Example

AE0123456789abcdef0123456789abcdef

OK

Media type application/json
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

Example

{
"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"
}

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
}

No such event in this account (code 20404)

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
}