List files
/v1/filesList files.
Lists the files uploaded with your virtual key, a page at a time. Requires a virtual key: with direct provider credentials this is a 400. A PLATFORM virtual key is a 400.
Authorization
AuthorizationBearer <slug>.<secret>A virtual key's API key (
vk-....<secret>), asAuthorization: Bearer. What the OpenAI SDK sends from itsapi_key. Used by the inference endpoints.- or
x-virtual-keyheaderA virtual key's API key in the
x-virtual-keyheader, for clients that keepAuthorizationfor something else. - or
x-api-keyheaderDirect credentials: the provider's own API key in
x-api-key, with the provider named inx-provider(for exampleopenai). On/v1/messagesa virtual key is accepted inx-api-keytoo, which is what the Claude SDK sends.
Query parameters
purposestringonly files with this purpose (
batch,fine-tune,assistants,vision); all files when omittedpageinteger<int32>the page number, starting at 1; default 1
page_sizeinteger<int32>files per page; default 20, at most 100
Headers
x-providerstringWith direct credentials: the provider
x-api-keybelongs to, for exampleopenaioranthropic(case and dashes are normalised). Not used with a virtual key.
Responses
totalinteger<int32>How many files match, across all pages.
pageinteger<int32>This page's number, from 1.
page_sizeinteger<int32>Files per page (at most 100).
dataobject[]The files on this page.
Child attributes
idstringThe VectorAxis file id:
vxf-followed by a UUID.providerstringThe provider the file was uploaded to, for example
OPENAI.filenamestringThe file's name as uploaded.
bytesinteger<int64>The file's size in bytes, as the provider reported it. Absent when the provider did not report it.
mime_typestringThe file's content type as uploaded, for example
application/jsonl.purposeenum<string>What the file is for:
batch(input for a batch job),fine-tune(training data),assistants(documents for assistants and the Responses API, the default) orvision(an image for chat messages). Absent when the purpose given at upload is none of these.One of
"fine-tune","batch","assistants","vision"statusenum<string>The file's state at VectorAxis:
uploaded(received and sent to the provider),processing(the provider is processing it),processed(ready) orerror(the provider rejected it; seeprovider_status).One of
"uploaded","processing","processed","error"provider_statusstringThe file's status as the provider reported it at upload. Absent when the provider reported none.
organizationstringThe organization the file belongs to. Absent for an upload with direct provider credentials and no
x-organization.virtual_key_slugstringThe slug of the virtual key the file was uploaded with (
vk-...). Only that key can read, download or delete it. Absent for an upload with direct provider credentials.created_atstring<date-time>When the file was uploaded, ISO 8601.
expires_atstring<date-time>When the file expires at the provider, ISO 8601. Absent when it does not expire.