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>"Retrieve File 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://portkey-docs-fix-cache-hit-elaborate.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Portkey-Key & Virtual-KeyPortkey-Key & Provider-Auth & Provider-NamePortkey-Key & ConfigPortkey-Key & Provider-Auth & Provider-Name & Custom-Host
Path Parameters
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 21, 2026
Was this page helpful?
⌘I

