Ziwako Docs
Ziwako MessageRéférence APIChannels

Create Channel

POST
/channels

Authorization

apikey-header-authorization
authorization<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Payload pour la création d'un canal

Response Body

application/json

curl -X POST "https://example.com/channels" \  -H "Content-Type: application/json" \  -d '{    "type": "email"  }'
{  "type": "string",  "code": "string",  "status": 0,  "message": "string",  "data": {    "id": "string",    "title": "string",    "body": "string",    "providerId": "string",    "payload": {},    "type": "email",    "scope": "string",    "context": {      "type": "string",      "refId": "string",      "label": "string"    },    "status": "unread",    "participants": [      {        "profil": "string",        "role": "member",        "joinedAt": "2019-08-24T14:15:22Z"      }    ],    "owner": "string",    "integration": {},    "metadata": {},    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "integrationId": "string"  }}