Portkey Docs
Home
Login to Portkey
Join Discord
Schedule Call
Product
Open Source
Enterprise
Observability
AI Gateway
Prompt Library
Autonomous Fine-Tuning
API
Reference
SDK
Integrations
OpenAI
Azure OpenAI
Langchain
Llamaindex
Google Gemini
Anthropic
Groq
Changelog
Search
Ctrl + K
Retrieve File Content
Previous
Retrieve File
Next
Delete File
Last updated
22 days ago
Returns the contents of the specified file.
GET
https://api.portkey.ai/v1
/files/{file_id}/content
Path parameters
file_id
*
string
The ID of the file to use for this request.
Response
200
OK
Body
application/json
string
Response
Copy
"text"