Resume Operation
post
/v1/operations/{operation_id}/resumePart of Operations.
Answers an operation that paused at a checkpoint (status awaiting_input) and puts it back on the worker queue with the answer. The operation keeps its id, so the stream, status and cancel links stay valid; reconnect to /stream to follow the resumed run. Consumes no credits.
Authentication
Authenticate in any one of these ways — not all of them:
- API key in the
X-API-Keyheader. - Bearer token in the
Authorizationheader.
Path parameters
| Name | Type | Description |
|---|---|---|
operation_idrequired | string | Operation identifier |
Request body
Required, application/json.
| Field | Type | Description |
|---|---|---|
inputoptional | object | The decision the paused run asked for, in whatever shape its prompt described. Delivered to the task as `params['resume']['input']`. |
Example request
curl
curl -X POST "https://api.robosystems.ai/v1/operations/{operation_id}/resume" \
-H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"approved": true
}
}'Responses
202 Successful Response
| Status | Meaning |
|---|---|
| 400 | Invalid request |
| 401 | Authentication required |
| 403 | Access denied |
| 404 | Resource not found |
| 409 | Operation is not waiting for input |
| 422 | Validation Error |
| 429 | Rate limit exceeded |
| 500 | Internal server error |