Soniox
Docs

Get files

Retrieve a list of uploaded files.

GET
/v1/files

Authorization

AuthorizationRequiredBearer <token>

In: header

Query parameters

limitinteger

The maximum number of files to return (minimum 1, maximum 1000).

Default: 1000Minimum: 1Maximum: 1000
cursorstring

Pagination cursor for the next page of results.

Response body

200

A list of files.

filesRequiredarray<object>

An array of files.

next_page_cursorstring

next_page_cursor is used for pagination, providing a token that references the next page of results. If the current response does not include all available data, the next_page_cursor will contain a value that can be sent in the cursor parameter of a subsequent request to fetch the next page. If there are no additional results, this field will be null.

Errors

A list of files.

{
  "files": [
    {
      "id": "84c32fc6-4fb5-4e7a-b656-b5ec70493753",
      "filename": "example.mp3",
      "size": 123456,
      "created_at": "2024-11-26T00:00:00Z"
    }
  ],
  "next_page_cursor": "cursor_or_null"
}