Skip to main content
GET
/
v1
/
files
List uploaded files
curl --request GET \
  --url https://api.infery.ai/v1/files \
  --header 'Authorization: <api-key>'
{
  "object": "list",
  "data": [
    {
      "id": "file_1hR9xTPZqK4mVLc2nJ7fY5wB",
      "object": "file",
      "bytes": 245192,
      "created_at": 1713204900,
      "filename": "report.pdf",
      "purpose": "assistants",
      "status": "processed"
    }
  ],
  "has_more": false,
  "last_id": "file_1hR9xTPZqK4mVLc2nJ7fY5wB"
}
curl https://api.infery.ai/v1/files \
  -H "Authorization: Bearer $INFERY_API_KEY"
Returns files uploaded to the current workspace only. Pagination and filtering via query parameters are OpenAI-compatible.

Authorizations

Authorization
string
header
required

API key in format: Bearer inf_***

Query Parameters

purpose
enum<string>

Filter by intended purpose

Available options:
assistants,
vision,
user_data,
batch
limit
integer

Max items to return (default server-side)

Required range: 1 <= x <= 100
after
string

Pagination cursor — pass the previous response's last_id

Response

Workspace-scoped list of uploaded files.

object
string
Example:

"list"

data
object[]
has_more
boolean

Whether more pages exist after this one

Example:

false

last_id
string | null

Cursor for the next page (null if this page is the end)

Example:

"file_1hR9xTPZqK4mVLc2nJ7fY5wB"