Skip to main content
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 processing
2

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

x-api-key
string
header
required

API key for authentication

Headers

Idempotency-Key
string

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

fileId
string
required

Body

application/json

Export status update payload

The body is of type string.

Response

Export status updated successfully

fileId
string

The file ID

exportInfo
object

Export info object matching DocumentExportInfoEntity