Webhook Events
The events TryItOn POSTs to your webhook endpoint: tryon.completed, tryon.failed and webhook.test. Body fields, signature headers and responses.
We POST these events to the endpoint you set up in the dashboard. Set it up, verify signatures and handle retries with the Webhooks guide.
Good to know
- Verify first. Check
webhook-signatureagainst the raw body before you trust any field. idis stable. It equals thewebhook-idheader and stays the same on every retry. Use it to skip duplicates.datamatchesGET /status/{id}for the job, plusjobId. Result URLs last 72 hours, like the status ones.- Any
2xxwithin 10 seconds counts as delivered.
Sent once when a photo try-on made with an API key completes. data is what GET /status/{id} returns for
the job, plus its jobId. Download the images within 72 hours.
webhook-id*stringThe event id. The same on every retry of an event, so use it to skip events you already handled.
webhook-timestamp*stringWhen this attempt was sent, in Unix seconds. Reject requests more than 5 minutes off your clock.
webhook-signature*stringSpace-separated signatures, each v1,<base64>: HMAC-SHA256 of {webhook-id}.{webhook-timestamp}.{raw body},
keyed with the base64-decoded part of your whsec_ secret after the prefix. Accept the request when any one
matches. For 24 hours after a secret rotation there is also one per older secret (at most three in all).
application/json- body
id*WebhookEventIdUnique per event and the same on every retry. Equal to the webhook-id header.
^evt_[0-9a-f]{24}$type*stringcreated_at*stringWhen the event was created. Retries keep this value.
date-timedata*Any 2xx tells us the event arrived. Any other status, a redirect, or no response within 10 seconds
counts as a failure and is retried.
{ "id": "evt_5f0c8a1e2b3d4c5e6f708192", "type": "tryon.completed", "created_at": "2026-12-04T10:15:30.120Z", "data": { "jobId": "64b7f1a9d9a3b8e5c7f9a123", "status": "completed", "output": [ "https://cdn.tryiton.now/USER_ID/tryons/3f2c9a.png" ], "error": null }}{ "webhook-id": "evt_5f0c8a1e2b3d4c5e6f708192", "webhook-timestamp": "1796379330", "webhook-signature": "v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4="}Sent once when a photo try-on made with an API key fails, including a job that timed out. Its held credits
are released and it isn't charged. error says why, as text for people.
webhook-id*stringThe event id. The same on every retry of an event, so use it to skip events you already handled.
webhook-timestamp*stringWhen this attempt was sent, in Unix seconds. Reject requests more than 5 minutes off your clock.
webhook-signature*stringSpace-separated signatures, each v1,<base64>: HMAC-SHA256 of {webhook-id}.{webhook-timestamp}.{raw body},
keyed with the base64-decoded part of your whsec_ secret after the prefix. Accept the request when any one
matches. For 24 hours after a secret rotation there is also one per older secret (at most three in all).
application/json- body
id*WebhookEventIdUnique per event and the same on every retry. Equal to the webhook-id header.
^evt_[0-9a-f]{24}$type*stringcreated_at*stringWhen the event was created. Retries keep this value.
date-timedata*Any 2xx tells us the event arrived. Any other status, a redirect, or no response within 10 seconds
counts as a failure and is retried.
{ "id": "evt_9a8b7c6d5e4f30211a2b3c4d", "type": "tryon.failed", "created_at": "2026-12-04T10:18:02.511Z", "data": { "jobId": "64b7f1a9d9a3b8e5c7f9a124", "status": "failed", "output": [], "error": "Timed out." }}{ "webhook-id": "evt_5f0c8a1e2b3d4c5e6f708192", "webhook-timestamp": "1796379330", "webhook-signature": "v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4="}Sent when you press Send test event in the dashboard. Signed like every other event, so it checks your verification code end to end. It isn't retried.
webhook-id*stringThe event id. The same on every retry of an event, so use it to skip events you already handled.
webhook-timestamp*stringWhen this attempt was sent, in Unix seconds. Reject requests more than 5 minutes off your clock.
webhook-signature*stringSpace-separated signatures, each v1,<base64>: HMAC-SHA256 of {webhook-id}.{webhook-timestamp}.{raw body},
keyed with the base64-decoded part of your whsec_ secret after the prefix. Accept the request when any one
matches. For 24 hours after a secret rotation there is also one per older secret (at most three in all).
application/json- body
id*WebhookEventIdUnique per event and the same on every retry. Equal to the webhook-id header.
^evt_[0-9a-f]{24}$type*stringcreated_at*stringdate-timedata*Any 2xx tells us the event arrived. Any other status, a redirect, or no response within 10 seconds
counts as a failure and is retried.
{ "id": "evt_0f1e2d3c4b5a69788796a5b4", "type": "webhook.test", "created_at": "2026-12-04T10:00:00.000Z", "data": { "message": "This is a test event from TryItOn." }}{ "webhook-id": "evt_5f0c8a1e2b3d4c5e6f708192", "webhook-timestamp": "1796379330", "webhook-signature": "v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4="}Job Status
Poll GET /status/{id} for a virtual try-on job's status and result image URLs. Response fields, polling interval, timeouts, retention and errors.
Credits & Health
Check your virtual try-on API credit balance with GET /credits, work out what you can spend, and check that the API is up with GET /health.