All guidesGuides · 04 POST /documents/{id}/exportbash Open the guideSigned webhooks
Exporting to CSV, JSON or XML
Get the data in the format ready for ERP and CRM with a single call.
You can get the data in the format ready for your business system with a single call, indicating the desired format in the request body. The response is the ready-to-download file (as an attachment), not a status JSON.
curl -X POST https://app.locrai.com/api/v1/documents/9b1f0e2c.../export \
-H "Authorization: Bearer idp_live_xxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "format": "json" }'The available formats
- JSON — complete structure, ideal for application integrations
- CSV — one row per line item, with UTF-8 BOM, ready to import
- XML — <document> root, for systems that require it
Export requires the read scope. Internal service fields (such as per-field scores) are automatically removed from the output.
Ready to integrate LOCRAI?
Generate an API key from the dashboard and get started, or write to us: we'll help you connect LOCRAI to your systems, including custom connectors.
Contact us