API tasks
An API Call task in a workflow sends a request to an external system through a configured connection. By default, the HTTP response decides the task's outcome. Enable Wait for webhook update for an external system to report progress and complete the task asynchronously using task callbacks.
For the setup video and screenshots, see Let a connected system finish a task.
How an API task completes
- In the workflow designer, add an API Call step and choose its System (connection), Method, Path, and optional Query parameters, Headers and Request body.
- Under Named Outputs, add outputs that capture values from the JSON response body. Output paths are relative to the response body, for example
data.idoritems[0].id. Mark an output Required when the task must not complete without it, and Nullable whennullis acceptable. - When the workflow reaches the task, WeekOne sends the request. With waiting off, a 2xx response whose body provides every required output with its configured type completes the task immediately, stores the named outputs, and continues the workflow. Later steps can reference those outputs.
Without an accepted callback confirming receipt, any other result blocks the task with an error code, such as api_call.http_500 for a non-2xx status, api_call.timeout or api_call.transport_error when no response arrived, api_call.output_extraction_failed when outputs are defined and the 2xx response is not JSON, lacks a required output, or has a wrongly typed value or an unexpected null, and api_call.output_contains_secret when an output would expose a connection credential. WeekOne notifies the organisation's owners and admins about the failure. A valid latest callback can reconcile that execution's HTTP failure; manual blocks remain protected.
Use Preview request and Send test request in the designer to check a configuration before using it in a live workflow.
Execution history and recovery
Owners and admins can review attempts in the task's execution history on the employee's task details page. The following recovery actions are offered depending on the attempt:
| Action | Available for | Effect |
|---|---|---|
| Retry | Failed attempts, or attempts whose outcome is unknown | Resends the saved request with the same idempotency key, if the connection uses one. If the connection has changed since then, use New request instead |
| New request | Failed or unknown attempts, cancelled waits, and expired callback waits | Builds and sends a fresh request from the current configuration |
| Re-evaluate | Attempts that received a 2xx response, while the saved response is still available | Extracts the outputs again from the saved response without sending a new request |
Cancel waiting revokes the old execution key and enables a new request. It does not stop work already running in the external system. Saved-request retries and HTTP response re-evaluation are disabled for callback-bearing attempts; current webhook-waiting configurations also require New request.
Saved request and response snapshots are kept for 30 days.
Completing a task from an external system
Use POST /api/callbacks/tasks/{taskId}/status with the execution-scoped callback key delivered in the request body. It accepts IN_PROGRESS or COMPLETED, a description, and JSON data. Organisation integration tokens cannot authenticate this endpoint. See API task status callbacks for setup, authentication, output validation, retries, cancellation and the walkthrough.