Upload File
Headers
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.
Response
Successful Response
Example response
{
"created_at": "2025-04-15T18:37:24.100435Z",
"expires_at": "2025-05-15T18:37:24.100435Z",
"filename": "document.pdf",
"id": "file_011CNha8iCJcU1wXNR6q4V8w",
"mime_type": "application/pdf",
"size_bytes": 102400
}Changes
Changed in 4 of the 67 revisions of this API.25
- ○
added the new optional request property
expires_in_secondsnew-optional-request-property
- ○
added the optional property
expires_atto the response with the200statusresponse-optional-property-added
This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ●
removed the request property
expires_in_secondsrequest-property-removed
- ●
removed the optional property
expires_atfrom the response with the200statusresponse-optional-property-removed
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ○
added the new optional request property
expires_in_secondsnew-optional-request-property
- ○
added the optional property
expires_atto the response with the200statusresponse-optional-property-added
- ○
- ○
added the optional property
scopeto the response with the200statusresponse-optional-property-added
- ○