Skip to content

Get a media item

GET
/v1/Accounts/{auth_id}/Media/{media_id}
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.

auth_id
required
string

Your account’s Auth ID (20 upper-case letters and digits).

Example

AC000000000000000000
media_id
required
integer

Media id.

Example

1042

Media item with signed links.

Media type application/json
object
account_id

Auth ID of the owning account.

string
content_type

MIME type declared at upload.

string
docdescription

Free-text description.

string
docname

Document name, unique within the account.

string
doctype

Free-text document type label given at upload.

string
filename

Storage key of the uploaded file: <auth_id>//-, optionally under an environment prefix.

string
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.

integer
quality

Quality given at upload.

string
scope

“local” (this account only) or “global” (shared read-only with the account’s tenants).

string
Allowed values: local global
sourcetype

How the item was created: “api” for uploads.

string
status

“success” on upload and update; omitted elsewhere.

string
tags

Tags attached to the item.

Array<string>
taskQueueSid

Contact Center task queue the item is attached to, if any.

string
tifurl

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.

string
url

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.

string
uuid

Random UUID of the media item; part of its public link.

string
visibility

“public” (permanent unauthenticated link) or “private”.

string
Allowed values: public private
workspaceSid

Contact Center workspace of that task queue, if any.

string

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’).

Media type application/json
object
message

Human-readable reason.

string
status

Always “failed”.

string

Example

{
"message": "fax not found",
"status": "failed"
}

Missing or wrong credentials, or credentials that may not act for {auth_id}. Body: ‘Authentication failed’.

Media type application/json
string

Example generated

example

No such media item visible to this account (message ‘media not found’).

Media type application/json
object
message

Human-readable reason.

string
status

Always “failed”.

string

Example

{
"message": "fax not found",
"status": "failed"
}

Links could not be created (message ‘media request failed’).

Media type application/json
object
message

Human-readable reason.

string
status

Always “failed”.

string

Example

{
"message": "fax not found",
"status": "failed"
}