cURL
curl --request POST \ --url https://api.ai-stats.phaseo.app/v1/files \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file' \ --form 'purpose=<string>'
{ "id": "<string>", "object": "<string>", "bytes": 123, "created_at": 123, "filename": "<string>", "purpose": "<string>", "status": "<string>", "status_details": {} }
Upload files for use with batch jobs; list and retrieve existing uploads.
Bearer token authentication
File upload response
Was this page helpful?