Skip to content

List media

GET
/v1/Accounts/{auth_id}/Media
curl --request GET \
--url 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/Media?page=1&limit=30&content_type=application%2Fpdf&scope=local&visibility=public' \
--header 'Authorization: Basic <credentials>'

Lists media items, newest first. A tenant whose parent is a vendor or superuser account sees its own items plus the parent’s global items (scope=global: only the parent’s global items; scope=local: only its own local items); other accounts see their own items, optionally filtered by scope. content_type, docname, doctype, quality and source_type match case-insensitive substrings (ANY or ALL means no filter); each tags value must be contained in the item’s tags; taskQueueSid matches exactly; visibility filters by effective visibility. Paging: page starts at 1 and limit defaults to 30 and is capped at 100; limit=all returns every match on one page. When nothing matches, Media is null. In this list, a private item’s url is a storage address that cannot be fetched directly; use Get a media item for a signed link.

auth_id
required
string

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

Example

AC000000000000000000
page
integer
default: 1 >= 1

Page number, 1-based.

limit
string
default: 30

Items per page, 1-100, or all.

Example

30
content_type
string

Content type contains this text.

Example

application/pdf
docname
string

Document name contains this text.

doctype
string

Document type contains this text.

quality
string

Quality contains this text.

source_type
string

Source type contains this text (api, email).

tags
Array<string>

Every value must be contained in the item’s tags.

taskQueueSid
string

Exact Contact Center task queue sid.

scope
string
Allowed values: local global

Local or global (see description).

visibility
string
Allowed values: public private

Effective visibility.

One page of media items.

Media type application/json
object
Media

Media items on this page, newest first; null when nothing matches.

Array<object>
object
account_id

Auth ID of the owning account.

string
content_type

MIME type declared at upload.

string
created_at

When the item was uploaded (RFC 3339).

string
docdescription

Free-text description.

string
docname

Document name, unique within the account.

string
doctype

Free-text document type label.

string
filename

Storage key of the uploaded file.

string
id

Media id; use it as media_sid when sending a fax.

integer
provider

Storage provider; normally empty.

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

How the item was created: “api” for uploads, “email” for documents created from a fax media_url.

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.

string
url

Public items: permanent link anyone can fetch. Private items: storage URL that is not directly downloadable (use Get a media item for a signed link).

string
uuid

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

string
visibility

Visibility is “public” or “private”; empty on rows saved before it existed. The API reports the effective value: “public” (permanent unauthenticated link) or “private”.

string
Allowed values: public private
workspaceSid

Contact Center workspace of that task queue, if any.

string
pagination

Paging details.

object
base_url

The base URL for the endpoint. It is only necessary when using links. Will be omitted from JSON when links are set to false.

string
current_page

The current page of the tome. If none is provided, the current page will be setted to 1.

integer
last_page

The last page of the tome.

integer
next_url

The next URL string. Will be omitted from JSON when links are set to false.

string
per_page

The limit per page. If none is provided, the limit will be setted to 10.

integer
prev_url

The previous URL string. Will be omitted from JSON when links are set to false.

string
total_results

The total results, this usually comes from a database query.

integer
pagination
object
current_page

Current page (1-based); 0 when nothing matches.

integer
last_page

Last page number; 0 when nothing matches.

integer
per_page

Page size used (the limit, at most 100; the total count when limit=all).

integer
total_results

Total number of matching media items.

integer

Example

{
"Media": [
{
"account_id": "AC000000000000000000",
"content_type": "application/pdf",
"created_at": "2026-11-20T10:15:00Z",
"docdescription": "Contract for signature",
"docname": "contract-2026-11",
"doctype": "pdf",
"filename": "AC000000000000000000/11-2026/7f3c2a9e-4b1d-4c8e-9a61-2d5f0b8e1c34-contract.pdf",
"id": 1042,
"provider": "",
"quality": "standard",
"scope": "local",
"source_type": "api",
"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://media-bucket.s3.us-east-1.amazonaws.com/AC000000000000000000/11-2026/7f3c2a9e-4b1d-4c8e-9a61-2d5f0b8e1c34-contract.pdf",
"uuid": "7f3c2a9e-4b1d-4c8e-9a61-2d5f0b8e1c34",
"visibility": "public",
"workspaceSid": ""
}
],
"pagination": {
"current_page": 1,
"last_page": 2,
"per_page": 30,
"total_results": 42
}
}

Query could not be bound.

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

The list could not be read (for example the account lookup failed or scope is invalid).

Media type application/json
object
message

Human-readable reason.

string
status

Always “failed”.

string

Example

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

Unexpected server error.

Media type application/json
object
message

Human-readable reason.

string

Example

{
"message": "Request Entity Too Large"
}