/bots/@meFetch Owned Bots
Fetch all of the bots that you have control over.
🔑 Requer autenticação
200
Tudo o que você precisa para criar bots que conversam, moderam e automatizam dentro das comunidades do Dois Papo.
No cliente web, abra Configurações → Bots → Criar bot.
Você recebe um bot_id e um token.
O token é a credencial do bot. Trate como senha: nunca comite em repositório e nunca exponha no navegador.
A base da API é https://chat.doispapo.com/api.
Autentique com o cabeçalho X-Bot-Token.
curl https://chat.doispapo.com/api/users/@me \
-H "X-Bot-Token: SEU_TOKEN"
Bots entram por convite, como pessoas. Use
POST /bots/{target}/invite informando o servidor, ou
compartilhe o link de convite do bot.
curl -X POST \
https://chat.doispapo.com/api/channels/ID_DO_CANAL/messages \
-H "X-Bot-Token: SEU_TOKEN" \
-H "Content-Type: application/json" \
-d '{"content":"Olá! Sou um bot do Dois Papo."}'
Há dois tipos de credencial. Bots usam o primeiro; o segundo existe para ferramentas que agem em nome de uma pessoa.
| Cabeçalho | Quem usa | Obtido em |
|---|---|---|
X-Bot-Token | Bots | Configurações → Bots |
X-Session-Token | Sessão de usuário | POST /auth/session/login |
Requisições sem credencial válida recebem 401. Rotas de
/auth são para contas de pessoas — um bot não precisa
delas.
Além do REST, a plataforma emite eventos por WebSocket. É assim que o bot reage a mensagens sem ficar consultando a API repetidamente.
wss://chat.doispapo.com/ws
Após conectar, autentique enviando:
{"type":"Authenticate","token":"SEU_TOKEN"}
O servidor responde com Authenticated e, em seguida,
Ready com o estado inicial. A partir daí chegam eventos
como Message, MessageUpdate,
ChannelCreate e ServerMemberJoin.
// mantenha a conexão viva
setInterval(() => ws.send(JSON.stringify({type:"Ping",data:Date.now()})), 30000);
429. Ao recebê-lo, aguarde antes de repetir
— não tente de novo em laço.attachments da mensagem.Gerada a partir da especificação da própria instância, então descreve exatamente a versão que está no ar.
Criar, configurar e convidar bots.
/bots/@meFetch all of the bots that you have control over.
🔑 Requer autenticação
200
/bots/createCreate a new Revolt bot.
🔑 Requer autenticação
| Campo | Tipo | Obrigatório |
|---|---|---|
name | string | sim |
{
"name": "texto"
}
200
/bots/{bot_id}Delete a bot by its id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
bot_id | path | Id | sim |
204
/bots/{bot_id}Fetch details of a bot you own by its id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
bot_id | path | Id | sim |
200
/bots/{bot_id}Edit bot details by its id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
bot_id | path | Id | sim |
| Campo | Tipo | Obrigatório |
|---|---|---|
name | string | não |
public | boolean | não |
analytics | boolean | não |
interactions_url | string | não |
remove | FieldsBot[] | não |
{
"name": "texto",
"public": true,
"analytics": true,
"interactions_url": "texto",
"remove": []
}
200
/bots/{target}/inviteFetch details of a public (or owned) bot by its id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
200
/bots/{target}/inviteInvite a bot to a server or group by its id.`
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
204
Mensagens, permissões e convites de canal.
/channels/createCreate a new group channel.
🔑 Requer autenticação
| Campo | Tipo | Obrigatório |
|---|---|---|
name | string | sim |
description | string | não |
icon | string | não |
users | string[] | não |
nsfw | boolean | não |
{
"name": "texto",
"description": "texto",
"icon": "texto",
"users": [],
"nsfw": true
}
200
/channels/{channel_id}/webhooksGets all webhooks inside the channel
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
channel_id | path | Id | sim |
200
/channels/{channel_id}/webhooksCreates a webhook which 3rd party platforms can use to send messages
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
channel_id | path | Id | sim |
X-Audit-Log-Reason | header | string | não |
| Campo | Tipo | Obrigatório |
|---|---|---|
name | string | sim |
avatar | string | não |
{
"name": "texto",
"avatar": "texto"
}
200
/channels/{group_id}/recipients/{member_id}Removes a user from the group.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
group_id | path | Id | sim |
member_id | path | Id | sim |
204
/channels/{group_id}/recipients/{member_id}Adds another user to the group.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
group_id | path | Id | sim |
member_id | path | Id | sim |
204
/channels/{target}Deletes a server channel, leaves a group or closes a group.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
leave_silently | query | boolean | não |
X-Audit-Log-Reason | header | string | não |
204
/channels/{target}Fetch channel by its id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
200
/channels/{target}Edit a channel object by its id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
X-Audit-Log-Reason | header | string | não |
| Campo | Tipo | Obrigatório |
|---|---|---|
name | string | não |
description | string | não |
owner | string | não |
icon | string | não |
nsfw | boolean | não |
archived | boolean | não |
voice | any | não |
slowmode | integer | não |
remove | FieldsChannel[] | não |
{
"name": "texto",
"description": "texto",
"owner": "texto",
"icon": "texto",
"nsfw": true,
"archived": true,
"voice": "…",
"slowmode": 0
}
200
/channels/{target}/ack/{message}Lets the server and all other clients know that we've seen this message id in this channel.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
message | path | Id | sim |
204
/channels/{target}/end_ring/{target_user}Stops ringing a specific user in a dm call. You must be in the call to use this endpoint, returns NotConnected otherwise. Only valid in DM/Group channels, will return NoEffect in servers. Returns NotFound if the user is not in the dm/group channel
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
target_user | path | Id | sim |
204
/channels/{target}/invitesCreates an invite to this channel. Channel must be a `TextChannel`.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
X-Audit-Log-Reason | header | string | não |
200
/channels/{target}/join_callAsks the voice server for a token to join the call.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
| Campo | Tipo | Obrigatório |
|---|---|---|
node | string | não |
force_disconnect | boolean | não |
recipients | string[] | não |
{
"node": "texto",
"force_disconnect": true,
"recipients": []
}
200
/channels/{target}/membersRetrieves all users who are part of this group. This may not return full user information if users are not friends but have mutual connections.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
200
/channels/{target}/messagesFetch multiple messages.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
limit | query | integer | não |
before | query | string | não |
after | query | string | não |
sort | query | MessageSort | não |
nearby | query | string | não |
include_users | query | boolean | não |
200
/channels/{target}/messagesSends a message to the given channel.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
Idempotency-Key | header | string | não |
| Campo | Tipo | Obrigatório |
|---|---|---|
nonce | string | não |
content | string | não |
attachments | string[] | não |
replies | ReplyIntent[] | não |
embeds | SendableEmbed[] | não |
masquerade | any | não |
interactions | any | não |
flags | integer | não |
{
"nonce": "texto",
"content": "texto",
"attachments": [],
"replies": [],
"embeds": [],
"masquerade": "…",
"interactions": "…",
"flags": 0
}
200
/channels/{target}/messages/bulkDelete 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.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
X-Audit-Log-Reason | header | string | não |
| Campo | Tipo | Obrigatório |
|---|---|---|
ids | string[] | sim |
{
"ids": []
}
204
/channels/{target}/messages/{msg}Delete a message you've sent or one you have permission to delete.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
msg | path | Id | sim |
X-Audit-Log-Reason | header | string | não |
204
/channels/{target}/messages/{msg}Retrieves a message by its id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
msg | path | Id | sim |
200
/channels/{target}/messages/{msg}Edits a message that you've previously sent.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
msg | path | Id | sim |
| Campo | Tipo | Obrigatório |
|---|---|---|
content | string | não |
embeds | SendableEmbed[] | não |
{
"content": "texto",
"embeds": []
}
200
/channels/{target}/messages/{msg}/pinUnpins a message by its id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
msg | path | Id | sim |
X-Audit-Log-Reason | header | string | não |
204
/channels/{target}/messages/{msg}/pinPins a message by its id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
msg | path | Id | sim |
X-Audit-Log-Reason | header | string | não |
204
/channels/{target}/messages/{msg}/reactionsRemove your own, someone else's or all of a given reaction. Requires `ManageMessages` permission.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
msg | path | Id | sim |
204
/channels/{target}/messages/{msg}/reactions/{emoji}Remove your own, someone else's or all of a given reaction. Requires `ManageMessages` if changing others' reactions.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
msg | path | Id | sim |
emoji | path | Id | sim |
user_id | query | string | não |
remove_all | query | boolean | não |
204
/channels/{target}/messages/{msg}/reactions/{emoji}React to a given message.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
msg | path | Id | sim |
emoji | path | Id | sim |
204
/channels/{target}/permissions/defaultSets permissions for the default role in this channel. Channel must be a `Group` or `TextChannel`.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
X-Audit-Log-Reason | header | string | não |
200
/channels/{target}/permissions/{role_id}Sets permissions for the specified role in this channel. Channel must be a `TextChannel`.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
role_id | path | string | sim |
X-Audit-Log-Reason | header | string | não |
| Campo | Tipo | Obrigatório |
|---|---|---|
permissions | any | sim |
{
"permissions": "…"
}
200
/channels/{target}/searchThis route searches for messages within the given parameters.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
| Campo | Tipo | Obrigatório |
|---|---|---|
query | string | não |
pinned | boolean | não |
limit | integer | não |
before | string | não |
after | string | não |
sort | any | não |
include_users | boolean | não |
{
"query": "texto",
"pinned": true,
"limit": 0,
"before": "texto",
"after": "texto",
"sort": "…",
"include_users": true
}
200
Comunidades, membros, cargos e emojis.
/servers/createCreate a new server.
🔑 Requer autenticação
| Campo | Tipo | Obrigatório |
|---|---|---|
name | string | sim |
description | string | não |
nsfw | boolean | não |
{
"name": "texto",
"description": "texto",
"nsfw": true
}
200
/servers/{server_id}/members/{member_id}Removes a member from the server.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
server_id | path | Id | sim |
member_id | path | Id | sim |
X-Audit-Log-Reason | header | string | não |
204
/servers/{server_id}/members/{member_id}Retrieve a member.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
server_id | path | Id | sim |
member_id | path | Id | sim |
roles | query | boolean | não |
200
/servers/{server_id}/members/{member_id}Edit a member by their id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
server_id | path | Id | sim |
member_id | path | Id | sim |
X-Audit-Log-Reason | header | string | não |
| Campo | Tipo | Obrigatório |
|---|---|---|
nickname | string | não |
pronouns | string | não |
avatar | string | não |
roles | string[] | não |
timeout | any | não |
can_publish | boolean | não |
can_receive | boolean | não |
voice_channel | string | não |
remove | FieldsMember[] | não |
{
"nickname": "texto",
"pronouns": "texto",
"avatar": "texto",
"roles": [],
"timeout": "…",
"can_publish": true,
"can_receive": true,
"voice_channel": "texto"
}
200
/servers/{server}/bans/{target}Remove a user's ban.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
server | path | Id | sim |
target | path | Id | sim |
X-Audit-Log-Reason | header | string | não |
204
/servers/{server}/bans/{target}Ban a user by their id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
server | path | Id | sim |
target | path | Id | sim |
X-Audit-Log-Reason | header | string | não |
| Campo | Tipo | Obrigatório |
|---|---|---|
reason | string | não |
delete_message_seconds | integer | não |
{
"reason": "texto",
"delete_message_seconds": 0
}
200
/servers/{server}/channelsCreate a new Text or Voice channel.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
server | path | Id | sim |
X-Audit-Log-Reason | header | string | não |
| Campo | Tipo | Obrigatório |
|---|---|---|
type | any | não |
name | string | sim |
description | string | não |
nsfw | boolean | não |
voice | any | não |
{
"type": "…",
"name": "texto",
"description": "texto",
"nsfw": true,
"voice": "…"
}
200
/servers/{target}Deletes a server if owner otherwise leaves.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
leave_silently | query | boolean | não |
204
/servers/{target}Fetch a server by its id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
include_channels | query | boolean | não |
200
/servers/{target}Edit a server by its id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
X-Audit-Log-Reason | header | string | não |
| Campo | Tipo | Obrigatório |
|---|---|---|
name | string | não |
description | string | não |
icon | string | não |
banner | string | não |
categories | Category[] | não |
system_messages | any | não |
flags | integer | não |
discoverable | boolean | não |
analytics | boolean | não |
owner | string | não |
remove | FieldsServer[] | não |
{
"name": "texto",
"description": "texto",
"icon": "texto",
"banner": "texto",
"categories": [],
"system_messages": "…",
"flags": 0,
"discoverable": true
}
200
/servers/{target}/ackMark all channels in a server as read.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
204
/servers/{target}/audit_logsQueries a server's audit logs.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
user | query | string | não |
target | query | string | não |
type | query | string[] | não |
before | query | string | não |
after | query | string | não |
limit | query | integer | não |
200
/servers/{target}/bansFetch all bans on a server.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
200
/servers/{target}/emojisFetch all emoji on a server.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
200
/servers/{target}/invitesFetch all server invites.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
200
/servers/{target}/membersFetch all server members.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
exclude_offline | query | boolean | não |
200
/servers/{target}/members_experimental_queryQuery members by a given name, this API is not stable and will be removed in the future.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
query | query | string | sim |
experimental_api | query | boolean | sim |
200
/servers/{target}/permissions/defaultSets permissions for the default role in this server.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
X-Audit-Log-Reason | header | string | não |
| Campo | Tipo | Obrigatório |
|---|---|---|
permissions | integer | sim |
{
"permissions": 0
}
200
/servers/{target}/permissions/{role_id}Sets permissions for the specified role in the server.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
role_id | path | string | sim |
X-Audit-Log-Reason | header | string | não |
| Campo | Tipo | Obrigatório |
|---|---|---|
permissions | any | sim |
{
"permissions": "…"
}
200
/servers/{target}/rolesCreates a new server role.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
X-Audit-Log-Reason | header | string | não |
| Campo | Tipo | Obrigatório |
|---|---|---|
name | string | sim |
rank | integer | não |
{
"name": "texto",
"rank": 0
}
200
/servers/{target}/roles/ranksEdit's server role's ranks.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
X-Audit-Log-Reason | header | string | não |
| Campo | Tipo | Obrigatório |
|---|---|---|
ranks | string[] | sim |
{
"ranks": []
}
200
/servers/{target}/roles/{role_id}Delete a server role by its id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
role_id | path | string | sim |
X-Audit-Log-Reason | header | string | não |
204
/servers/{target}/roles/{role_id}Fetch a role by its id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
role_id | path | string | sim |
200
/servers/{target}/roles/{role_id}Edit a role by its id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
role_id | path | string | sim |
X-Audit-Log-Reason | header | string | não |
| Campo | Tipo | Obrigatório |
|---|---|---|
name | string | não |
colour | string | não |
hoist | boolean | não |
rank | integer | não |
icon | string | não |
remove | FieldsRole[] | não |
{
"name": "texto",
"colour": "texto",
"hoist": true,
"rank": 0,
"icon": "texto",
"remove": []
}
200
Perfis, amizades e mensagens diretas.
/users/@meRetrieve your user information.
🔑 Requer autenticação
200
/users/@me/usernameChange your username.
🔑 Requer autenticação
| Campo | Tipo | Obrigatório |
|---|---|---|
username | string | sim |
password | string | sim |
{
"username": "texto",
"password": "texto"
}
200
/users/dmsThis fetches your direct messages, including any DM and group DM conversations.
🔑 Requer autenticação
200
/users/friendSend a friend request to another user.
🔑 Requer autenticação
| Campo | Tipo | Obrigatório |
|---|---|---|
username | string | sim |
{
"username": "texto"
}
200
/users/{target}Retrieve a user's information.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
200
/users/{target}Edit currently authenticated user.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
| Campo | Tipo | Obrigatório |
|---|---|---|
display_name | string | não |
pronouns | string | não |
avatar | string | não |
status | any | não |
profile | any | não |
badges | integer | não |
flags | integer | não |
remove | FieldsUser[] | não |
{
"display_name": "texto",
"pronouns": "texto",
"avatar": "texto",
"status": "…",
"profile": "…",
"badges": 0,
"flags": 0,
"remove": []
}
200
/users/{target}/blockUnblock another user by their id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
200
/users/{target}/blockBlock another user by their id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
200
/users/{target}/default_avatarThis returns a default avatar based on the given id.
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | string | sim |
200
/users/{target}/dmOpen a DM with another user. If the target is oneself, a saved messages channel is returned.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
200
/users/{target}/flagsRetrieve a user's flags.
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
200
/users/{target}/friendDenies another user's friend request or removes an existing friend.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
200
/users/{target}/friendAccept another user's friend request.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
200
/users/{target}/mutualRetrieve a list of mutual friends, servers, groups and DMs with another user.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
200
/users/{target}/profileRetrieve a user's profile data. Will fail if you do not have permission to access the other user's profile.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
200
Consultar e resgatar convites.
/invites/{target}Delete an invite by its id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
X-Audit-Log-Reason | header | string | não |
204
/invites/{target}Fetch an invite by its id.
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
200
/invites/{target}Join an invite by its ID
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
target | path | Id | sim |
200
Sessões e conta. Bots não usam estas rotas.
/auth/account/Fetch account information from the current session.
🔑 Requer autenticação
200
/auth/account/change/emailChange the associated account email.
🔑 Requer autenticação
| Campo | Tipo | Obrigatório |
|---|---|---|
email | string | sim |
current_password | string | sim |
{
"email": "texto",
"current_password": "texto"
}
204
/auth/account/change/passwordChange the current account password.
🔑 Requer autenticação
| Campo | Tipo | Obrigatório |
|---|---|---|
password | string | sim |
current_password | string | sim |
{
"password": "texto",
"current_password": "texto"
}
204
/auth/account/createCreate a new account.
| Campo | Tipo | Obrigatório |
|---|---|---|
email | string | sim |
password | string | sim |
invite | string | não |
captcha | string | não |
{
"email": "texto",
"password": "texto",
"invite": "texto",
"captcha": "texto"
}
204
/auth/account/deleteRequest to have an account deleted.
🔑 Requer autenticação
204
/auth/account/deleteSchedule an account for deletion by confirming the received token.
| Campo | Tipo | Obrigatório |
|---|---|---|
token | string | sim |
{
"token": "texto"
}
204
/auth/account/disableDisable an account.
🔑 Requer autenticação
204
/auth/account/reset_passwordConfirm password reset and change the password.
| Campo | Tipo | Obrigatório |
|---|---|---|
token | string | sim |
password | string | sim |
remove_sessions | boolean | não |
{
"token": "texto",
"password": "texto",
"remove_sessions": true
}
204
/auth/account/reset_passwordSend an email to reset account password.
| Campo | Tipo | Obrigatório |
|---|---|---|
email | string | sim |
captcha | string | não |
{
"email": "texto",
"captcha": "texto"
}
204
/auth/account/reverifyResend account creation verification email.
| Campo | Tipo | Obrigatório |
|---|---|---|
email | string | sim |
captcha | string | não |
{
"email": "texto",
"captcha": "texto"
}
204
/auth/account/verify/{code}Verify an email address.
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
code | path | string | sim |
200
/auth/mfa/Fetch MFA status of an account.
🔑 Requer autenticação
200
/auth/mfa/methodsFetch available MFA methods.
🔑 Requer autenticação
200
/auth/mfa/recoveryRe-generate recovery codes for an account.
🔑 Requer autenticação
200
/auth/mfa/recoveryFetch recovery codes for an account.
🔑 Requer autenticação
200
/auth/mfa/ticketCreate a new MFA ticket or validate an existing one.
🔑 Requer autenticação
200
/auth/mfa/totpDisable TOTP 2FA for an account.
🔑 Requer autenticação
204
/auth/mfa/totpGenerate a new secret for TOTP.
🔑 Requer autenticação
200
/auth/mfa/totpGenerate a new secret for TOTP.
🔑 Requer autenticação
204
/auth/session/allDelete all active sessions, optionally including current one.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
revoke_self | query | boolean | não |
204
/auth/session/allFetch all sessions associated with this account.
🔑 Requer autenticação
200
/auth/session/loginLogin to an account.
200
/auth/session/logoutDelete current session.
🔑 Requer autenticação
204
/auth/session/{id}Delete a specific active session.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
id | path | string | sim |
204
/auth/session/{id}Edit current session information.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
id | path | string | sim |
| Campo | Tipo | Obrigatório |
|---|---|---|
friendly_name | string | sim |
{
"friendly_name": "texto"
}
200
Configurações e estado de leitura.
/sync/settings/fetchFetch 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.
🔑 Requer autenticação
| Campo | Tipo | Obrigatório |
|---|---|---|
keys | string[] | sim |
{
"keys": []
}
200
/sync/settings/setUpload data to save to settings.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
timestamp | query | integer | não |
204
/sync/unreadsFetch information about unread state on channels.
🔑 Requer autenticação
200
Registro para push.
/push/subscribeCreate a new Web Push subscription. If an existing subscription exists on this session, it will be removed.
🔑 Requer autenticação
| Campo | Tipo | Obrigatório |
|---|---|---|
endpoint | string | sim |
p256dh | string | sim |
auth | string | sim |
{
"endpoint": "texto",
"p256dh": "texto",
"auth": "texto"
}
204
/push/unsubscribeRemove the Web Push subscription associated with the current session.
🔑 Requer autenticação
204
Primeiro acesso da conta.
/onboard/completeThis sets a new username, completes onboarding and allows a user to start using Revolt.
🔑 Requer autenticação
| Campo | Tipo | Obrigatório |
|---|---|---|
username | string | sim |
{
"username": "texto"
}
200
/onboard/helloThis 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.
🔑 Requer autenticação
200
Denúncias.
/safety/reportReport a piece of content to the moderation team.
🔑 Requer autenticação
| Campo | Tipo | Obrigatório |
|---|---|---|
content | any | sim |
additional_context | string | não |
{
"content": "…",
"additional_context": "texto"
}
204
Emojis personalizados.
/custom/emoji/{emoji_id}Delete an emoji by its id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
emoji_id | path | Id | sim |
X-Audit-Log-Reason | header | string | não |
204
/custom/emoji/{emoji_id}Fetch an emoji by its id.
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
emoji_id | path | Id | sim |
200
/custom/emoji/{emoji_id}Edit an emoji by its id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
emoji_id | path | Id | sim |
X-Audit-Log-Reason | header | string | não |
| Campo | Tipo | Obrigatório |
|---|---|---|
name | string | não |
{
"name": "texto"
}
200
/custom/emoji/{emoji_id}Create an emoji by its Autumn upload id.
🔑 Requer autenticação
| Parâmetro | Onde | Tipo | Obrigatório |
|---|---|---|---|
emoji_id | path | string | sim |
X-Audit-Log-Reason | header | string | não |
| Campo | Tipo | Obrigatório |
|---|---|---|
name | string | sim |
parent | any | sim |
nsfw | boolean | não |
{
"name": "texto",
"parent": "…",
"nsfw": true
}
200
Mudanças de termos.
/policy/acknowledgeAccept/acknowledge changes to platform policy.
🔑 Requer autenticação
204