Get a media item
const url = 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/Media/1042';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/Media/1042 \ --header 'Authorization: Basic <credentials>'Returns download links for a media item: url (the original file) and tifurl (its fax TIFF rendering) are pre-signed links valid for 15 minutes. You can read your own items and global items of your parent account.
Only uuid, filename, content_type, docname, docdescription, doctype, url and tifurl are filled in; id is 0 and the other fields are empty. Audio and Contact Center media have no TIFF: their tifurl is still signed but points to a file that does not exist.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Your account’s Auth ID (20 upper-case letters and digits).
Example
AC000000000000000000Media id.
Example
1042Responses
Section titled “ Responses ”Media item with signed links.
object
Auth ID of the owning account.
MIME type declared at upload.
Free-text description.
Document name, unique within the account.
Free-text document type label given at upload.
Storage key of the uploaded file: <auth_id>/
Media id. Use it as media_sid when sending a fax and as {media_id} in the Media paths. 0 in Get a media item.
Quality given at upload.
“local” (this account only) or “global” (shared read-only with the account’s tenants).
How the item was created: “api” for uploads.
“success” on upload and update; omitted elsewhere.
Tags attached to the item.
Contact Center task queue the item is attached to, if any.
Storage URL of the fax-ready TIFF rendering (empty for audio and Contact Center media). In Get a media item: a pre-signed link valid for 15 minutes.
Link to the file. Public items: a permanent link anyone can fetch (Download a public media file). Private items: a storage URL that is not directly downloadable. In Get a media item: a pre-signed link valid for 15 minutes.
Random UUID of the media item; part of its public link.
“public” (permanent unauthenticated link) or “private”.
Contact Center workspace of that task queue, if any.
Example
{ "account_id": "AC000000000000000000", "content_type": "application/pdf", "docdescription": "Contract for signature", "docname": "contract-2026-11", "doctype": "pdf", "filename": "AC000000000000000000/11-2026/7f3c2a9e-4b1d-4c8e-9a61-2d5f0b8e1c34-contract.pdf", "id": 1042, "quality": "standard", "scope": "local", "sourcetype": "api", "status": "success", "tags": [ "hold-music" ], "taskQueueSid": "", "tifurl": "https://media-bucket.s3.us-east-1.amazonaws.com/AC000000000000000000/11-2026/7f3c2a9e-4b1d-4c8e-9a61-2d5f0b8e1c34.tiff", "url": "https://api.siprtc.io/v1/Media/Files/7f3c2a9e-4b1d-4c8e-9a61-2d5f0b8e1c34/7f3c2a9e-4b1d-4c8e-9a61-2d5f0b8e1c34-contract.pdf", "uuid": "7f3c2a9e-4b1d-4c8e-9a61-2d5f0b8e1c34", "visibility": "public", "workspaceSid": ""}Malformed media id (message ‘invalid media_id’).
object
Human-readable reason.
Always “failed”.
Example
{ "message": "fax not found", "status": "failed"}Missing or wrong credentials, or credentials that may not act for {auth_id}. Body: ‘Authentication failed’.
Example generated
exampleNo such media item visible to this account (message ‘media not found’).
object
Human-readable reason.
Always “failed”.
Example
{ "message": "fax not found", "status": "failed"}Links could not be created (message ‘media request failed’).
object
Human-readable reason.
Always “failed”.
Example
{ "message": "fax not found", "status": "failed"}