Skip to main content
GET
/
v1
/
files
List files
curl --request GET \
  --url https://gomodel.example.com/v1/files \
  --header 'Authorization: <api-key>'
{
  "data": [
    {
      "bytes": 123,
      "created_at": 123,
      "filename": "<string>",
      "id": "<string>",
      "object": "<string>",
      "provider": "<string>",
      "purpose": "<string>",
      "status": "<string>",
      "status_details": "<string>"
    }
  ],
  "has_more": true,
  "object": "<string>"
}

Authorizations

Authorization
string
header
required

Query Parameters

provider
string

Provider filter

purpose
string

File purpose filter

after
string

Pagination cursor

limit
integer

Maximum items to return (1-100, default 20)

Response

OK

data
object[]
has_more
boolean
object
string