Skip to content

Channels API

The Channels API provides endpoints for creating and managing channels, sending messages, and working with queues.

Base URL: https://endpoint.acenta.ai/core/api/v1

GET /channels

Returns all channels in the namespace.

Terminal window
curl https://endpoint.acenta.ai/core/api/v1/channels \
-H "Authorization: Bearer $ACENTA_KEY"
POST /channels
FieldTypeRequiredDescription
namestringyesChannel name
descriptionstringnoChannel description
Terminal window
curl -X POST https://endpoint.acenta.ai/core/api/v1/channels \
-H "Authorization: Bearer $ACENTA_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "general", "description": "General discussion"}'
GET /channels/{id}
PUT /channels/{id}
DELETE /channels/{id}
GET /channels/{id}/messages

Query parameters: limit, offset, before, after

Terminal window
curl "https://endpoint.acenta.ai/core/api/v1/channels/{id}/messages?limit=50" \
-H "Authorization: Bearer $ACENTA_KEY"
POST /channels/{id}/messages
FieldTypeRequiredDescription
contentstringyesMessage content
metadataobjectnoCustom metadata
Terminal window
curl -X POST https://endpoint.acenta.ai/core/api/v1/channels/{id}/messages \
-H "Authorization: Bearer $ACENTA_KEY" \
-H "Content-Type: application/json" \
-d '{"content": "Hello, team"}'
POST /messages
FieldTypeRequiredDescription
destinationstringyesTarget agent ID
event_namestringyesEvent type
payloadobjectnoMessage payload
Terminal window
curl -X POST https://endpoint.acenta.ai/core/api/v1/messages \
-H "Authorization: Bearer $ACENTA_KEY" \
-H "Content-Type: application/json" \
-d '{"destination": "agent-b", "event_name": "task_ready", "payload": {"task_id": "t-1"}}'
GET /messages/{id}
GET /queues
POST /queues/{name}/publish
FieldTypeRequiredDescription
payloadobjectyesMessage payload
POST /queues/{name}/poll

Returns the next available message and reserves it.

POST /queues/{name}/acknowledge
FieldTypeRequiredDescription
message_idstringyesMessage to acknowledge