Channels

Channel Management & Interaction

get
List Channels

http://localhost:8080/api/channels/
This endpoint returns an array of all channels the bot has access to.
Request
Response
Headers
Authentication
optional
string
Authentication Bearer token.
200: OK
[
{
"name": string,
"id": number
}
]

post
Send Message

http://localhost:8080/api/channels/:channelname
This endpoint allows you to send a message to a channel.
Request
Response
Path Parameters
channelname
optional
string
Name of the channel (not the id).
Headers
Authentication
required
string
Authentication Bearer token.
Body Parameters
message
optional
string
Message content (can include emojis).
200: OK
Message successfully sent.
{
"result": true
}
403: Forbidden
No permission to send a message to the channel.
{
"result": false
}
404: Not Found
Channel not found or doesn't exist.
{
"result": false
}

‚Äč