cURL
curl https://api.portkey.ai/v1/files/file-abc123 \ -H "x-portkey-api-key: $PORTKEY_API_KEY" \ -H "x-portkey-virtual-key: $PORTKEY_PROVIDER_VIRTUAL_KEY"
{ "id": "<string>", "bytes": 123, "created_at": 123, "filename": "<string>", "object": "file", "purpose": "assistants", "status": "uploaded", "status_details": "<string>" }
The ID of the file to use for this request.
OK
The File object represents a document that has been uploaded to OpenAI.
File
Was this page helpful?