Skip to main content
GET
/
v1
/
projects
/
{project_id}
/
files
List Files
curl --request GET \
  --url https://api.example.com/v1/projects/{project_id}/files \
  --header 'x-api-key: <api-key>' \
  --header 'x-selected-account-id: <api-key>'
{
  "items": [
    {
      "id": "<string>",
      "project_id": "<string>",
      "filename": "<string>",
      "size_bytes": 123,
      "mime_type": "<string>",
      "status": "uploading",
      "created_at": "2023-11-07T05:31:56Z",
      "storage_key": "<string>",
      "object": "file"
    }
  ],
  "total_count": 123,
  "next_token": "<string>",
  "prev_token": "<string>"
}

Authorizations

x-api-key
string
header
required

API key for authentication

x-selected-account-id
string
header
required

Selected Account ID

Path Parameters

project_id
string
required

Query Parameters

ids
string[] | null

Filter by file IDs

created_at_start
string<date-time> | null

Filter by creation time (start)

created_at_end
string<date-time> | null

Filter by creation time (end)

page_size
integer | null

Number of items per page

Required range: 1 <= x <= 100
sort_by
string | null

Field to sort by

sort_order
enum<string> | null

Sort order (asc or desc) Enum for project sort fields. Note that only non-nullable fields can be sorted by (for details, see: https://github.com/djrobstep/sqlakeyset?tab=readme-ov-file#limitations ).

Available options:
asc,
desc
continuation_token
string | null

Pagination token

Response

Successful Response

items
FileEntity · object[]
required
total_count
integer
required
next_token
string | null
prev_token
string | null