Callback Notifications
When a run request includes callback_url, CoreClaw sends a POST request to that URL after the run status changes or finishes.
Callbacks reduce polling, but callers should still store the data.run_slug and request_id returned by the run request for follow-up reads, troubleshooting, and idempotency.
Triggering a Callback
Section titled “Triggering a Callback”Pass callback_url in run endpoints that accept a JSON request body, for example when starting a Worker directly:
{ "input": { "parameters": { "custom": { "keywords": [ "coffee" ], "base_location": "New York,USA", "max_results": 1 } } }, "is_async": true, "limit": 20, "offset": 0, "callback_url": "https://example.com/coreclaw/callbacks"}Callback Request
Section titled “Callback Request”CoreClaw sends the callback as a POST request with a JSON body:
{"run_id":123456,"run_status":"succeeded","error_message":"","execution_start_timestamp":100,"execution_end_timestamp":200,"running_duration":100,"result_count":3,"result_message":"done"}Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
run_id | integer | Platform run result ID. |
run_status | string | Run status, for example succeeded. |
error_message | string | Error message when the run fails; empty when there is no error. |
execution_start_timestamp | number | Execution start timestamp. |
execution_end_timestamp | number | Execution end timestamp. |
running_duration | number | Running duration. |
result_count | number | Current result count. |
result_message | string | Result summary or run message. |
Receiver Guidance
Section titled “Receiver Guidance”- The callback URL should be reachable by CoreClaw servers and return a 2xx HTTP status.
- Use the run identifier for idempotency so repeated notifications do not create duplicate writes.
- After receiving a callback, call the run detail, log, result, or export endpoints when complete data is needed.
- Do not put API keys in
callback_url; use a separate signature or random callback path if your receiver needs source verification.