Retrieve File

Supported Providers
  • OpenAI

  • TogetherAI

Returns information about a specific file.

get
Authorizations
Path parameters
file_idstringRequired

The ID of the file to use for this request.

Responses
200

OK

application/json
get
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"
200

OK

{
  "id": "text",
  "bytes": 1,
  "created_at": 1,
  "filename": "text",
  "object": "file",
  "purpose": "assistants"
}

Last updated

Was this helpful?