Skip to content

Create Channel

POST /channels

A provisioning failure yields a channel that exists and is inactive, with the reason on the response — never a silently non-functional one (annex 11 §5.6).

FieldTypeNotes
type_namestringrequiredmin length 1 max length 60
agent_idstring (uuid)required—
persona_idstring (uuid) | nulloptional—
slugstringrequired—
configobjectoptional—
coalescingobjectoptional—
is_activebooleanoptionalDefault true.
StatusDescriptionBody
201Successful ResponseChannelView
422Validation ErrorHTTPValidationError

The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.

Terminal window
curl -X POST https://your-deployment.example.com/channels \
-H "Authorization: Bearer $COBRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"type_name": "string",
"agent_id": "0190a2f4-0000-7000-8000-000000000000",
"slug": "string"
}'
FieldTypeNotes
idstring (uuid)required—
workspace_idstring (uuid)required—
type_namestringrequired—
agent_idstring (uuid)required—
persona_idstring (uuid) | nullrequired, nullable—
slugstringrequired—
configobjectrequired—
coalescingobjectrequired—
is_activebooleanrequired—
provision_errorstring | nulloptional—
inbound_urlstring | nulloptional—
created_atstring (date-time)required—
updated_atstring (date-time)required—