Skip to main content
GET
Error

Authorizations

X-API-Key
string
header
required

API key authentication

Query Parameters

pageNumber
integer
default:1

1-based page number

Required range: x >= 1
pageSize
integer
default:20

Number of items per page

Required range: 10 <= x <= 100
includeImported
boolean
default:false

When false (default), excludes auto-imported images (template-copy, campaign-copy) from listing. Set to true to include all images. Ignored when source is supplied.

searchText
string

Filename search query. When present, results are filename matches (exact/case-insensitive/prefix, plus substring/suffix for EN/ES/PT; prefix/exact for JA/TW; single-char min for JA/TW, 2-char min for EN/ES/PT); when absent, the default list is returned.

Maximum string length: 200
fileType
enum<string>

Optional image-format filter (jpeg, png, gif, webp). Combinable with searchText (AND). When present without searchText, filters the list by format only.

Available options:
jpeg,
png,
gif,
webp
source
enum<string>

Lists only files with this source, in the order sort selects, instead of the default listing. Overrides includeImported. Combinable with searchText and fileType (AND).

Available options:
brand-kit
sort
enum<string>
default:createdAt:desc

Newest first (default) or oldest first. With searchText, fileType or source, ordering applies within the newest 5,000 files.

Available options:
createdAt:desc,
createdAt:asc
kind
enum<string>

Set to file for a hosted document (.pdf, .docx, .pptx, .csv, .txt, at most 10 MB) used by the Benchmark email editor's file links. kind=file is for the email editor only: requests authenticated with an API key receive 403. With kind=file, source and dedupe are rejected on upload, and fileType, source, includeImported and sort on the list. Omit it for the image library.

Available options:
file

Response

Paginated list of files

files
object[]
required
pageNumber
integer
required
Required range: x >= 1
pageSize
integer
required
Required range: 10 <= x <= 100
total
integer
required
Required range: x >= 0