1Flow provides three webhook endpoints for programmatic document management:
All endpoints require your {webhookId} from Organization Settings.
Optionally configure a webhook secret and include it in the Authorization header:
Authorization: {your-webhook-secret}
POST /api/webhook/{webhookId}/document/upload
Upload documents via URL (recommended), multipart form data, or base64.
curl -X POST https://app.1flow.io/api/webhook/{webhookId}/document/upload \
-H "Authorization: {your-webhook-secret}" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/documents/invoice.pdf"
}'POST /api/webhook/{webhookId}/document/get
Retrieve document status and extracted data by document ID.
curl -X POST https://app.1flow.io/api/webhook/{webhookId}/document/get \
-H "Authorization: {your-webhook-secret}" \
-H "Content-Type: application/json" \
-d '{
"docId": "doc_abc123xyz"
}'POST /api/webhook/{webhookId}/document/delete
Permanently delete a document and all associated data.
curl -X POST https://app.1flow.io/api/webhook/{webhookId}/document/delete \
-H "Authorization: {your-webhook-secret}" \
-H "Content-Type: application/json" \
-d '{
"docId": "doc_abc123xyz"
}'