Fetch an audit event
const url = 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/AuditEvents/AE0123456789abcdef0123456789abcdef';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Account Auth ID (AC followed by the account id) the request acts on
Example
AC000000000000000000Audit event SID, AE followed by 32 hex digits
Example
AE0123456789abcdef0123456789abcdefResponses
Section titled “ Responses ”OK
object
Account the event belongs to.
Login that caused the event, or system for the platform (retention, uploads).
Role of the actor: tenant, admin, supervisor, agent, member, qa_agent or system.
When the event happened, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”.
Event-specific details, e.g. format and encryption of a media fetch, or the parameters of a settings change.
object
What happened, e.g. recording.accessed, recording.deleted, settings.updated, legal_hold.created, retention.deleted.
Client IP address of the request; empty for platform events.
SID of the resource the event concerns.
Kind of resource: recording, transcript, recording_settings, public_key, legal_hold or chat.
Audit event SID: AE followed by 32 hex digits.
Absolute URL of this event.
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)
Example generated
exampleOnly the account owner or an admin may do this, or the login does not belong to this account (code 20403)
object
Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.
Human readable explanation.
Link to more information; currently always empty.
HTTP status code of the response.
Example
{ "code": 20404, "message": "the requested resource was not found", "more_info": "", "status": 404}No such event in this account (code 20404)
object
Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.
Human readable explanation.
Link to more information; currently always empty.
HTTP status code of the response.
Example
{ "code": 20404, "message": "the requested resource was not found", "more_info": "", "status": 404}Storage or account lookup unavailable (code 20503)
object
Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.
Human readable explanation.
Link to more information; currently always empty.
HTTP status code of the response.
Example
{ "code": 20404, "message": "the requested resource was not found", "more_info": "", "status": 404}