Storage
A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
A limit on the number of objects to be returned. Limit can range between 1 and 10,000, and the default is 10,000.
10000Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.
descPossible values: The intended purpose of the file. Only "batch" is supported — uploaded files may only be used as input for the Batch API.
Successful response with list of files
A list of uploaded files.
The company has run out of AI credits. Returned when the company's budget limit has been reached.
Server error.
GET /v1/storage HTTP/1.1
Host: api.nexos.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"bytes": 1,
"created_at": 1,
"filename": "text",
"id": "text",
"purpose": "assistants",
"status": "error",
"object": "file"
}
],
"object": "list"
}The File object (not file name) to be uploaded.
The intended purpose of the file. Only "batch" is supported — uploaded files may only be used as input for the Batch API.
Successful response with file upload details
The File object represents a document that has been uploaded to OpenAI.
The size of the file, in bytes.
The Unix timestamp (in seconds) for when the file was created.
The name of the file.
The file identifier, which can be referenced in the API endpoints.
The intended purpose of the file.
The status of the file.
Invalid request data.
The company has run out of AI credits. Returned when the company's budget limit has been reached.
Server error.
POST /v1/storage HTTP/1.1
Host: api.nexos.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 35
{
"file": "binary",
"purpose": "batch"
}{
"bytes": 1,
"created_at": 1,
"filename": "text",
"id": "text",
"purpose": "assistants",
"status": "error",
"object": "file"
}The ID of the file to use for this request.
Successful response with file details
The File object represents a document that has been uploaded to OpenAI.
The size of the file, in bytes.
The Unix timestamp (in seconds) for when the file was created.
The name of the file.
The file identifier, which can be referenced in the API endpoints.
The intended purpose of the file.
The status of the file.
The company has run out of AI credits. Returned when the company's budget limit has been reached.
File not found.
Server error.
GET /v1/storage/{file_id} HTTP/1.1
Host: api.nexos.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"bytes": 1,
"created_at": 1,
"filename": "text",
"id": "text",
"purpose": "assistants",
"status": "error",
"object": "file"
}Successful response with deletion status.
The status of a file deletion.
The file identifier.
Indicates whether the file has been deleted.
The company has run out of AI credits. Returned when the company's budget limit has been reached.
File not found.
Server error.
DELETE /v1/storage/{file_id} HTTP/1.1
Host: api.nexos.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"deleted": true
}Successful response with file contents
The company has run out of AI credits. Returned when the company's budget limit has been reached.
File not found.
Server error.
GET /v1/storage/{file_id}/content HTTP/1.1
Host: api.nexos.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
binaryLast updated

