API Doc
Api Base Host
https://api.chainbot.io/api/v1
Channel
Query Channel
GET /notify/channels
Parameters
current_pageint, Current query page, starting from 1per_pageint, Number of records per page
Response
{
"code": 0,
"msg": "success",
"data": {
"data": [
{
"id": 1367,
"user_id": 2137,
"name": "Pushover",
"platform": "Pushover",
"token": "token",
"channel": "channel",
"channel_type": "",
"is_default": 0,
"priority": 1,
"others": null
},
{
"id": 1075,
"user_id": 2137,
"name": "Webhook",
"platform": "Webhook",
"token": "",
"channel": "http://webhook.io/url",
"channel_type": "",
"is_default": 1,
"priority": 0,
"others": null
}
],
"current_page": 1,
"per_page": "999",
"total": 2
}
}Add Channel
POST /notify/channels
Parameters
Response
Delete Channel
DELETE /notify/channels/{channel_id}
Parameters
channel_id
Response
Bot
Create Bot
POST /bots
Parameters
Address Bot Example
Response
Delete Bot
DELETE /bots/{bot_id}
Parameters
bot_id
Response
Update Bot
PUT /bots/{bot_id}
Parameters
Address Bot Example
Response
Subscribe
Subscribe to Bot
POST /subscriptions
Parameters
Response
Unsubscribe from Bot
DELETE /subscriptions/{subscription_id}
Parameters
subscription_id
Response
Last updated