Skip to content
vocapable.Docs

Add a company not-ready reason

POST
/v1/workspace/contact-center/reason-codes
curl --request POST \
--url https://api.vocapable.com/v1/workspace/contact-center/reason-codes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "label": "example", "max_duration_seconds": 1, "paid": true }'
Idempotency-Key
Any of:
string

Unique key for this request, so a retry replays the original result instead of repeating the work. Stored for 24 hours; a replayed response carries Idempotent-Replay: true. A UUID is the documented shape.

Media typeapplication/json
AgentReasonCodeCreate
object
label
required
Label
string
max_duration_seconds
Any of:
integer
>= 60 <= 86400
paid
Paid
boolean
default: true

Successful Response

Media typeapplication/json
AgentReasonCode
object
code
required
Code
string
label
required
Label
string
builtin
required
Builtin
boolean
archived
Archived
boolean
revision
Any of:
integer
max_duration_seconds
Any of:
integer
paid
Paid
boolean
default: true
Example
{
"archived": false,
"paid": true
}

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
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}