A webhook is an HTTP callback: instead of your application repeatedly asking "is the file ready yet?", PDFXINET pushes a notification to your server the moment processing finishes. This eliminates polling, reduces latency, and keeps your integration simple.
X-API-Token header on every API request.POST /api/v1/webhooks
X-API-Token: your-token-here
Content-Type: application/json
{"url": "https://yourapp.example.com/hooks/pdfxinet"}
A successful response returns {"ok": true, "webhook_url": "https://..."}. Only one webhook URL is stored per user — calling this endpoint again replaces the previous URL.
Every time a conversion completes, PDFXINET sends a POST request to your endpoint with this JSON body:
{
"event": "file.processed",
"entry_id": "uuid-of-history-entry",
"original_name": "report.docx",
"filename": "abc123.pdf",
"extension": "pdf",
"size_bytes": 204800,
"user_id": "uuid-of-your-account"
}
POST /api/v1/webhooks/test
X-API-Token: your-token-here
This fires a test event to your registered URL immediately. Use it to verify your endpoint is reachable and handling payloads correctly before running real conversions.
# Get current URL
GET /api/v1/webhooks
# Remove webhook
DELETE /api/v1/webhooks
user_id in the payload matches your PDFXINET account ID before processing the event.entry_id and skipping duplicates is a safe approach.