Sign in

Upload file

documented

Upload a file to be used with the API.

POST /filesFilesno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.openai.com/v1/files" \
  -X POST \
  -H "Authorization: Bearer {{OPENAI_API_KEY}}" \
  -H "Accept: application/json" \
  -F "purpose={{$purpose}}" \
  -F "file=@{{$file_path}}"
Upload file · OpenAI · OpenIntegrations