Skip to content

Decide a task from your own system, e.g. an approval

POST
/public/v1/tasks/{task_id}/decide
curl --request POST \
--url https://api.nuacem.dev/workflow-api/public/v1/tasks/example/decide \
--header 'Content-Type: application/json' \
--data '{ "outcome": "example", "note": "", "data": {} }'
task_id
required
Task Id
string
>= 1 characters <= 40 characters
X-VoiceCX-Key
Any of:
string
<= 200 characters
Media typeapplication/json
PublicDecision
object
outcome
required
Outcome
string
>= 1 characters <= 32 characters
note
Note
string
"" <= 500 characters
data
Data
object
key
additional properties
any

Successful Response

Media typeapplication/json
PublicTask
object
id
required
Id
string
runId
required
Runid
string
kind
required
Kind
string
label
required
Label
string
role
required
Role
string
instructions
required
Instructions
string
status
required
Status
string
outcome
Any of:
string
dueAt
Any of:
string format: date-time
createdAt
required
Createdat
string format: date-time
form
Form
Array<object>
object
key
additional properties
any
outcomes
Outcomes
Array<string>

Example generated

{
"id": "example",
"runId": "example",
"kind": "example",
"label": "example",
"role": "example",
"instructions": "example",
"status": "example",
"outcome": "example",
"dueAt": "2026-04-15T12:00:00Z",
"createdAt": "2026-04-15T12:00:00Z",
"form": [
{}
],
"outcomes": [
"example"
]
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}