Skip to main content
GET
/
v1
/
files
List Files
curl --request GET \
  --url https://documents.absconsulting.com/v1/files \
  --header 'Authorization: Bearer <token>'
{
  "object": "<string>",
  "data": [
    {
      "id": "<string>",
      "object": "<string>",
      "filename": "<string>",
      "url": "<string>",
      "bytes": 123,
      "created_at": 123,
      "metadata": {}
    }
  ],
  "has_more": true,
  "first_id": "<string>",
  "last_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer token for authentication

Query Parameters

after
string | null

The ID of the last object returned in the previous page. Use this parameter to get the next page of results.

before
string | null

The ID of the first object returned in the previous page. Use this parameter to get the previous page of results.

limit
integer
default:10000

A limit on the number of objects to be returned. Limit can range between 1 and 10,000, and the default is 10,000.

order
string
default:desc

Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.

Response

Successful Response

object
string
required

The type of object.

data
File · object[]
required

The list of files.

has_more
boolean
required

Whether there are more files to retrieve.

first_id
string | null

The ID of the first file in the list.

last_id
string | null

The ID of the last file in the list.