Skip to content

Retrieve file content ​

GET https://api.fastapi.ai/v1/files/{file_id}/content

Returns the contents of the specified file.

Path parameters ​


file_id string Required
The ID of the file to use for this request.

Returns ​


Returns the contents of the specified file.

Example ​

Request ​

bash
curl https://api.fastapi.ai/v1/files/file-abc123/content \
  -H "Authorization: Bearer $FAST_API_KEY" > file.jsonl

智元 Fast API