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-19T08: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.taskId + "." + 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; 501: the task failed.

msg
string
required

Task completed successfully. on success, Task failed. on failure.

data
object
required

The task, the same as the data of the query endpoint.

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.