APIFiles

List files

Lists or searches files. Pass `record_type` and `record_id` to get the files attached to an account or opportunity; without them, only files in the shared Content Library are returned. `search` matches on title, description, tags, filename, and extracted text.

GET
/v1/files

Lists or searches files. Pass record_type and record_id to get the files attached to an account or opportunity; without them, only files in the shared Content Library are returned. search matches on title, description, tags, filename, and extracted text.

X-Api-Key<token>

In: header

Query Parameters

limit?integer
search?string

Match files by title, description, tags, filename, and extracted text.

record_type?string

With record_id, return the files attached to that record. Without a record, only files in the shared Content Library are returned.

record_id?string

Required when record_type is set.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/files"
{
  "data": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "title": "Implementation plan",
      "description": "string",
      "summary": "string",
      "type": "document",
      "tags": [
        "string"
      ],
      "created_at": "2026-01-15T10:30:00.000Z",
      "records": [
        {
          "record_type": "opportunities",
          "record_id": "8bf519b6-a3e0-49d2-8e42-039542d9a489",
          "record_name": "Acme Corp - Enterprise Plan"
        }
      ],
      "files": [
        {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "filename": "implementation-plan.pdf",
          "mime_type": "application/pdf",
          "bytes": 48213,
          "download_url": "string",
          "extracted_text_status": "pending",
          "extracted_text": "string"
        }
      ]
    }
  ]
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}