Session channels
This endpoint returns project channels given a session.
API key
You must add the x-api-key: your-api-key from the admin panel settings to the headers
Endpoint
GET https://api.kod.mobi/session/channels
Request
If you have a valid session, you should pass it to the request as session_id query parameter to get the actual
channels.
Query params
| Param | Type | Description | Required |
|---|---|---|---|
| session_id | ulid | Valid session id | false |
Response
The Response will be an array of SessionChannel
SessionChannel
| Param | Type | Description |
|---|---|---|
| name | string | Channel name |
| type | Channel | Channel type |
| is_active | boolean | User status on the channel. ex: on telegram bot |
| timeout | number | min:0 | max:60 | Channel block timeout |
| image_url | string | url | Channel image url |
| link | string | url | Channel link url, ex: to telegram bot |
Example
Session ID is an optional parameter, if you don't have it you can skip it
Example output
[
{
"name": "Whatsapp",
"type": "whatsapp",
"is_active": true,
"timeout": 0,
"image_url": "https://storage.kod.mobi/icons/whatsapp.svg",
"link": "https://kod.mobi"
},
{
"name": "Telegram",
"type": "telegram",
"is_active": false,
"timeout": 0,
"image_url": "https://storage.kod.mobi/icons/telegram.svg",
"link": "https://t.me/my-tg-bot"
},
{
"name": "SMS",
"type": "sms",
"is_active": false,
"timeout": 0,
"image_url": "https://storage.kod.mobi/icons/sms.svg",
"link": "https://kod.mobi"
},
{
"name": "Email",
"type": "email",
"is_active": true,
"timeout": 0,
"image_url": "https://storage.kod.mobi/icons/email.svg",
"link": "https://kod.mobi"
}
]