Browse the API reference

Resume Operation

post/v1/operations/{operation_id}/resume

Part 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-Key header.
  • Bearer token in the Authorization header.

Path parameters

NameTypeDescription
operation_idrequiredstringOperation identifier

Request body

Required, application/json.

FieldTypeDescription
inputoptionalobject

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

StatusMeaning
400Invalid request
401Authentication required
403Access denied
404Resource not found
409Operation is not waiting for input
422Validation Error
429Rate limit exceeded
500Internal server error