Skip to main content
POST
Answer a decision

Authorizations

cc-key
string
header
required

API key-based authentication. Provide your CloudCruise API key in the cc-key header.

Path Parameters

session_id
string
required

The session that asked the decision (session_id in the webhook)

Body

application/json
decision_id
string
required

The decision_id from agent.decision_requested

values
object

Answers keyed by field id. For choice fields, the option id.

Example:
text
string

A free-text instruction for the agent

Maximum string length: 2000
directive
enum<string>

Requeue the run, stop it and note that an error code should be added, or fail it

Available options:
requeue,
add_error_code,
fail

Response

Answer accepted; the run resumes with it

status
enum<string>
Available options:
accepted
decision_id
string