Endpoints
Update file export status
This endpoint allows integrated systems to update the export status of a file.
Use this endpoint for pull-based integrations where integrated systems need to report back:
- Whether a file was successfully exported to the integrated system
- Any error messages or status information from the integrated system
The export status and message will be visible in the file list UI.
PATCH
This endpoint enables pull-based integrations to report the export status of files back to fileAI.
Use Cases
ERP Integration
Report when documents have been successfully imported into your ERP system
Accounting Software
Confirm invoices have been processed in your accounting platform
Custom Workflows
Track document processing status in your custom integrations
Error Handling
Report validation errors or processing failures back to users
Request Parameters
Path Parameters
Request Body
Response
Status Values
Integration Flow
1
Fetch Files
Use
GET /files with updatedAfter to get files that need processing2
Process Files
Download and process files in your integrated system
3
Report Status
Call this endpoint to report the export status back to fileAI
4
User Visibility
Users see the status in the fileAI UI, enabling them to track integration progress
Example: Reporting Success
Examples use the default base URL,
https://api.orion.file.ai/prod/v1. If
your workspace is on an instance-specific host, swap the hostname and change
nothing else — see Switching between
instances.Example: Reporting Error
The export status and messages are visible in the fileAI file list UI, helping users understand the integration status of their documents.
This endpoint accepts an optional
Idempotency-Key request header so a retry
cannot apply the change twice. See
Idempotent requests.Authorizations
API key for authentication
Headers
Optional opaque key (max 255 chars, UUIDv4 recommended) making this request idempotent for 24h: a retry with the same key and body replays the original response with Idempotent-Replayed: true.
Path Parameters
Body
application/json
Export status update payload
The body is of type string.