Beta
Files

Get File

Get file metadata by ID.

get/api/v1/beta/files/{file_id}

Path parameters

file_idstring uuid required

Query parameters

expandstring[] nullable

Fields to expand.

Fields to expand.

project_idstring uuid nullable
organization_idstring uuid nullable

Cookies

sessionstring nullable

Response

Successful Response

idstring required

Unique file identifier

namestring required

File name including extension

external_file_idstring nullable

Optional ID for correlating with an external system

file_typestring nullable

File extension (pdf, docx, png, etc.)

project_idstring uuid required

Project this file belongs to

last_modified_atstring date-time nullable

When the file was last modified (ISO 8601)

expires_atstring date-time nullable

When the file expires and may be automatically removed. Null means no expiration.

purposestring nullable

How the file will be used: user_data, parse, extract, classify, split, sheet, or agent_app

Example response

{
  "id": "dfl-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
  "name": "invoice.pdf",
  "external_file_id": "ext-12345",
  "file_type": "pdf",
  "project_id": "123e4567-e89b-12d3-a456-426614174000",
  "purpose": "parse"
}

Changes

Changed in 7 of the 33 revisions of this API.49

    • added the optional property detail/items/ctx to the response with the 422 status

      response-optional-property-added

    • added the optional property detail/items/input to the response with the 422 status

      response-optional-property-added

    This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the new optional query request parameter expand

      new-optional-request-parameter

    • added the optional property download_url to the response with the 200 status

      response-optional-property-added

    • deleted the query request parameter expand

      request-parameter-removed

    • removed the optional property download_url from the response with the 200 status

      response-optional-property-removed

    This revision also has 46 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the new optional query request parameter expand

      new-optional-request-parameter

    • added the optional property download_url to the response with the 200 status

      response-optional-property-added

    • deleted the query request parameter expand

      request-parameter-removed

    • removed the optional property download_url from the response with the 200 status

      response-optional-property-removed

    This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the new optional query request parameter expand

      new-optional-request-parameter

    • added the optional property download_url to the response with the 200 status

      response-optional-property-added

    • endpoint added

      endpoint-added

    This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog