Manual channels
This endpoint returns project channels.
Alert
This request must be sent from the server side only.
Secret key
You must add the x-api-key: your-secret from the admin panel settings to the headers
Endpoint
GET https://api.kod.mobi/manual/channels
Response
The Response will be an array of ManualChannel
ManualChannel
| Param | Type | Description |
|---|---|---|
| name | string | Channel name |
| type | Channel | Channel type |
| providers | array | []ManualProvider | Channel providers |
ManualProvider
| Param | Type | Description |
|---|---|---|
| id | number | Provider id |
| name | string | Provider name |
| type | Provider | Provider type |
| is_system | boolean | System provider flag |
Example
Example output
[
{
"name": "Whatsapp",
"type": "whatsapp",
"providers": [
{
"id": 1,
"type": "ultramsg",
"is_system": true
},
{
"id": 2,
"type": "cloudapi",
"is_system": false
}
]
},
{
"name": "Telegram",
"type": "telegram",
"providers": [
{
"id": 3,
"type": "telegram_gateway",
"is_system": false
}
]
},
{
"name": "SMS",
"type": "sms",
"providers": [
{
"id": 4,
"type": "sms_c",
"is_system": true
},
{
"id": 5,
"type": "sms_aero",
"is_system": false
}
]
},
{
"name": "Email",
"type": "email",
"providers": [
{
"id": 6,
"type": "postal",
"is_system": true
}
]
}
]