tether developers
Contents

API reference

Users

The account behind a token, its servers and settings.

Get Current User

GET/users/@mePeople and botsApp token with “identify”

The account the token belongs to.

A person gets their private account (email, settings, status). A bot gets the same object for the bot. A "sign in with tether" app token with identify gets the public user only, without email or settings.

Who can call it

  • A person, with a session token.
  • A bot, with its token.
  • An app token with the scope identify: See your name, username and picture

Response

200 APICurrentUser

{
  "id": "107441200000000200",
  "username": "josh",
  "discriminator": "0",
  "global_name": "Josh",
  "avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
  "banner": null,
  "accent_color": null,
  "bot": false,
  "public_flags": 0,
  "email": null,
  "bio": null,
  "status": "online",
  "flags": 0,
  "dm_privacy": "friends_and_servers",
  "call_privacy": "friends_and_servers",
  "emoji_gender": "person",
  "emoji_skin_tone": 0,
  "mfa_enabled": false,
  "age_group": "adult",
  "deletion_scheduled_at": null,
  "theme_colors": null,
  "verified": false,
  "pending_email": null
}

Discord

The same as Discord’s Get Current User.

Modify Current User

PATCH/users/@mePeople and bots

Change your own profile: display name, picture, banner, status, colours.

A bot can change its picture and profile here too; its name is changed by its maker (PATCH /users/@me/bots/{bot.id}). Pictures are image data URIs; the server decodes, checks and re-encodes them, so what you send is never stored as it came. Changing the picture or banner counts against avatarChangePerUser.

Body

application/json

global_namestring | null · max 32 characters
The display name; null clears it.
biostring | null · max 190 characters
emailstring | null · max 254 characters
passwordstring · 1 to 256 characters
status"online" | "idle" | "dnd" | "invisible"
online, idle, dnd or invisible.
dm_privacy"friends_and_servers" | "friends_only"
call_privacy"friends_and_servers" | "friends_only" | "nobody"
emoji_gender"person" | "woman" | "man"
emoji_skin_toneinteger · 0 to 5
avatarstring | null · max 5592534 characters
An image data URI (data:image/png;base64,…), or null to clear.
bannerstring | null · max 5592534 characters
The profile banner, same rules as avatar.
accent_colorinteger | null · 0 to 16777215
The profile colour as an RGB integer.
theme_colorsarray of any | null · 2 to 2 items

Example request

{
  "global_name": "Groove"
}

Response

200 APICurrentUser

{
  "id": "107441200000000200",
  "username": "josh",
  "discriminator": "0",
  "global_name": "Josh",
  "avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
  "banner": null,
  "accent_color": null,
  "bot": false,
  "public_flags": 0,
  "email": null,
  "bio": null,
  "status": "online",
  "flags": 0,
  "dm_privacy": "friends_and_servers",
  "call_privacy": "friends_and_servers",
  "emoji_gender": "person",
  "emoji_skin_tone": 0,
  "mfa_enabled": false,
  "age_group": "adult",
  "deletion_scheduled_at": null,
  "theme_colors": null,
  "verified": false,
  "pending_email": null
}

Errors

INVALID_FORM_BODY50035 · HTTP 400
A field is missing, the wrong type or outside its limits.
UNVERIFIED_ACCOUNT40002 · HTTP 403
A person on a server that sends email has not confirmed their email yet.

Rate limits

avatarChangePerUserbucket 1a6ee4e8
10 per 3600 seconds, counted per user. See Rate limits.

Gateway events it causes

Discord

Like Discord’s Modify Current User, with differences.

No username here (a bot's name is its maker's to change). tether adds bio, status, dm_privacy, theme_colors and more.

Get Current User Guilds

GET/users/@me/guildsPeople and botsApp token with “guilds”

The servers you are in, with your permissions in each.

A "sign in with tether" app token with guilds gets only id, name and icon of each server (APIAppGuild): never your permissions, and nothing inside the servers.

Who can call it

  • A person, with a session token.
  • A bot, with its token.
  • An app token with the scope guilds: See which servers you’re in, with their names and pictures

Query string

beforestring
Server ids lower than this.
afterstring
Server ids higher than this.
limitinteger · 1 to 200 · default 200

Response

200 a list of APIPartialGuild

[
  {
    "id": "107441200000000001",
    "name": "The crew",
    "icon": null,
    "owner": false,
    "permissions": "3263553",
    "features": []
  }
]

Discord

Like Discord’s Get Current User Guilds, with differences.

Sorted by id, oldest first. No with_counts.

Leave Guild

DELETE/users/@me/guilds/{guild.id}People and bots

Leave a server. The owner cannot (transfer it or delete it).

Path parameters

guild.id
A snowflake id.

Response

204 no body

Errors

UNKNOWN_GUILD10004 · HTTP 404
The server does not exist, or you are not in it.
OWNER_CANNOT_LEAVE90020 · HTTP 400
You own the server.

Gateway events it causes

Discord

The same as Discord’s Leave Guild.

Get User

GET/users/{user.id}People and bots

The public details of any account: name, picture, banner, colour, whether it is a bot.

Like Discord's: a library's fetch_user() / users.fetch() works, also for someone the bot shares no server with (a ban by id, a lookup before an invite). It answers only what is public: id, username, global_name, avatar, discriminator (always "0"), bot, banner, accent_color, public_flags, and player on a music bot. Never an email, a setting, a status or the servers someone is in. Looking people up is slow on purpose (two limits, 30 a minute and 300 an hour); an id that does not exist and one that is reserved for the system answer alike.

Path parameters

user.id
A snowflake id.

Response

200 APIUser

{
  "id": "107441200000000200",
  "username": "josh",
  "discriminator": "0",
  "global_name": "Josh",
  "avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
  "banner": null,
  "accent_color": null,
  "bot": false,
  "public_flags": 0
}

Errors

UNKNOWN_USER10013 · HTTP 404
No account has this id.

Rate limits

userLookupPerUserbucket be6f7de6
30 per 60 seconds, counted per user. See Rate limits.
userLookupPerHourbucket fdc12db1
300 per 3600 seconds, counted per user. See Rate limits.

Discord

The same as Discord’s Get User.

Get User Profile

GET/users/{user.id}/profilePeople and botstether only

The profile card of someone you share a server, a DM or a friendship with.

More than Get User: the bio, profile colours, the accounts someone shows and the servers you share. It answers 404 for anyone you share nothing with, so profiles cannot be browsed.

Path parameters

user.id
A snowflake id.

Response

200 APIUserProfile

{
  "user": {
    "id": "107441200000000200",
    "username": "josh",
    "discriminator": "0",
    "global_name": "Josh",
    "avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
    "banner": null,
    "accent_color": null,
    "bot": false,
    "public_flags": 0
  },
  "user_profile": {
    "bio": "Hello",
    "theme_colors": null
  },
  "connected_accounts": [],
  "mutual_guilds": [
    {
      "id": "107441200000000001",
      "nick": null
    }
  ]
}

Errors

UNKNOWN_USER10013 · HTTP 404
No such person, or you share nothing with them.

Discord

Only on tether: Discord has no such route.

Discord documents no profile route for bots; Get User is the one that matches Discord's.

Get Current User Settings

GET/users/@me/settingsPeople and bots

Your custom status, and your servers in rail order, in folders.

Response

200 APIUserSettings

{
  "custom_status": {
    "text": "Out for lunch",
    "emoji_name": "🍜",
    "emoji_id": null,
    "expires_at": null
  },
  "guild_folders": [
    {
      "id": 3417,
      "name": "Gaming",
      "color": 9141494,
      "guild_ids": [
        "1100000000000000001",
        "1100000000000000002"
      ]
    },
    {
      "id": null,
      "name": null,
      "color": null,
      "guild_ids": [
        "1100000000000000003"
      ]
    }
  ],
  "locale": "fr",
  "camera_still": false
}

Discord

Like Discord’s User settings, with differences.

Discord's legacy settings route; custom_status, guild_folders and locale are here. A bot's guild_folders is its servers in join order. locale is null until the person picks a language.

Modify Current User Settings

PATCH/users/@me/settingsPeople and bots

Set or clear your custom status, save your server folders (people only), or pick your language.

Body

application/json

custom_statusobject | null
The status, or null to clear it.
guild_foldersarray of object · max 200 items
Your servers in rail order, in folders: the complete list, not a change. A server in no folder is an entry with id: null and one server. Servers you are not in are dropped, a server in two places keeps its first, empty folders go, and servers left out follow in join order. color is one of tether's 14 accent colours (anything else becomes the default). A bot gets 403.
guild_folders[].idinteger | null · min 1required
guild_folders[].namestring | null · max 100 characters
guild_folders[].colorinteger | null · 0 to 16777215
guild_folders[].guild_idsarray of string · max 200 itemsrequired
locale"en-US" | "fr" | "es-ES" | "pt-BR" | "de" | "nl" | "zh-CN" | "ko" | "ja" | "ru"
Your language: one of en-US, fr, es-ES, pt-BR, de, nl, zh-CN, ko, ja, ru. The web app and tether's emails and push notifications use it; your other sessions get USER_SETTINGS_UPDATE. There is no way to send null: the choice is the ten.
camera_stillboolean
Tether only: show a still of your camera outside the call (default false). While it is off, the server accepts and shows no still of your camera; stills of a screen share are not affected. A bot gets 403.

Example request

{
  "custom_status": {
    "text": "Out for lunch",
    "emoji_name": "🍜"
  }
}

Response

200 APIUserSettings

{
  "custom_status": {
    "text": "Out for lunch",
    "emoji_name": "🍜",
    "emoji_id": null,
    "expires_at": null
  },
  "guild_folders": [
    {
      "id": 3417,
      "name": "Gaming",
      "color": 9141494,
      "guild_ids": [
        "1100000000000000001",
        "1100000000000000002"
      ]
    },
    {
      "id": null,
      "name": null,
      "color": null,
      "guild_ids": [
        "1100000000000000003"
      ]
    }
  ],
  "locale": "fr"
}

Errors

INVALID_FORM_BODY50035 · HTTP 400
The status needs text or an emoji, its end time is not in the future, the folders are malformed, or locale is not one of the ten.
BOTS_CANNOT_USE_ENDPOINT20001 · HTTP 403
A bot sent guild_folders.

Rate limits

guildFoldersPerUserbucket fc85ffed
60 per 60 seconds, counted per user. See Rate limits.

Gateway events it causes

Discord

Like Discord’s User settings, with differences.

Only custom_status, guild_folders (Discord's folder shape; color is limited to tether's 14 accents) and locale (Discord's codes, only the ten languages; null until chosen).