Learn how to list, retrieve, and replay callbacks using the Captain Data API.
async
and schedule
execution modes.
Instead of waiting for the entire operation to complete, you receive results progressively as they become available.
async
or schedule
mode when you need to process large datasets, want to consume data in parallel, or need to handle long-running operations without timeouts.async
and schedule
execution modes are both async modes: the results are not sent immediately in the response payload but delivered during execution via callbacks.
schedule
is built on top of async
and only adds ways to postpone and schedule calls. Both modes share the same callback delivery mechanism. For a detailed comparison and guidance on when to use each mode, see When to use live, async or schedule modes..callback
parameter:
async
and schedule
modes deliver results via the callback URL provided in your request.Consistent Format: All execution modes use the same action logic, so inputs and results are identical regardless of mode.Error Handling: Errors follow the standard API error format.run_uid
(unique to the entire run), batch_uid
(unique to this batch), and status
(current execution state).inputs.custom_data
. Available at the root level for easy access.Trigger Action
max_results: 100
Auto-Pagination
page_size: 10
Receive Running Callbacks
status: RUNNING
Final Success Callback
status: SUCCEEDED
run_uid
and batch_uid
to track and organize your data.linkedin_profile_id
) or run_uid
/batch_uid
RUNNING
callbacksSUCCEEDED
callbackGET /runs/callbacks
to retrieve all callbacks with filtering and pagination:
Available filters:
status
: PENDING
, RUNNING
, FAILED
, SUCCESS
run_uid
: Filter by specific runlimit
& offset
: Paginationsort
: Sorting (prefix with -
for descending)GET /runs/callbacks/{callback_uid}
to fetch detailed information:
POST /runs/callbacks/{callback_uid}/replay
to retry failed callbacks: