Fetch a transcript's content
const url = 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/Transcripts/GT0123456789abcdef0123456789abcdef.json';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/Transcripts/GT0123456789abcdef0123456789abcdef.json \ --header 'Authorization: Basic <credentials>'Returns the transcript itself (the JSON conversation as archived) to callers whose role is in access.playback_roles. Unencrypted transcripts are returned as stored; platform-encrypted ones are decrypted by the API. For customer_key encryption the API cannot decrypt: it returns the transcript resource with encryption_details and redirect_to / redirect_to_base64, a 15 minute presigned URL of the ciphertext. Responses carry Cache-Control private, no-store, and every fetch is written to AuditEvents as transcript.accessed.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Account Auth ID
Example
AC000000000000000000Transcript SID, GT followed by 32 hex digits
Example
GT0123456789abcdef0123456789abcdefResponses
Section titled “ Responses ”Customer_key transcripts; other transcripts return the archived conversation JSON
object
Account the transcript belongs to.
Call the conversation belongs to, when it was a call.
Channel of the conversation, e.g. webchat, whatsapp, sms, facebook.
Conversation the transcript archives.
When the transcript was archived, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”.
When it was deleted, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”. Only on deleted transcripts.
When the transcript last changed, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”.
Why it was deleted: api or retention. Only on deleted transcripts.
How the stored transcript is encrypted; null when it is not.
object
Rsa-aes: the data key wrapped with RSA-OAEP (SHA-256, MGF1-SHA-256), base64. Never returned for platform-aes.
Ciphertext format: SPE1 (segmented AES-256-GCM).
Base64 nonce prefix of the SPE1 stream.
Platform-aes: id of the platform key-encryption key.
Rsa-aes: SID of the public key that wrapped the data key.
Plaintext bytes per SPE1 segment.
Rsa-aes (customer_key: data key wrapped with your RSA public key) or platform-aes (platform key).
Time of the first message, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”.
Time of the last message, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”.
Where to fetch the transcript text (Transcripts/{sid}.json).
Number of messages in the transcript.
1 for the first transcript of a conversation; higher numbers are continuations written when the earlier transcript could not be rewritten (customer_key encryption, or deleted).
Addresses (numbers, user ids) that took part.
Customer_key content fetch only: 15 minute presigned URL of the ciphertext.
Redirect_to, base64 encoded.
True for platform-encrypted transcripts, which the API decrypts at media_url.
Transcript SID: GT followed by 32 hex digits.
Completed, or deleted for a tombstone.
Absolute URL of this transcript.
Example
{ "account_sid": "AC000000000000000000", "channel": "webchat", "date_created": "Thu, 26 Nov 2026 10:15:30 +0000", "date_updated": "Thu, 26 Nov 2026 10:15:30 +0000", "encryption_details": { "format": "SPE1", "public_key_sid": "CR0123456789abcdef0123456789abcdef", "segment_size": 65536, "type": "rsa-aes" }, "media_url": "https://api.siprtc.io/v1/Accounts/AC000000000000000000/Transcripts/GT0123456789abcdef0123456789abcdef.json", "message_count": 12, "part": 1, "requires_auth": false, "sid": "GT0123456789abcdef0123456789abcdef", "status": "completed", "url": "https://api.siprtc.io/v1/Accounts/AC000000000000000000/Transcripts/GT0123456789abcdef0123456789abcdef"}Authentication failed: missing or invalid credentials (JSON string from the API gateway)
Example generated
exampleRole not in access.playback_roles, or login not of 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}Transcript not found, deleted, or its content missing (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, decryption or settings 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}