Skip to content

Get a media file's content

GET
/v1/Accounts/{auth_id}/Media/Byte/{media_id}
curl --request GET \
--url https://api.siprtc.io/v1/Accounts/AC000000000000000000/Media/Byte/1042 \
--header 'Authorization: Basic <credentials>'

Returns a media item’s original file inline: the url field holds the file’s bytes, base64-encoded. You can read your own items and global items of your parent account. id is 0. Files are at most 10 MB, so the JSON body can reach about 14 MB.

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

File content.

Media type application/json
object
content_type

MIME type declared at upload.

string
docdescription

Free-text description.

string
docname

Document name.

string
doctype

Document type label.

string
filename

Storage key of the file.

string
id

Always 0.

integer
status

Omitted.

string
url

The original file’s bytes, base64-encoded (despite the field name).

string format: byte
uuid

Random UUID of the media item.

string

Example

{
"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": 0,
"url": "JVBERi0xLjcK",
"uuid": "7f3c2a9e-4b1d-4c8e-9a61-2d5f0b8e1c34"
}

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

The file could not be read (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"
}