POST
/
uploads
/
{upload_id}
/
complete
curl --request POST \
  --url https://api.openai.com/v1/uploads/{upload_id}/complete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "part_ids": [
    "<string>"
  ],
  "md5": "<string>"
}'
{
  "id": "<string>",
  "created_at": 123,
  "filename": "<string>",
  "bytes": 123,
  "purpose": "<string>",
  "status": "pending",
  "expires_at": 123,
  "object": "upload",
  "file": {
    "id": "<string>",
    "bytes": 123,
    "created_at": 123,
    "expires_at": 123,
    "filename": "<string>",
    "object": "file",
    "purpose": "assistants",
    "status": "uploaded",
    "status_details": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

upload_id
string
required

The ID of the Upload.

Example:

"upload_abc123"

Body

application/json

Response

200 - application/json

OK

The Upload object can accept byte chunks in the form of Parts.