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


The file content.

Example

Request

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

那年我双手插兜, 让bug稳如老狗