Skip to main content
GET
/
files
/
{file_id}
/
content
cURL
curl https://api.portkey.ai/v1/files/file-abc123/content \
-H "x-portkey-api-key: $PORTKEY_API_KEY" \
-H "x-portkey-virtual-key: $PORTKEY_PROVIDER_VIRTUAL_KEY" > file.jsonl
"<string>"

Documentation Index

Fetch the complete documentation index at: https://docs.portkey.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-portkey-api-key
string
header
required
x-portkey-virtual-key
string
header
required

Path Parameters

file_id
string
required

The ID of the file to use for this request.

Response

200 - application/json

OK

The response is of type string.

Last modified on May 9, 2026