Skip to main content

Get all Files

GET 

/v2/files

Retrieves all files.

Filtering

For general filtering syntax, see Filtering.

The following operators and attributes are available when filtering on this endpoint.

AttributeTypeOperatorsExample
file_namestringeq / likeeq(file_name, my_image.jpg)
widthintegergt / ge / lt / legt(width,200)
heightintegergt / ge / lt / lelt(height,500)
file_sizeintegergt / ge / lt / lele(file_size,20953)

Request

Query Parameters

    filter string

    Filtering is available for this endpoint. See Filtering.

    page[limit] int64

    Possible values: <= 10000

    The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the page length store setting is used.

    page[offset] int64

    Possible values: <= 10000

    The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the page length store setting is used.

Responses

OK

Schema
    data File[]
  • Array [
  • id uuid

    The unique identifier for this file.

    type string

    The type represents the object being returned.

    file_name string

    The name of the file.

    mime_type string

    The mime type of the file.

    file_size integer

    The size of the file. Required when uploading files.

    public boolean

    DEPRECATED Whether the file public or not. Required when uploading files.

    meta FileMeta
    timestamps object

    The date and time the file was created.

    created_at string

    The date and time the file was created.

    dimensions object

    The file dimensions.

    width integer

    The width of the file.

    height integer

    The height of the file.

    links object

    Links are used to allow you to move between requests.

    self string

    Single entities use a self parameter with a link to that specific resource.

    link object

    The publicly available URL for this file.

    href string

    The publicly available URL for this file.

  • ]
  • meta ResultsMeta
    page object

    Contains the results for the entire collection.

    limit integer

    The maximum number of records for all pages.

    offset integer

    The current offset by number of pages.

    current integer

    The current number of pages.

    total integer

    The total number of records for the entire collection.

    results object

    Contains the results for the entire collection.

    total integer

    The total number of records for the entire collection.

    links object

    Links are used to allow you to move between requests.

    self stringnull

    Single entities use a self parameter with a link to that specific resource.

    first stringnull

    Always the first page.

    last stringnull

    This is null if there is only one page.

Loading...