Connect API Agent channel

API documentation for Connect API Agent channel

POST
/api/v1/api-agents/{agentId}/channels

Authorization

bearerAuth
AuthorizationBearer <token>

API key authentication.

In: header

Path Parameters

agentId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/api-agents/string/channels" \  -H "Content-Type: application/json" \  -d '{    "provider": "telegram"  }'
{  "id": "string",  "provider": "telegram",  "label": "string",  "botUsername": "string",  "isActive": true,  "disabledReason": "session_expired",  "spaceId": "string",  "metadata": {    "property1": null,    "property2": null  },  "createdAt": "string",  "updatedAt": "string"}