Sign in

Upload file

documented

Upload a file to the inbox.

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.xero.com/files.xro/1.0/Files" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "xero-tenant-id: {{$xero_tenant_id}}" \
  -H "Accept: application/json" \
  -H "Idempotency-Key: {{$idempotency_key}}" \
  -F "body=@{{$file_path}};type={{$content_type}}" \
  -F "name={{$name}}" \
  -F "filename={{$filename}}" \
  -F "mimeType={{$mime_type}}"