Skip to main content
WEBHOOK

Authorizations

Authorization
string
header
required

API Key created in the DreamTo console, sent as Authorization: Bearer <API Key>.

Headers

X-DreamTo-Event
string
required

Event type, always task.completed.

X-DreamTo-Timestamp
string
required

Time the callback was sent, UTC, RFC 3339 (e.g. 2026-11-17T08:03:16Z); regenerated for every delivery including retries and part of the signature input.

X-DreamTo-Signature
string

Signature (lowercase hex): hex(HMAC-SHA256(secret, X-DreamTo-Timestamp + "." + data.task_id + "." + status)), where status is success for a succeeded task and failed for a failed one. Not sent when no webhook signing secret has been generated in the console.

Body

application/json

Callback request body.

code
integer<int64>
required

200: the task succeeded; any other value: the task failed (the failure code, such as 400 or 500).

msg
string
required

Message; the failure reason (English) when the task failed.

data
object
required

Callback data.

Response

200

Any 2xx status acknowledges the callback; on a timeout (10 seconds) or another status it is retried after 1, 5 and 30 minutes, at most 4 deliveries.