Skip to main content
When a task reaches a terminal state (SUCCESS / FAILURE / TIMEOUT / CANCELLED), if a callBackUrl was specified at submission time, the system will send a POST request to that URL.

Callback Format

The callback data field is identical in format to the query endpoint response:
SUCCESS
FAILURE (content moderation)

result Field Structure

On SUCCESS: On FAILURE / TIMEOUT / CANCELLED: result is null.

failure_reason

Always present in the response. null when no specific actionable reason applies. Values:

Important Notes

  • Webhook timeout is 5 seconds; it is sent asynchronously and does not block the main workflow
  • Failed deliveries are logged only and will not be retried
  • callBackUrl does not support localhost / 127.0.0.1 or other internal addresses (SSRF protection)
  • The outer code is always 0; use data.status to determine success or failure