Ziwako Docs
Ziwako AI (Mayele)Référence APIChannels

Create channel

POST
/channels

Authorization

AccessToken
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/channels" \  -H "Content-Type: application/json" \  -d '{    "platform": "telegram"  }'
{  "status": 0,  "message": "string",  "data": {    "id": "string",    "userId": "string",    "platform": "telegram",    "label": "string",    "agentId": "string",    "status": "inactive",    "config": {      "botToken": "string",      "secretToken": "string",      "userName": "string",      "accessToken": "string",      "appSecret": "string",      "phoneNumberId": "string",      "verifyToken": "string",      "pageAccessToken": "string",      "apiBaseUrl": "string",      "webhookUrl": "string"    },    "lastError": "string",    "lastActiveAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "webhookKey": "string",    "webhookUrl": "string"  },  "type": "string",  "code": "string"}