SpyBara
Go Premium

resources/files/methods/content/index.md 2026-08-12 16:01 UTC to 2026-08-13 22:00 UTC

1 added, 1 removed.

2026
Fri 21 21:58 Thu 20 23:59 Wed 19 21:01 Tue 18 22:02 Mon 17 22:57 Sun 16 16:58 Sat 15 02:02 Fri 14 23:57 Thu 13 22:00 Wed 12 16:01 Tue 11 22:59 Mon 10 22:00 Sat 8 00:59 Fri 7 21:59 Thu 6 18:59 Wed 5 02:01 Tue 4 22:59 Mon 3 21:58 Sat 1 01:00

Retrieve file content

get /files/{file_id}/content

Returns a response containing the contents of the specified file.

Path Parameters

  • file_id: string

Example

curl https://api.openai.com/v1/files/$FILE_ID/content \
    -H "Authorization: Bearer $OPENAI_API_KEY"

Example

curl https://api.openai.com/v1/files/file-abc123/content \
  -H "Authorization: Bearer $OPENAI_API_KEY" > file.jsonl