POST request to the URL you provided.
How It Works
- Submit an async request with a
webhook_receiverin the payload. - Eden AI processes the job in the background.
- On completion, Eden AI sends a signed
POSTrequest to yourwebhook_receiverwith the result.
Request Parameters
Webhook Headers
Every webhook request Eden AI sends includes these headers:Webhook Payload
Signature Verification
Every webhook is signed with Eden AI’s RSA private key so you can verify it was not forged or tampered with in transit. The signature is built as follows:- The payload is serialized with canonical JSON (sorted keys, 2-space indent, UTF-8).
sha256(canonical_json_bytes)is computed and its hex digest is taken.- That hex digest is signed with RSA PKCS1 v1.5 / SHA-256.
- The hex-encoded signature is sent in
X-Edenai-Signature.
Example
- Python
- JavaScript
Dependencies: Receiving and verifying the webhook (Flask):
pip install requests flask pycryptodome orjsonSending the request:Retry Behavior
Eden AI retries webhook delivery up to 3 times with exponential backoff between attempts (max delay 30 s) when the receiver returns a transient failure. Each attempt has a per-request timeout of 30 s.Webhook vs Polling
Next Steps
Monitoring
Track async job results and API usage in the dashboard