Skip to main content

List company media

GET 

/api/partner-gateway/media

Returns the files of your media library, one page at a time.

  • Each entry carries the file ID, name, type, MIME type, size and a URL to preview or download the file.
  • Type: detected from the file content at upload, one of IMAGE, VIDEO, AUDIO, DOCUMENT or FILE.
  • Using a file: the id of an entry is what you reference when you attach the file to a message, such as an RCS card or a WhatsApp media message, or to the content of a campaign.
  • Pagination and sorting: page is 0-based, limit goes from 1 to 1000 (default 10), sortBy takes a field such as id or name, and sortOrder is asc or desc.

Request​

Responses​

One page of media items.