Response samples
- 200
- default
{- "revolt": "string",
- "features": {
- "captcha": {
- "enabled": true,
- "key": "string"
}, - "email": true,
- "invite_only": true,
- "autumn": {
- "enabled": true,
- "url": "string"
}, - "january": {
- "enabled": true,
- "url": "string"
}, - "voso": {
- "enabled": true,
- "url": "string",
- "ws": "string"
}
}, - "ws": "string",
- "app": "string",
- "vapid": "string",
- "build": {
- "commit_sha": "string",
- "commit_timestamp": "string",
- "semver": "string",
- "origin_url": "string",
- "timestamp": "string"
}
}
Response samples
- 200
- default
{- "_id": "string",
- "username": "string",
- "discriminator": "string",
- "display_name": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "relations": [
- {
- "_id": "string",
- "status": "None"
}
], - "badges": 0,
- "status": {
- "text": "string",
- "presence": "Online"
}, - "profile": {
- "content": "string",
- "background": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}, - "flags": 0,
- "privileged": true,
- "bot": {
- "owner": "string"
}, - "relationship": "None",
- "online": true
}
Fetch User
Retrieve a user's information.
Authorizations:
path Parameters
target required | string (Id) |
Responses
Response samples
- 200
- default
{- "_id": "string",
- "username": "string",
- "discriminator": "string",
- "display_name": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "relations": [
- {
- "_id": "string",
- "status": "None"
}
], - "badges": 0,
- "status": {
- "text": "string",
- "presence": "Online"
}, - "profile": {
- "content": "string",
- "background": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}, - "flags": 0,
- "privileged": true,
- "bot": {
- "owner": "string"
}, - "relationship": "None",
- "online": true
}
Edit User
Edit currently authenticated user.
Authorizations:
path Parameters
target required | string (Id) |
Request Body schema: application/json
display_name | string or null [ 2 .. 32 ] characters ^[^\u200B\n\r]+$ New display name |
avatar | string or null [ 1 .. 128 ] characters Attachment Id for avatar |
object or null User's active status | |
object or null (Profile Data) New user profile data This is applied as a partial. | |
badges | integer or null <int32> Bitfield of user badges |
flags | integer or null <int32> Enum of user flags |
remove | Array of strings or null (FieldsUser) non-empty Enum: "Avatar" "StatusText" "StatusPresence" "ProfileContent" "ProfileBackground" "DisplayName" Fields to remove from user object |
Responses
Request samples
- Payload
{- "display_name": "string",
- "avatar": "string",
- "status": {
- "text": "string",
- "presence": "Online"
}, - "profile": {
- "content": "string",
- "background": "string"
}, - "badges": 0,
- "flags": 0,
- "remove": [
- "Avatar"
]
}
Response samples
- 200
- default
{- "_id": "string",
- "username": "string",
- "discriminator": "string",
- "display_name": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "relations": [
- {
- "_id": "string",
- "status": "None"
}
], - "badges": 0,
- "status": {
- "text": "string",
- "presence": "Online"
}, - "profile": {
- "content": "string",
- "background": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}, - "flags": 0,
- "privileged": true,
- "bot": {
- "owner": "string"
}, - "relationship": "None",
- "online": true
}
Change Username
Change your username.
Authorizations:
Request Body schema: application/json
username required | string [ 2 .. 32 ] characters ^(\p{L}|[\d_.-])+$ New username |
password required | string [ 8 .. 1024 ] characters Current account password |
Responses
Request samples
- Payload
{- "username": "string",
- "password": "stringst"
}
Response samples
- 200
- default
{- "_id": "string",
- "username": "string",
- "discriminator": "string",
- "display_name": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "relations": [
- {
- "_id": "string",
- "status": "None"
}
], - "badges": 0,
- "status": {
- "text": "string",
- "presence": "Online"
}, - "profile": {
- "content": "string",
- "background": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}, - "flags": 0,
- "privileged": true,
- "bot": {
- "owner": "string"
}, - "relationship": "None",
- "online": true
}
Fetch User Profile
Retrieve a user's profile data.
Will fail if you do not have permission to access the other user's profile.
Authorizations:
path Parameters
target required | string (Id) |
Responses
Response samples
- 200
- default
{- "content": "string",
- "background": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}
Open Direct Message
Open a DM with another user.
If the target is oneself, a saved messages channel is returned.
Authorizations:
path Parameters
target required | string (Id) |
Responses
Response samples
- 200
- default
{- "channel_type": "VoiceChannel",
- "_id": "string",
- "server": "string",
- "name": "string",
- "description": "string",
- "icon": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "default_permissions": {
- "a": 0,
- "d": 0
}, - "role_permissions": {
- "property1": {
- "a": 0,
- "d": 0
}, - "property2": {
- "a": 0,
- "d": 0
}
}, - "nsfw": true
}
Accept Friend Request
Accept another user's friend request.
Authorizations:
path Parameters
target required | string (Id) |
Responses
Response samples
- 200
- default
{- "_id": "string",
- "username": "string",
- "discriminator": "string",
- "display_name": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "relations": [
- {
- "_id": "string",
- "status": "None"
}
], - "badges": 0,
- "status": {
- "text": "string",
- "presence": "Online"
}, - "profile": {
- "content": "string",
- "background": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}, - "flags": 0,
- "privileged": true,
- "bot": {
- "owner": "string"
}, - "relationship": "None",
- "online": true
}
Deny Friend Request / Remove Friend
Denies another user's friend request or removes an existing friend.
Authorizations:
path Parameters
target required | string |
Responses
Response samples
- 200
- default
{- "_id": "string",
- "username": "string",
- "discriminator": "string",
- "display_name": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "relations": [
- {
- "_id": "string",
- "status": "None"
}
], - "badges": 0,
- "status": {
- "text": "string",
- "presence": "Online"
}, - "profile": {
- "content": "string",
- "background": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}, - "flags": 0,
- "privileged": true,
- "bot": {
- "owner": "string"
}, - "relationship": "None",
- "online": true
}
Block User
Block another user by their id.
Authorizations:
path Parameters
target required | string |
Responses
Response samples
- 200
- default
{- "_id": "string",
- "username": "string",
- "discriminator": "string",
- "display_name": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "relations": [
- {
- "_id": "string",
- "status": "None"
}
], - "badges": 0,
- "status": {
- "text": "string",
- "presence": "Online"
}, - "profile": {
- "content": "string",
- "background": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}, - "flags": 0,
- "privileged": true,
- "bot": {
- "owner": "string"
}, - "relationship": "None",
- "online": true
}
Unblock User
Unblock another user by their id.
Authorizations:
path Parameters
target required | string |
Responses
Response samples
- 200
- default
{- "_id": "string",
- "username": "string",
- "discriminator": "string",
- "display_name": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "relations": [
- {
- "_id": "string",
- "status": "None"
}
], - "badges": 0,
- "status": {
- "text": "string",
- "presence": "Online"
}, - "profile": {
- "content": "string",
- "background": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}, - "flags": 0,
- "privileged": true,
- "bot": {
- "owner": "string"
}, - "relationship": "None",
- "online": true
}
Send Friend Request
Send a friend request to another user.
Authorizations:
Request Body schema: application/json
username required | string Username and discriminator combo separated by # |
Responses
Request samples
- Payload
{- "username": "string"
}
Response samples
- 200
- default
{- "_id": "string",
- "username": "string",
- "discriminator": "string",
- "display_name": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "relations": [
- {
- "_id": "string",
- "status": "None"
}
], - "badges": 0,
- "status": {
- "text": "string",
- "presence": "Online"
}, - "profile": {
- "content": "string",
- "background": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}, - "flags": 0,
- "privileged": true,
- "bot": {
- "owner": "string"
}, - "relationship": "None",
- "online": true
}
Create Bot
Create a new Revolt bot.
Authorizations:
Request Body schema: application/json
name required | string [ 2 .. 32 ] characters ^(\p{L}|[\d_.-])+$ Bot username |
Responses
Request samples
- Payload
{- "name": "string"
}
Response samples
- 200
- default
{- "_id": "string",
- "owner": "string",
- "token": "string",
- "public": true,
- "analytics": true,
- "discoverable": true,
- "interactions_url": "string",
- "terms_of_service_url": "string",
- "privacy_policy_url": "string",
- "flags": 0
}
Invite Bot
Invite a bot to a server or group by its id.`
Authorizations:
path Parameters
target required | string (Id) |
Request Body schema: application/json
server required | string Server Id |
Responses
Request samples
- Payload
{- "group": "string"
}
Response samples
- default
{- "type": "FailedValidation"
}
Fetch Bot
Fetch details of a bot you own by its id.
Authorizations:
path Parameters
bot required | string (Id) |
Responses
Response samples
- 200
- default
{- "bot": {
- "_id": "string",
- "owner": "string",
- "token": "string",
- "public": true,
- "analytics": true,
- "discoverable": true,
- "interactions_url": "string",
- "terms_of_service_url": "string",
- "privacy_policy_url": "string",
- "flags": 0
}, - "user": {
- "_id": "string",
- "username": "string",
- "discriminator": "string",
- "display_name": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "relations": [
- {
- "_id": "string",
- "status": "None"
}
], - "badges": 0,
- "status": {
- "text": "string",
- "presence": "Online"
}, - "profile": {
- "content": "string",
- "background": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}, - "flags": 0,
- "privileged": true,
- "bot": {
- "owner": "string"
}, - "relationship": "None",
- "online": true
}
}
Fetch Owned Bots
Fetch all of the bots that you have control over.
Authorizations:
Responses
Response samples
- 200
- default
{- "bots": [
- {
- "_id": "string",
- "owner": "string",
- "token": "string",
- "public": true,
- "analytics": true,
- "discoverable": true,
- "interactions_url": "string",
- "terms_of_service_url": "string",
- "privacy_policy_url": "string",
- "flags": 0
}
], - "users": [
- {
- "_id": "string",
- "username": "string",
- "discriminator": "string",
- "display_name": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "relations": [
- {
- "_id": "string",
- "status": "None"
}
], - "badges": 0,
- "status": {
- "text": "string",
- "presence": "Online"
}, - "profile": {
- "content": "string",
- "background": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}, - "flags": 0,
- "privileged": true,
- "bot": {
- "owner": "string"
}, - "relationship": "None",
- "online": true
}
]
}
Edit Bot
Edit bot details by its id.
Authorizations:
path Parameters
target required | string (Id) |
Request Body schema: application/json
name | string or null [ 2 .. 32 ] characters ^(\p{L}|[\d_.-])+$ Bot username |
public | boolean or null Whether the bot can be added by anyone |
analytics | boolean or null Whether analytics should be gathered for this bot Must be enabled in order to show up on Revolt Discover. |
interactions_url | string or null [ 1 .. 2048 ] characters Interactions URL |
remove | Array of strings or null (FieldsBot) non-empty Enum: "Token" "InteractionsURL" Fields to remove from bot object |
Responses
Request samples
- Payload
{- "name": "string",
- "public": true,
- "analytics": true,
- "interactions_url": "string",
- "remove": [
- "Token"
]
}
Response samples
- 200
- default
{- "_id": "string",
- "owner": "string",
- "token": "string",
- "public": true,
- "analytics": true,
- "discoverable": true,
- "interactions_url": "string",
- "terms_of_service_url": "string",
- "privacy_policy_url": "string",
- "flags": 0
}
Fetch Channel
Fetch channel by its id.
Authorizations:
path Parameters
target required | string (Id) |
Responses
Response samples
- 200
- default
{- "channel_type": "VoiceChannel",
- "_id": "string",
- "server": "string",
- "name": "string",
- "description": "string",
- "icon": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "default_permissions": {
- "a": 0,
- "d": 0
}, - "role_permissions": {
- "property1": {
- "a": 0,
- "d": 0
}, - "property2": {
- "a": 0,
- "d": 0
}
}, - "nsfw": true
}
Close Channel
Deletes a server channel, leaves a group or closes a group.
Authorizations:
path Parameters
target required | string (Id) |
query Parameters
leave_silently | boolean or null Whether to not send a leave message |
Responses
Response samples
- default
{- "type": "FailedValidation"
}
Edit Channel
Edit a channel object by its id.
Authorizations:
path Parameters
target required | string (Id) |
Request Body schema: application/json
name | string or null [ 1 .. 32 ] characters Channel name |
description | string or null [ 0 .. 1024 ] characters Channel description |
owner | string or null Group owner |
icon | string or null [ 1 .. 128 ] characters Icon Provide an Autumn attachment Id. |
nsfw | boolean or null Whether this channel is age-restricted |
archived | boolean or null Whether this channel is archived |
remove | Array of strings or null (FieldsChannel) non-empty Enum: "Description" "Icon" "DefaultPermissions" |
Responses
Request samples
- Payload
{- "name": "string",
- "description": "string",
- "owner": "string",
- "icon": "string",
- "nsfw": true,
- "archived": true,
- "remove": [
- "Description"
]
}
Response samples
- 200
- default
{- "channel_type": "VoiceChannel",
- "_id": "string",
- "server": "string",
- "name": "string",
- "description": "string",
- "icon": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "default_permissions": {
- "a": 0,
- "d": 0
}, - "role_permissions": {
- "property1": {
- "a": 0,
- "d": 0
}, - "property2": {
- "a": 0,
- "d": 0
}
}, - "nsfw": true
}
Set Role Permission
Sets permissions for the specified role in this channel.
Channel must be a TextChannel
or VoiceChannel
.
Authorizations:
path Parameters
target required | string (Id) |
role_id required | string |
Request Body schema: application/json
required | object Representation of a single permission override | ||||
|
Responses
Request samples
- Payload
{- "permissions": {
- "allow": 0,
- "deny": 0
}
}
Response samples
- 200
- default
{- "channel_type": "VoiceChannel",
- "_id": "string",
- "server": "string",
- "name": "string",
- "description": "string",
- "icon": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "default_permissions": {
- "a": 0,
- "d": 0
}, - "role_permissions": {
- "property1": {
- "a": 0,
- "d": 0
}, - "property2": {
- "a": 0,
- "d": 0
}
}, - "nsfw": true
}
Set Default Permission
Sets permissions for the default role in this channel.
Channel must be a Group
, TextChannel
or VoiceChannel
.
Authorizations:
path Parameters
target required | string (Id) |
Request Body schema: application/json
permissions required | integer <uint64> >= 0 Permission values to set for members in a |
Responses
Request samples
- Payload
{- "permissions": {
- "allow": 0,
- "deny": 0
}
}
Response samples
- 200
- default
{- "channel_type": "VoiceChannel",
- "_id": "string",
- "server": "string",
- "name": "string",
- "description": "string",
- "icon": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "default_permissions": {
- "a": 0,
- "d": 0
}, - "role_permissions": {
- "property1": {
- "a": 0,
- "d": 0
}, - "property2": {
- "a": 0,
- "d": 0
}
}, - "nsfw": true
}
Fetch Messages
Fetch multiple messages.
Authorizations:
path Parameters
target required | string (Id) |
query Parameters
limit | integer or null <int64> [ 1 .. 100 ] Maximum number of messages to fetch For fetching nearby messages, this is `(limit + 1)`. |
before | string or null = 26 characters Message id before which messages should be fetched |
after | string or null = 26 characters Message id after which messages should be fetched |
sort | string (Message Sort) Enum: "Relevance" "Latest" "Oldest" Message sort direction |
nearby | string or null = 26 characters Message id to search around Specifying 'nearby' ignores 'before', 'after' and 'sort'. It will also take half of limit rounded as the limits to each side. It also fetches the message ID specified. |
include_users | boolean or null Whether to include user (and member, if server channel) objects |
Responses
Response samples
- 200
- default
{- "messages": [
- {
- "_id": "string",
- "nonce": "string",
- "channel": "string",
- "author": "string",
- "webhook": {
- "name": "string",
- "avatar": "string"
}, - "content": "string",
- "system": {
- "type": "text",
- "content": "string"
}, - "attachments": [
- {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
], - "edited": "1970-01-01T00:00:00Z",
- "embeds": [
- {
- "type": "Website",
- "url": "string",
- "original_url": "string",
- "special": {
- "type": "None"
}, - "title": "string",
- "description": "string",
- "image": {
- "url": "string",
- "width": 0,
- "height": 0,
- "size": "Large"
}, - "video": {
- "url": "string",
- "width": 0,
- "height": 0
}, - "site_name": "string",
- "icon_url": "string",
- "colour": "string"
}
], - "mentions": [
- "string"
], - "replies": [
- "string"
], - "reactions": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "interactions": {
- "reactions": [
- "string"
], - "restrict_reactions": true
}, - "masquerade": {
- "name": "string",
- "avatar": "string",
- "colour": "string"
}
}
], - "users": [
- {
- "_id": "string",
- "username": "string",
- "discriminator": "string",
- "display_name": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "relations": [
- {
- "_id": "string",
- "status": "None"
}
], - "badges": 0,
- "status": {
- "text": "string",
- "presence": "Online"
}, - "profile": {
- "content": "string",
- "background": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}, - "flags": 0,
- "privileged": true,
- "bot": {
- "owner": "string"
}, - "relationship": "None",
- "online": true
}
], - "members": [
- {
- "_id": {
- "server": "string",
- "user": "string"
}, - "joined_at": "1970-01-01T00:00:00Z",
- "nickname": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "roles": [
- "string"
], - "timeout": "1970-01-01T00:00:00Z"
}
]
}
Send Message
Sends a message to the given channel.
Authorizations:
path Parameters
target required | string (Id) |
header Parameters
Idempotency-Key | string Unique key to prevent duplicate requests |
Request Body schema: application/json
nonce | string or null [ 1 .. 64 ] characters Unique token to prevent duplicate message sending This is deprecated and replaced by |
content | string or null [ 0 .. 2000 ] characters Message content to send |
attachments | Array of strings or null Attachments to include in message |
Array of objects or null (Reply) Messages to reply to | |
Array of objects or null (SendableEmbed) Embeds to include in message Text embed content contributes to the content length cap | |
object or null Name and / or avatar override information | |
object or null Information to guide interactions on this message |
Responses
Request samples
- Payload
{- "nonce": "string",
- "content": "string",
- "attachments": [
- "string"
], - "replies": [
- {
- "id": "string",
- "mention": true
}
], - "embeds": [
- {
- "icon_url": "string",
- "url": "string",
- "title": "string",
- "description": "string",
- "media": "string",
- "colour": "string"
}
], - "masquerade": {
- "name": "string",
- "avatar": "string",
- "colour": "string"
}, - "interactions": {
- "reactions": [
- "string"
], - "restrict_reactions": true
}
}
Response samples
- 200
- default
{- "_id": "string",
- "nonce": "string",
- "channel": "string",
- "author": "string",
- "webhook": {
- "name": "string",
- "avatar": "string"
}, - "content": "string",
- "system": {
- "type": "text",
- "content": "string"
}, - "attachments": [
- {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
], - "edited": "1970-01-01T00:00:00Z",
- "embeds": [
- {
- "type": "Website",
- "url": "string",
- "original_url": "string",
- "special": {
- "type": "None"
}, - "title": "string",
- "description": "string",
- "image": {
- "url": "string",
- "width": 0,
- "height": 0,
- "size": "Large"
}, - "video": {
- "url": "string",
- "width": 0,
- "height": 0
}, - "site_name": "string",
- "icon_url": "string",
- "colour": "string"
}
], - "mentions": [
- "string"
], - "replies": [
- "string"
], - "reactions": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "interactions": {
- "reactions": [
- "string"
], - "restrict_reactions": true
}, - "masquerade": {
- "name": "string",
- "avatar": "string",
- "colour": "string"
}
}
Search for Messages
This route searches for messages within the given parameters.
Authorizations:
path Parameters
target required | string (Id) |
Request Body schema: application/json
query required | string [ 1 .. 64 ] characters Full-text search query See MongoDB documentation for more information. |
limit | integer or null <int64> [ 1 .. 100 ] Maximum number of messages to fetch |
before | string or null = 26 characters Message id before which messages should be fetched |
after | string or null = 26 characters Message id after which messages should be fetched |
sort | string (Message Sort) Default: "Relevance" Enum: "Relevance" "Latest" "Oldest" Sort used for retrieving messages |
include_users | boolean or null Whether to include user (and member, if server channel) objects |
Responses
Request samples
- Payload
{- "query": "string",
- "limit": 1,
- "before": "stringstringstringstringst",
- "after": "stringstringstringstringst",
- "sort": "Relevance",
- "include_users": true
}
Response samples
- 200
- default
{- "messages": [
- {
- "_id": "string",
- "nonce": "string",
- "channel": "string",
- "author": "string",
- "webhook": {
- "name": "string",
- "avatar": "string"
}, - "content": "string",
- "system": {
- "type": "text",
- "content": "string"
}, - "attachments": [
- {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
], - "edited": "1970-01-01T00:00:00Z",
- "embeds": [
- {
- "type": "Website",
- "url": "string",
- "original_url": "string",
- "special": {
- "type": "None"
}, - "title": "string",
- "description": "string",
- "image": {
- "url": "string",
- "width": 0,
- "height": 0,
- "size": "Large"
}, - "video": {
- "url": "string",
- "width": 0,
- "height": 0
}, - "site_name": "string",
- "icon_url": "string",
- "colour": "string"
}
], - "mentions": [
- "string"
], - "replies": [
- "string"
], - "reactions": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "interactions": {
- "reactions": [
- "string"
], - "restrict_reactions": true
}, - "masquerade": {
- "name": "string",
- "avatar": "string",
- "colour": "string"
}
}
], - "users": [
- {
- "_id": "string",
- "username": "string",
- "discriminator": "string",
- "display_name": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "relations": [
- {
- "_id": "string",
- "status": "None"
}
], - "badges": 0,
- "status": {
- "text": "string",
- "presence": "Online"
}, - "profile": {
- "content": "string",
- "background": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}, - "flags": 0,
- "privileged": true,
- "bot": {
- "owner": "string"
}, - "relationship": "None",
- "online": true
}
], - "members": [
- {
- "_id": {
- "server": "string",
- "user": "string"
}, - "joined_at": "1970-01-01T00:00:00Z",
- "nickname": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "roles": [
- "string"
], - "timeout": "1970-01-01T00:00:00Z"
}
]
}
Poll Message Changes
This route returns any changed message objects and tells you if any have been deleted.
Don't actually poll this route, instead use this to update your local database.
DEPRECATED
Authorizations:
path Parameters
_target required | string (Id) |
Request Body schema: application/json
ids required | Array of strings [ 0 .. 150 ] items Array of message IDs |
Responses
Request samples
- Payload
{- "ids": [
- "string"
]
}
Response samples
- default
{- "type": "FailedValidation"
}
Fetch Message
Retrieves a message by its id.
Authorizations:
path Parameters
target required | string (Id) |
msg required | string (Id) |
Responses
Response samples
- 200
- default
{- "_id": "string",
- "nonce": "string",
- "channel": "string",
- "author": "string",
- "webhook": {
- "name": "string",
- "avatar": "string"
}, - "content": "string",
- "system": {
- "type": "text",
- "content": "string"
}, - "attachments": [
- {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
], - "edited": "1970-01-01T00:00:00Z",
- "embeds": [
- {
- "type": "Website",
- "url": "string",
- "original_url": "string",
- "special": {
- "type": "None"
}, - "title": "string",
- "description": "string",
- "image": {
- "url": "string",
- "width": 0,
- "height": 0,
- "size": "Large"
}, - "video": {
- "url": "string",
- "width": 0,
- "height": 0
}, - "site_name": "string",
- "icon_url": "string",
- "colour": "string"
}
], - "mentions": [
- "string"
], - "replies": [
- "string"
], - "reactions": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "interactions": {
- "reactions": [
- "string"
], - "restrict_reactions": true
}, - "masquerade": {
- "name": "string",
- "avatar": "string",
- "colour": "string"
}
}
Edit Message
Edits a message that you've previously sent.
Authorizations:
path Parameters
target required | string (Id) |
msg required | string (Id) |
Request Body schema: application/json
content | string or null [ 1 .. 2000 ] characters New message content |
Array of objects or null (SendableEmbed) [ 0 .. 10 ] items Embeds to include in the message |
Responses
Request samples
- Payload
{- "content": "string",
- "embeds": [
- {
- "icon_url": "string",
- "url": "string",
- "title": "string",
- "description": "string",
- "media": "string",
- "colour": "string"
}
]
}
Response samples
- 200
- default
{- "_id": "string",
- "nonce": "string",
- "channel": "string",
- "author": "string",
- "webhook": {
- "name": "string",
- "avatar": "string"
}, - "content": "string",
- "system": {
- "type": "text",
- "content": "string"
}, - "attachments": [
- {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
], - "edited": "1970-01-01T00:00:00Z",
- "embeds": [
- {
- "type": "Website",
- "url": "string",
- "original_url": "string",
- "special": {
- "type": "None"
}, - "title": "string",
- "description": "string",
- "image": {
- "url": "string",
- "width": 0,
- "height": 0,
- "size": "Large"
}, - "video": {
- "url": "string",
- "width": 0,
- "height": 0
}, - "site_name": "string",
- "icon_url": "string",
- "colour": "string"
}
], - "mentions": [
- "string"
], - "replies": [
- "string"
], - "reactions": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "interactions": {
- "reactions": [
- "string"
], - "restrict_reactions": true
}, - "masquerade": {
- "name": "string",
- "avatar": "string",
- "colour": "string"
}
}
Bulk Delete Messages
Delete multiple messages you've sent or one you have permission to delete.
This will always require ManageMessages
permission regardless of whether you own the message or not.
Messages must have been sent within the past 1 week.
Authorizations:
path Parameters
target required | string (Id) |
Request Body schema: application/json
ids required | Array of strings [ 1 .. 100 ] items Message IDs |
Responses
Request samples
- Payload
{- "ids": [
- "string"
]
}
Response samples
- default
{- "type": "FailedValidation"
}
Remove Reaction(s) to Message
Remove your own, someone else's or all of a given reaction.
Requires ManageMessages
if changing others' reactions.
Authorizations:
path Parameters
target required | string (Id) |
msg required | string (Id) |
emoji required | string (Id) |
query Parameters
user_id | string or null Remove a specific user's reaction |
remove_all | boolean or null Remove all reactions |
Responses
Response samples
- default
{- "type": "FailedValidation"
}
Remove All Reactions from Message
Remove your own, someone else's or all of a given reaction.
Requires ManageMessages
permission.
Authorizations:
path Parameters
target required | string (Id) |
msg required | string (Id) |
Responses
Response samples
- default
{- "type": "FailedValidation"
}
Fetch Group Members
Retrieves all users who are part of this group.
Authorizations:
path Parameters
target required | string (Id) |
Responses
Response samples
- 200
- default
[- {
- "_id": "string",
- "username": "string",
- "discriminator": "string",
- "display_name": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "relations": [
- {
- "_id": "string",
- "status": "None"
}
], - "badges": 0,
- "status": {
- "text": "string",
- "presence": "Online"
}, - "profile": {
- "content": "string",
- "background": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}, - "flags": 0,
- "privileged": true,
- "bot": {
- "owner": "string"
}, - "relationship": "None",
- "online": true
}
]
Create Group
Create a new group channel.
Authorizations:
Request Body schema: application/json
name required | string [ 1 .. 32 ] characters Group name |
description | string or null [ 0 .. 1024 ] characters Group description |
users required | Array of strings [ 0 .. 49 ] items Array of user IDs to add to the group Must be friends with these users. |
nsfw | boolean or null Whether this group is age-restricted |
Responses
Request samples
- Payload
{- "name": "string",
- "description": "string",
- "users": [
- "string"
], - "nsfw": true
}
Response samples
- 200
- default
{- "channel_type": "VoiceChannel",
- "_id": "string",
- "server": "string",
- "name": "string",
- "description": "string",
- "icon": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "default_permissions": {
- "a": 0,
- "d": 0
}, - "role_permissions": {
- "property1": {
- "a": 0,
- "d": 0
}, - "property2": {
- "a": 0,
- "d": 0
}
}, - "nsfw": true
}
Creates a webhook
Creates a webhook which 3rd party platforms can use to send messages
Authorizations:
path Parameters
target required | string (Id) |
Request Body schema: application/json
name required | string [ 1 .. 32 ] characters |
avatar | string or null [ 1 .. 128 ] characters |
Responses
Request samples
- Payload
{- "name": "string",
- "avatar": "string"
}
Response samples
- 200
- default
{- "id": "string",
- "name": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "channel_id": "string",
- "token": "string"
}
Gets all webhooks
Gets all webhooks inside the channel
Authorizations:
path Parameters
channel_id required | string (Id) |
Responses
Response samples
- 200
- default
[- {
- "id": "string",
- "name": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "channel_id": "string",
- "token": "string"
}
]
Create Server
Create a new server.
Authorizations:
Request Body schema: application/json
name required | string [ 1 .. 32 ] characters Server name |
description | string or null [ 0 .. 1024 ] characters Server description |
nsfw | boolean or null Whether this server is age-restricted |
Responses
Request samples
- Payload
{- "name": "string",
- "description": "string",
- "nsfw": true
}
Response samples
- 200
- default
{- "server": {
- "_id": "string",
- "owner": "string",
- "name": "string",
- "description": "string",
- "channels": [
- "string"
], - "categories": [
- {
- "id": "string",
- "title": "string",
- "channels": [
- "string"
]
}
], - "system_messages": {
- "user_joined": "string",
- "user_left": "string",
- "user_kicked": "string",
- "user_banned": "string"
}, - "roles": {
- "property1": {
- "name": "string",
- "permissions": {
- "a": 0,
- "d": 0
}, - "colour": "string",
- "hoist": true,
- "rank": 0
}, - "property2": {
- "name": "string",
- "permissions": {
- "a": 0,
- "d": 0
}, - "colour": "string",
- "hoist": true,
- "rank": 0
}
}, - "default_permissions": 0,
- "icon": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "banner": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "flags": 0,
- "nsfw": true,
- "analytics": true,
- "discoverable": true
}, - "channels": [
- {
- "channel_type": "SavedMessages",
- "_id": "string",
- "user": "string"
}
]
}
Fetch Server
Fetch a server by its id.
Authorizations:
path Parameters
target required | string (Id) |
query Parameters
include_channels | boolean or null Whether to include channels |
Responses
Response samples
- 200
- default
{- "_id": "string",
- "owner": "string",
- "name": "string",
- "description": "string",
- "channels": [
- "string"
], - "categories": [
- {
- "id": "string",
- "title": "string",
- "channels": [
- "string"
]
}
], - "system_messages": {
- "user_joined": "string",
- "user_left": "string",
- "user_kicked": "string",
- "user_banned": "string"
}, - "roles": {
- "property1": {
- "name": "string",
- "permissions": {
- "a": 0,
- "d": 0
}, - "colour": "string",
- "hoist": true,
- "rank": 0
}, - "property2": {
- "name": "string",
- "permissions": {
- "a": 0,
- "d": 0
}, - "colour": "string",
- "hoist": true,
- "rank": 0
}
}, - "default_permissions": 0,
- "icon": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "banner": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "flags": 0,
- "nsfw": true,
- "analytics": true,
- "discoverable": true
}
Delete / Leave Server
Deletes a server if owner otherwise leaves.
Authorizations:
path Parameters
target required | string (Id) |
query Parameters
leave_silently | boolean or null Whether to not send a leave message |
Responses
Response samples
- default
{- "type": "FailedValidation"
}
Edit Server
Edit a server by its id.
Authorizations:
path Parameters
target required | string (Id) |
Request Body schema: application/json
name | string or null [ 1 .. 32 ] characters Server name |
description | string or null [ 0 .. 1024 ] characters Server description |
icon | string or null Attachment Id for icon |
banner | string or null Attachment Id for banner |
Array of objects or null (Category) Category structure for server | |
object or null System message channel assignments | |
flags | integer or null <int32> Bitfield of server flags |
discoverable | boolean or null Whether this server is public and should show up on Revolt Discover |
analytics | boolean or null Whether analytics should be collected for this server Must be enabled in order to show up on Revolt Discover. |
remove | Array of strings or null (FieldsServer) non-empty Enum: "Description" "Categories" "SystemMessages" "Icon" "Banner" Fields to remove from server object |
Responses
Request samples
- Payload
{- "name": "string",
- "description": "string",
- "icon": "string",
- "banner": "string",
- "categories": [
- {
- "id": "string",
- "title": "string",
- "channels": [
- "string"
]
}
], - "system_messages": {
- "user_joined": "string",
- "user_left": "string",
- "user_kicked": "string",
- "user_banned": "string"
}, - "flags": 0,
- "discoverable": true,
- "analytics": true,
- "remove": [
- "Description"
]
}
Response samples
- 200
- default
{- "_id": "string",
- "owner": "string",
- "name": "string",
- "description": "string",
- "channels": [
- "string"
], - "categories": [
- {
- "id": "string",
- "title": "string",
- "channels": [
- "string"
]
}
], - "system_messages": {
- "user_joined": "string",
- "user_left": "string",
- "user_kicked": "string",
- "user_banned": "string"
}, - "roles": {
- "property1": {
- "name": "string",
- "permissions": {
- "a": 0,
- "d": 0
}, - "colour": "string",
- "hoist": true,
- "rank": 0
}, - "property2": {
- "name": "string",
- "permissions": {
- "a": 0,
- "d": 0
}, - "colour": "string",
- "hoist": true,
- "rank": 0
}
}, - "default_permissions": 0,
- "icon": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "banner": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "flags": 0,
- "nsfw": true,
- "analytics": true,
- "discoverable": true
}
Create Channel
Create a new Text or Voice channel.
Authorizations:
path Parameters
target required | string (Id) |
Request Body schema: application/json
type | string (Channel Type) Default: "Text" Enum: "Text" "Voice" Channel type |
name required | string [ 1 .. 32 ] characters Channel name |
description | string or null [ 0 .. 1024 ] characters Channel description |
nsfw | boolean or null Whether this channel is age restricted |
Responses
Request samples
- Payload
{- "type": "Text",
- "name": "string",
- "description": "string",
- "nsfw": true
}
Response samples
- 200
- default
{- "channel_type": "VoiceChannel",
- "_id": "string",
- "server": "string",
- "name": "string",
- "description": "string",
- "icon": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "default_permissions": {
- "a": 0,
- "d": 0
}, - "role_permissions": {
- "property1": {
- "a": 0,
- "d": 0
}, - "property2": {
- "a": 0,
- "d": 0
}
}, - "nsfw": true
}
Fetch Members
Fetch all server members.
Authorizations:
path Parameters
target required | string (Id) |
query Parameters
exclude_offline | boolean or null Whether to exclude offline users |
Responses
Response samples
- 200
- default
{- "members": [
- {
- "_id": {
- "server": "string",
- "user": "string"
}, - "joined_at": "1970-01-01T00:00:00Z",
- "nickname": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "roles": [
- "string"
], - "timeout": "1970-01-01T00:00:00Z"
}
], - "users": [
- {
- "_id": "string",
- "username": "string",
- "discriminator": "string",
- "display_name": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "relations": [
- {
- "_id": "string",
- "status": "None"
}
], - "badges": 0,
- "status": {
- "text": "string",
- "presence": "Online"
}, - "profile": {
- "content": "string",
- "background": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}, - "flags": 0,
- "privileged": true,
- "bot": {
- "owner": "string"
}, - "relationship": "None",
- "online": true
}
]
}
Fetch Member
Retrieve a member.
Authorizations:
path Parameters
target required | string (Id) |
member required | string (Id) |
Responses
Response samples
- 200
- default
{- "_id": {
- "server": "string",
- "user": "string"
}, - "joined_at": "1970-01-01T00:00:00Z",
- "nickname": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "roles": [
- "string"
], - "timeout": "1970-01-01T00:00:00Z"
}
Edit Member
Edit a member by their id.
Authorizations:
path Parameters
server required | string (Id) |
target required | string (Id) |
Request Body schema: application/json
nickname | string or null [ 1 .. 32 ] characters Member nickname |
avatar | string or null Attachment Id to set for avatar |
roles | Array of strings or null Array of role ids |
timeout | string or null <date-time> ISO8601 formatted timestamp |
remove | Array of strings or null (FieldsMember) non-empty Enum: "Nickname" "Avatar" "Roles" "Timeout" Fields to remove from channel object |
Responses
Request samples
- Payload
{- "nickname": "string",
- "avatar": "string",
- "roles": [
- "string"
], - "timeout": "1970-01-01T00:00:00Z",
- "remove": [
- "Nickname"
]
}
Response samples
- 200
- default
{- "_id": {
- "server": "string",
- "user": "string"
}, - "joined_at": "1970-01-01T00:00:00Z",
- "nickname": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "roles": [
- "string"
], - "timeout": "1970-01-01T00:00:00Z"
}
Query members by name
Query members by a given name, this API is not stable and will be removed in the future.
Authorizations:
path Parameters
target required | string (Id) |
query Parameters
query required | string String to search for |
experimental_api required | boolean Discourage use of this API |
Responses
Response samples
- 200
- default
{- "members": [
- {
- "_id": {
- "server": "string",
- "user": "string"
}, - "joined_at": "1970-01-01T00:00:00Z",
- "nickname": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "roles": [
- "string"
], - "timeout": "1970-01-01T00:00:00Z"
}
], - "users": [
- {
- "_id": "string",
- "username": "string",
- "discriminator": "string",
- "display_name": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "relations": [
- {
- "_id": "string",
- "status": "None"
}
], - "badges": 0,
- "status": {
- "text": "string",
- "presence": "Online"
}, - "profile": {
- "content": "string",
- "background": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}, - "flags": 0,
- "privileged": true,
- "bot": {
- "owner": "string"
}, - "relationship": "None",
- "online": true
}
]
}
Ban User
Ban a user by their id.
Authorizations:
path Parameters
server required | string (Id) |
target required | string (Id) |
Request Body schema: application/json
reason | string or null [ 1 .. 1024 ] characters Ban reason |
Responses
Request samples
- Payload
{- "reason": "string"
}
Response samples
- 200
- default
{- "_id": {
- "server": "string",
- "user": "string"
}, - "reason": "string"
}
Fetch Bans
Fetch all bans on a server.
Authorizations:
path Parameters
target required | string (Id) |
Responses
Response samples
- 200
- default
{- "users": [
- {
- "_id": "string",
- "username": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}
], - "bans": [
- {
- "_id": {
- "server": "string",
- "user": "string"
}, - "reason": "string"
}
]
}
Create Role
Creates a new server role.
Authorizations:
path Parameters
target required | string (Id) |
Request Body schema: application/json
name required | string [ 1 .. 32 ] characters Role name |
rank | integer or null <int64> Ranking position Smaller values take priority. |
Responses
Request samples
- Payload
{- "name": "string",
- "rank": 0
}
Response samples
- 200
- default
{- "id": "string",
- "role": {
- "name": "string",
- "permissions": {
- "a": 0,
- "d": 0
}, - "colour": "string",
- "hoist": true,
- "rank": 0
}
}
Edit Role
Edit a role by its id.
Authorizations:
path Parameters
target required | string (Id) |
role_id required | string |
Request Body schema: application/json
name | string or null [ 1 .. 32 ] characters Role name |
colour | string or null [ 1 .. 128 ] characters (?i)^(?:[a-z ]+|var\(--[a-z\d-]+\)|rgba?\([\d... Role colour |
hoist | boolean or null Whether this role should be displayed separately |
rank | integer or null <int64> Ranking position Smaller values take priority. |
remove | Array of strings or null (FieldsRole) non-empty Value: "Colour" Fields to remove from role object |
Responses
Request samples
- Payload
{- "name": "string",
- "colour": "string",
- "hoist": true,
- "rank": 0,
- "remove": [
- "Colour"
]
}
Response samples
- 200
- default
{- "name": "string",
- "permissions": {
- "a": 0,
- "d": 0
}, - "colour": "string",
- "hoist": true,
- "rank": 0
}
Set Role Permission
Sets permissions for the specified role in the server.
Authorizations:
path Parameters
target required | string (Id) |
role_id required | string |
Request Body schema: application/json
required | object Representation of a single permission override | ||||
|
Responses
Request samples
- Payload
{- "permissions": {
- "allow": 0,
- "deny": 0
}
}
Response samples
- 200
- default
{- "_id": "string",
- "owner": "string",
- "name": "string",
- "description": "string",
- "channels": [
- "string"
], - "categories": [
- {
- "id": "string",
- "title": "string",
- "channels": [
- "string"
]
}
], - "system_messages": {
- "user_joined": "string",
- "user_left": "string",
- "user_kicked": "string",
- "user_banned": "string"
}, - "roles": {
- "property1": {
- "name": "string",
- "permissions": {
- "a": 0,
- "d": 0
}, - "colour": "string",
- "hoist": true,
- "rank": 0
}, - "property2": {
- "name": "string",
- "permissions": {
- "a": 0,
- "d": 0
}, - "colour": "string",
- "hoist": true,
- "rank": 0
}
}, - "default_permissions": 0,
- "icon": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "banner": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "flags": 0,
- "nsfw": true,
- "analytics": true,
- "discoverable": true
}
Set Default Permission
Sets permissions for the default role in this server.
Authorizations:
path Parameters
target required | string (Id) |
Request Body schema: application/json
permissions required | integer <uint64> >= 0 |
Responses
Request samples
- Payload
{- "permissions": 0
}
Response samples
- 200
- default
{- "_id": "string",
- "owner": "string",
- "name": "string",
- "description": "string",
- "channels": [
- "string"
], - "categories": [
- {
- "id": "string",
- "title": "string",
- "channels": [
- "string"
]
}
], - "system_messages": {
- "user_joined": "string",
- "user_left": "string",
- "user_kicked": "string",
- "user_banned": "string"
}, - "roles": {
- "property1": {
- "name": "string",
- "permissions": {
- "a": 0,
- "d": 0
}, - "colour": "string",
- "hoist": true,
- "rank": 0
}, - "property2": {
- "name": "string",
- "permissions": {
- "a": 0,
- "d": 0
}, - "colour": "string",
- "hoist": true,
- "rank": 0
}
}, - "default_permissions": 0,
- "icon": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "banner": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "flags": 0,
- "nsfw": true,
- "analytics": true,
- "discoverable": true
}
Response samples
- 200
- default
{- "type": "Group",
- "code": "string",
- "channel_id": "string",
- "channel_name": "string",
- "channel_description": "string",
- "user_name": "string",
- "user_avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}
Join Invite
Join an invite by its ID.
Authorizations:
path Parameters
target required | string (Id) |
Responses
Response samples
- 200
- default
{- "type": "Server",
- "channels": [
- {
- "channel_type": "SavedMessages",
- "_id": "string",
- "user": "string"
}
], - "server": {
- "_id": "string",
- "owner": "string",
- "name": "string",
- "description": "string",
- "channels": [
- "string"
], - "categories": [
- {
- "id": "string",
- "title": "string",
- "channels": [
- "string"
]
}
], - "system_messages": {
- "user_joined": "string",
- "user_left": "string",
- "user_kicked": "string",
- "user_banned": "string"
}, - "roles": {
- "property1": {
- "name": "string",
- "permissions": {
- "a": 0,
- "d": 0
}, - "colour": "string",
- "hoist": true,
- "rank": 0
}, - "property2": {
- "name": "string",
- "permissions": {
- "a": 0,
- "d": 0
}, - "colour": "string",
- "hoist": true,
- "rank": 0
}
}, - "default_permissions": 0,
- "icon": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "banner": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "flags": 0,
- "nsfw": true,
- "analytics": true,
- "discoverable": true
}
}
Create New Emoji
Create an emoji by its Autumn upload id.
Authorizations:
path Parameters
id required | string |
Request Body schema: application/json
name required | string [ 1 .. 32 ] characters ^[a-z0-9_]+$ Server name |
required | object or object Information about what owns this emoji |
nsfw | boolean Default: false Whether the emoji is mature |
Responses
Request samples
- Payload
{- "name": "string",
- "parent": {
- "type": "Server",
- "id": "string"
}, - "nsfw": false
}
Response samples
- 200
- default
{- "_id": "string",
- "parent": {
- "type": "Server",
- "id": "string"
}, - "creator_id": "string",
- "name": "string",
- "animated": true,
- "nsfw": true
}
Response samples
- 200
- default
{- "indices": {
- "property1": [
- {
- "name": "string",
- "accesses": {
- "ops": 0,
- "since": "1970-01-01T00:00:00Z"
}
}
], - "property2": [
- {
- "name": "string",
- "accesses": {
- "ops": 0,
- "since": "1970-01-01T00:00:00Z"
}
}
]
}, - "coll_stats": {
- "property1": {
- "ns": "string",
- "localTime": "1970-01-01T00:00:00Z",
- "latencyStats": {
- "property1": {
- "ops": 0,
- "latency": 0,
- "histogram": [
- {
- "micros": 0,
- "count": 0
}
]
}, - "property2": {
- "ops": 0,
- "latency": 0,
- "histogram": [
- {
- "micros": 0,
- "count": 0
}
]
}
}, - "queryExecStats": {
- "collectionScans": {
- "total": 0,
- "nonTailable": 0
}
}, - "count": 0
}, - "property2": {
- "ns": "string",
- "localTime": "1970-01-01T00:00:00Z",
- "latencyStats": {
- "property1": {
- "ops": 0,
- "latency": 0,
- "histogram": [
- {
- "micros": 0,
- "count": 0
}
]
}, - "property2": {
- "ops": 0,
- "latency": 0,
- "histogram": [
- {
- "micros": 0,
- "count": 0
}
]
}
}, - "queryExecStats": {
- "collectionScans": {
- "total": 0,
- "nonTailable": 0
}
}, - "count": 0
}
}
}
Globally Fetch Messages
This is a privileged route to globally fetch messages.
Authorizations:
Request Body schema: application/json
nearby required | string Message id to search around Specifying 'nearby' ignores 'before', 'after' and 'sort'. It will also take half of limit rounded as the limits to each side. It also fetches the message ID specified. |
limit | integer or null <int64> Maximum number of messages to fetch For fetching nearby messages, this is `(limit + 1)`. |
channel | string or null Parent channel ID |
author | string or null Message author ID |
query | string or null Search query |
Responses
Request samples
- Payload
{- "before": "string",
- "after": "string",
- "sort": "Relevance",
- "limit": 0,
- "channel": "string",
- "author": "string",
- "query": "string"
}
Response samples
- 200
- default
{- "messages": [
- {
- "_id": "string",
- "nonce": "string",
- "channel": "string",
- "author": "string",
- "webhook": {
- "name": "string",
- "avatar": "string"
}, - "content": "string",
- "system": {
- "type": "text",
- "content": "string"
}, - "attachments": [
- {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
], - "edited": "1970-01-01T00:00:00Z",
- "embeds": [
- {
- "type": "Website",
- "url": "string",
- "original_url": "string",
- "special": {
- "type": "None"
}, - "title": "string",
- "description": "string",
- "image": {
- "url": "string",
- "width": 0,
- "height": 0,
- "size": "Large"
}, - "video": {
- "url": "string",
- "width": 0,
- "height": 0
}, - "site_name": "string",
- "icon_url": "string",
- "colour": "string"
}
], - "mentions": [
- "string"
], - "replies": [
- "string"
], - "reactions": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "interactions": {
- "reactions": [
- "string"
], - "restrict_reactions": true
}, - "masquerade": {
- "name": "string",
- "avatar": "string",
- "colour": "string"
}
}
], - "users": [
- {
- "_id": "string",
- "username": "string",
- "discriminator": "string",
- "display_name": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "relations": [
- {
- "_id": "string",
- "status": "None"
}
], - "badges": 0,
- "status": {
- "text": "string",
- "presence": "Online"
}, - "profile": {
- "content": "string",
- "background": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}, - "flags": 0,
- "privileged": true,
- "bot": {
- "owner": "string"
}, - "relationship": "None",
- "online": true
}
], - "members": [
- {
- "_id": {
- "server": "string",
- "user": "string"
}, - "joined_at": "1970-01-01T00:00:00Z",
- "nickname": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "roles": [
- "string"
], - "timeout": "1970-01-01T00:00:00Z"
}
]
}
Edit Report
Edit a report.
Authorizations:
path Parameters
report required | string (Id) |
Request Body schema: application/json
(object or null) or (object or null) or (object or null) Status of the report | |
notes | string or null Report notes |
Responses
Request samples
- Payload
{- "status": {
- "status": "Created"
}, - "notes": "string"
}
Response samples
- 200
- default
{- "status": "Resolved",
- "closed_at": "1970-01-01T00:00:00Z",
- "_id": "string",
- "author_id": "string",
- "content": {
- "type": "Message",
- "id": "string",
- "report_reason": "NoneSpecified"
}, - "additional_context": "string",
- "notes": ""
}
Fetch Report
Fetch a report by its ID
Authorizations:
path Parameters
id required | string |
Responses
Response samples
- 200
- default
{- "status": "Resolved",
- "closed_at": "1970-01-01T00:00:00Z",
- "_id": "string",
- "author_id": "string",
- "content": {
- "type": "Message",
- "id": "string",
- "report_reason": "NoneSpecified"
}, - "additional_context": "string",
- "notes": ""
}
Fetch Reports
Fetch all available reports
Authorizations:
query Parameters
content_id | string or null Find reports against messages, servers, or users |
author_id | string or null Find reports created by user |
status | string (ReportStatusString) Enum: "Created" "Rejected" "Resolved" Report status to include in search |
Responses
Response samples
- 200
- default
[- {
- "_id": "string",
- "author_id": "string",
- "content": {
- "type": "Message",
- "id": "string",
- "report_reason": "NoneSpecified"
}, - "additional_context": "string",
- "notes": "",
- "status": "Created"
}
]
Report Content
Report a piece of content to the moderation team.
Authorizations:
Request Body schema: application/json
required | object or object or object The content being reported |
additional_context | string [ 0 .. 1000 ] characters Default: "" Additional report description |
Responses
Request samples
- Payload
{- "content": {
- "type": "Message",
- "id": "string",
- "report_reason": "NoneSpecified"
}, - "additional_context": ""
}
Response samples
- default
{- "type": "FailedValidation"
}
Fetch Snapshots
Fetch a snapshots for a given report
Authorizations:
path Parameters
report_id required | string |
Responses
Response samples
- 200
- default
[- {
- "_users": [
- {
- "_id": "string",
- "username": "string",
- "discriminator": "string",
- "display_name": "string",
- "avatar": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "relations": [
- {
- "_id": "string",
- "status": "None"
}
], - "badges": 0,
- "status": {
- "text": "string",
- "presence": "Online"
}, - "profile": {
- "content": "string",
- "background": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
}, - "flags": 0,
- "privileged": true,
- "bot": {
- "owner": "string"
}, - "relationship": "None",
- "online": true
}
], - "_channels": [
- {
- "channel_type": "SavedMessages",
- "_id": "string",
- "user": "string"
}
], - "_server": {
- "_id": "string",
- "owner": "string",
- "name": "string",
- "description": "string",
- "channels": [
- "string"
], - "categories": [
- {
- "id": "string",
- "title": "string",
- "channels": [
- "string"
]
}
], - "system_messages": {
- "user_joined": "string",
- "user_left": "string",
- "user_kicked": "string",
- "user_banned": "string"
}, - "roles": {
- "property1": {
- "name": "string",
- "permissions": {
- "a": 0,
- "d": 0
}, - "colour": "string",
- "hoist": true,
- "rank": 0
}, - "property2": {
- "name": "string",
- "permissions": {
- "a": 0,
- "d": 0
}, - "colour": "string",
- "hoist": true,
- "rank": 0
}
}, - "default_permissions": 0,
- "icon": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "banner": {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}, - "flags": 0,
- "nsfw": true,
- "analytics": true,
- "discoverable": true
}, - "_id": "string",
- "report_id": "string",
- "content": {
- "_type": "Message",
- "_prior_context": [ ],
- "_leading_context": [ ],
- "_id": "string",
- "nonce": "string",
- "channel": "string",
- "author": "string",
- "webhook": {
- "name": "string",
- "avatar": "string"
}, - "content": "string",
- "system": {
- "type": "text",
- "content": "string"
}, - "attachments": [
- {
- "_id": "string",
- "tag": "string",
- "filename": "string",
- "metadata": {
- "type": "File"
}, - "content_type": "string",
- "size": 0,
- "deleted": true,
- "reported": true,
- "message_id": "string",
- "user_id": "string",
- "server_id": "string",
- "object_id": "string"
}
], - "edited": "1970-01-01T00:00:00Z",
- "embeds": [
- {
- "type": "Website",
- "url": "string",
- "original_url": "string",
- "special": {
- "type": "None"
}, - "title": "string",
- "description": "string",
- "image": {
- "url": "string",
- "width": 0,
- "height": 0,
- "size": "Large"
}, - "video": {
- "url": "string",
- "width": 0,
- "height": 0
}, - "site_name": "string",
- "icon_url": "string",
- "colour": "string"
}
], - "mentions": [
- "string"
], - "replies": [
- "string"
], - "reactions": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "interactions": {
- "reactions": [
- "string"
], - "restrict_reactions": true
}, - "masquerade": {
- "name": "string",
- "avatar": "string",
- "colour": "string"
}
}
}
]
Create Strike
Create a new account strike
Authorizations:
Request Body schema: application/json
user_id required | string Id of reported user |
reason required | string Attached reason |
Responses
Request samples
- Payload
{- "user_id": "string",
- "reason": "string"
}
Response samples
- 200
- default
{- "_id": "string",
- "user_id": "string",
- "reason": "string"
}
Edit Strike
Edit a strike by its ID
Authorizations:
path Parameters
strike_id required | string |
Request Body schema: application/json
reason required | string New attached reason |
Responses
Request samples
- Payload
{- "reason": "string"
}
Response samples
- default
{- "type": "FailedValidation"
}
Create Account
Create a new account.
Request Body schema: application/json
email required | string Valid email address |
password required | string Password |
invite | string or null Invite code |
captcha | string or null Captcha verification code |
Responses
Request samples
- Payload
{- "email": "string",
- "password": "string",
- "invite": "string",
- "captcha": "string"
}
Response samples
- default
{- "type": "FailedValidation"
}
Resend Verification
Resend account creation verification email.
Request Body schema: application/json
email required | string Email associated with the account |
captcha | string or null Captcha verification code |
Responses
Request samples
- Payload
{- "email": "string",
- "captcha": "string"
}
Response samples
- default
{- "type": "FailedValidation"
}
Confirm Account Deletion
Schedule an account for deletion by confirming the received token.
Request Body schema: application/json
token required | string Deletion token |
Responses
Request samples
- Payload
{- "token": "string"
}
Response samples
- default
{- "type": "FailedValidation"
}
Change Password
Change the current account password.
Authorizations:
Request Body schema: application/json
password required | string New password |
current_password required | string Current password |
Responses
Request samples
- Payload
{- "password": "string",
- "current_password": "string"
}
Response samples
- default
{- "type": "FailedValidation"
}
Change Email
Change the associated account email.
Authorizations:
Request Body schema: application/json
email required | string Valid email address |
current_password required | string Current password |
Responses
Request samples
- Payload
{- "email": "string",
- "current_password": "string"
}
Response samples
- default
{- "type": "FailedValidation"
}
Send Password Reset
Send an email to reset account password.
Request Body schema: application/json
email required | string Email associated with the account |
captcha | string or null Captcha verification code |
Responses
Request samples
- Payload
{- "email": "string",
- "captcha": "string"
}
Response samples
- default
{- "type": "FailedValidation"
}
Password Reset
Confirm password reset and change the password.
Request Body schema: application/json
token required | string Reset token |
password required | string New password |
remove_sessions | boolean Default: false Whether to logout all sessions |
Responses
Request samples
- Payload
{- "token": "string",
- "password": "string",
- "remove_sessions": false
}
Response samples
- default
{- "type": "FailedValidation"
}
Login
Login to an account.
Request Body schema: application/json
email required | string |
password required | string Password |
friendly_name | string or null Friendly name used for the session |
Responses
Request samples
- Payload
{- "mfa_ticket": "string",
- "mfa_response": {
- "password": "string"
}, - "friendly_name": "string"
}
Response samples
- 200
- default
{- "result": "Disabled",
- "user_id": "string"
}
Edit Session
Edit current session information.
Authorizations:
path Parameters
id required | string |
Request Body schema: application/json
friendly_name required | string Session friendly name |
Responses
Request samples
- Payload
{- "friendly_name": "string"
}
Response samples
- 200
- default
{- "_id": "string",
- "name": "string"
}
Check Onboarding Status
This will tell you whether the current account requires onboarding or whether you can continue to send requests as usual. You may skip calling this if you're restoring an existing session.
Authorizations:
Responses
Response samples
- 200
{- "onboarding": true
}
Complete Onboarding
This sets a new username, completes onboarding and allows a user to start using Revolt.
Authorizations:
Request Body schema: application/json
username required | string [ 2 .. 32 ] characters ^(\p{L}|[\d_.-])+$ New username which will be used to identify the user on the platform |
Responses
Request samples
- Payload
{- "username": "string"
}
Response samples
- default
{- "type": "FailedValidation"
}
Create MFA ticket
Create a new MFA ticket or validate an existing one.
Authorizations:
Request Body schema: application/json
password required | string |
Responses
Request samples
- Payload
{- "totp_code": "string"
}
Response samples
- 200
- default
{- "_id": "string",
- "account_id": "string",
- "token": "string",
- "validated": true,
- "authorised": true,
- "last_totp_code": "string"
}
Enable TOTP 2FA
Generate a new secret for TOTP.
Authorizations:
Request Body schema: application/json
password required | string |
Responses
Request samples
- Payload
{- "totp_code": "string"
}
Response samples
- default
{- "type": "FailedValidation"
}
Fetch Settings
Fetch settings from server filtered by keys.
This will return an object with the requested keys, each value is a tuple of (timestamp, value)
, the value is the previously uploaded data.
Authorizations:
Request Body schema: application/json
keys required | Array of strings Keys to fetch |
Responses
Request samples
- Payload
{- "keys": [
- "string"
]
}
Response samples
- 200
- default
{- "property1": [
- 0,
- "string"
], - "property2": [
- 0,
- "string"
]
}
Set Settings
Upload data to save to settings.
Authorizations:
query Parameters
timestamp | integer or null <int64> Timestamp of settings change. Used to avoid feedback loops. |
Request Body schema: application/json
property name* additional property | string |
Responses
Request samples
- Payload
{- "property1": "string",
- "property2": "string"
}
Response samples
- default
{- "type": "FailedValidation"
}
Push Subscribe
Create a new Web Push subscription.
If an existing subscription exists on this session, it will be removed.
Authorizations:
Request Body schema: application/json
endpoint required | string |
p256dh required | string |
auth required | string |
Responses
Request samples
- Payload
{- "endpoint": "string",
- "p256dh": "string",
- "auth": "string"
}
Response samples
- default
{- "type": "FailedValidation"
}