List media
const url = 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/Media?page=1&limit=30&content_type=application%2Fpdf&scope=local&visibility=public';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?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.
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
AC000000000000000000Query Parameters
Section titled “ Query Parameters ”Page number, 1-based.
Items per page, 1-100, or all.
Example
30Content type contains this text.
Example
application/pdfDocument name contains this text.
Document type contains this text.
Quality contains this text.
Source type contains this text (api, email).
Every value must be contained in the item’s tags.
Exact Contact Center task queue sid.
Local or global (see description).
Effective visibility.
Responses
Section titled “ Responses ”One page of media items.
object
Media items on this page, newest first; null when nothing matches.
object
Auth ID of the owning account.
MIME type declared at upload.
When the item was uploaded (RFC 3339).
Free-text description.
Document name, unique within the account.
Free-text document type label.
Storage key of the uploaded file.
Media id; use it as media_sid when sending a fax.
Storage provider; normally empty.
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, “email” for documents created from a fax media_url.
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.
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).
Random UUID of the media item; part of its public link.
Visibility is “public” or “private”; empty on rows saved before it existed. The API reports the effective value: “public” (permanent unauthenticated link) or “private”.
Contact Center workspace of that task queue, if any.
Paging details.
object
The base URL for the endpoint. It is only necessary when using links. Will be omitted from JSON when links are set to false.
The current page of the tome. If none is provided, the current page will be setted to 1.
The last page of the tome.
The next URL string. Will be omitted from JSON when links are set to false.
The limit per page. If none is provided, the limit will be setted to 10.
The previous URL string. Will be omitted from JSON when links are set to false.
The total results, this usually comes from a database query.
object
Current page (1-based); 0 when nothing matches.
Last page number; 0 when nothing matches.
Page size used (the limit, at most 100; the total count when limit=all).
Total number of matching media items.
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.
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
exampleThe list could not be read (for example the account lookup failed or scope is invalid).
object
Human-readable reason.
Always “failed”.
Example
{ "message": "fax not found", "status": "failed"}Unexpected server error.
object
Human-readable reason.
Example
{ "message": "Request Entity Too Large"}