curl -X POST https://api.appliedai.club/api/extractor/v1/extract-async \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"document": {
"url": "https://example.com/invoice.pdf"
},
"extraction_schema": {
"fields": [
{"name": "invoice_number", "type": "string", "description": "Invoice number from the document"},
{"name": "total_amount", "type": "number", "description": "Total amount from the invoice"}
],
"document_description": "Invoice document"
},
"callback_url": "https://your-server.com/webhook"
}'