Skip to main content
New to Corsair? See API access, authentication, and error handling.

Channels

delete

channels.delete Delete a server channel and its messages, leave a group, or close a direct message (its messages stay) Risk: destructive · Irreversible
Input Output

edit

channels.edit Rename or redescribe a group or server channel Risk: write
Input Output

get

channels.get Fetch one channel with its type, name and permissions Risk: read
Input Output

Messages

delete

messages.delete Delete a message permanently Risk: destructive · Irreversible
Input Output

edit

messages.edit Edit a message the account posted, replacing its content Risk: write
Input Output

get

messages.get Fetch one message by id Risk: read
Input Output

list

messages.list Read a channel’s messages with time cursors, already carrying their authors Risk: read
Input The response carries users and members beside the messages, so authors resolve without a second call. Output

send

messages.send Send a message to a channel, optionally replying or attaching files Risk: write
Input Provide content or an attachment id; nonce makes a retry idempotent.
Output

Reactions

add

reactions.add Add an emoji reaction to a message Risk: write
Input The emoji is a unicode character or a bare custom emoji id, without colons. Output

Servers

get

servers.get Fetch one server with its channels, roles and default permissions Risk: read
Input Output

members

servers.members List a server’s members with their users, optionally excluding offline ones Risk: read
Input Output

Users

dms

users.dms List the direct-message and group channels the account is in, with their recipient ids Risk: read
Input: empty object Output

get

users.get Fetch one user by id with their profile and presence Risk: read
Input Output

me

users.me Read the account behind the token: its id, username, discriminator and status Risk: read
Input: empty object The default credential is a bot, so the token goes in X-Bot-Token; set credential: user for a session token. Output