tether developers
Contents

API reference

Channels

Channels, direct messages, and who may do what in them.

Edit Channel Permissions

PUT/channels/{channel.id}/permissions/{overwrite.id}People and bots

Set a role's or a member's allow and deny bits in a channel.

Permissions needed

MANAGE_ROLESbit 268435456
Manage roles

Path parameters

channel.id
A snowflake id.
overwrite.id
A role id, or a user id for a member overwrite.

Body

application/json

type0 | 1required
0 for a role, 1 for a member.
allowstring · default "0"
Decimal bitfield.
denystring · default "0"
Decimal bitfield.

Example request

{
  "type": 0,
  "allow": "2048",
  "deny": "0"
}

Response

204 no body

Errors

UNKNOWN_CHANNEL10003 · HTTP 404
The channel does not exist, or you are not in its server.
MISSING_ACCESS50001 · HTTP 403
You are in the server but cannot see the channel (VIEW_CHANNEL).
MISSING_PERMISSIONS50013 · HTTP 403
You lack a permission the route needs.
CANNOT_EXECUTE_ON_CHANNEL_TYPE50024 · HTTP 400
The channel is a thread: it follows its text channel.

Gateway events it causes

Discord

The same as Discord’s Edit Channel Permissions.

Delete Channel Permission

DELETE/channels/{channel.id}/permissions/{overwrite.id}People and bots

Remove a role's or a member's overwrite from a channel.

Permissions needed

MANAGE_ROLESbit 268435456
Manage roles

Path parameters

channel.id
A snowflake id.
overwrite.id
A role id, or a user id.

Response

204 no body

Errors

UNKNOWN_CHANNEL10003 · HTTP 404
The channel does not exist, or you are not in its server.
MISSING_ACCESS50001 · HTTP 403
You are in the server but cannot see the channel (VIEW_CHANNEL).
MISSING_PERMISSIONS50013 · HTTP 403
You lack a permission the route needs.
UNKNOWN_OVERWRITE10009 · HTTP 404
There is no such overwrite.

Gateway events it causes

Discord

The same as Discord’s Delete Channel Permission.

Get Channel

GET/channels/{channel.id}People and bots

A channel, a thread or a direct message conversation you are in.

Path parameters

channel.id
A snowflake id.

Response

200 APIChannel

A thread answers APIThread, a DM APIDMChannel.

{
  "id": "107441200000000010",
  "type": 0,
  "guild_id": "107441200000000001",
  "name": "general",
  "position": 0,
  "parent_id": null,
  "topic": "Anything goes.",
  "nsfw": false,
  "last_message_id": "107441200000000100",
  "permission_overwrites": [],
  "rate_limit_per_user": 0
}

Errors

UNKNOWN_CHANNEL10003 · HTTP 404
The channel does not exist, or you are not in its server.
MISSING_ACCESS50001 · HTTP 403
You are in the server but cannot see the channel (VIEW_CHANNEL).

Discord

The same as Discord’s Get Channel.

Modify Channel

PATCH/channels/{channel.id}People and bots

Change a channel (Manage Channels), a thread (its owner, or Manage Threads), or rename a group DM.

The body depends on what the channel is. A server channel takes the fields below. A thread takes name, archived, locked, auto_archive_duration and rate_limit_per_user (locking and slow mode need Manage Threads). A group DM takes name.

Permissions needed

MANAGE_CHANNELSbit 16
Manage channels

Path parameters

channel.id
A snowflake id.

Body

application/json

namestring · 1 to 100 characters
The channel's name.
topicstring | null · max 1024 characters
The topic of a text channel, or null.
positioninteger · 0 to 1000
parent_idstring | null
The category it is in, or null.
bitrateinteger · 8000 to 384000
user_limitinteger · 0 to 99
theatreboolean
Tether: a voice channel is a theatre.
voice_e2eeboolean
Tether: calls in this voice channel are end-to-end encrypted. Bots cannot join. A call keeps the mode it started with, so a change applies when the channel is next empty.
rate_limit_per_userinteger · 0 to 21600
Slow mode in seconds, 0 for off (text channels).
nsfwboolean
Age-restricted (18+), text and voice channels. People under 18 never see it and adults are asked before they go in. Only someone who is 18 or older can turn it on (403 ADULT_REQUIRED). Bots see nsfw: true on the channel.
iconstring | null
Tether: a channel icon key, or null.

Example request

{
  "topic": "New topic",
  "rate_limit_per_user": 5
}

Response

200 APIChannel

{
  "id": "107441200000000010",
  "type": 0,
  "guild_id": "107441200000000001",
  "name": "general",
  "position": 0,
  "parent_id": null,
  "topic": "Anything goes.",
  "nsfw": false,
  "last_message_id": "107441200000000100",
  "permission_overwrites": [],
  "rate_limit_per_user": 0
}

Errors

UNKNOWN_CHANNEL10003 · HTTP 404
The channel does not exist, or you are not in its server.
MISSING_ACCESS50001 · HTTP 403
You are in the server but cannot see the channel (VIEW_CHANNEL).
MISSING_PERMISSIONS50013 · HTTP 403
You lack a permission the route needs.
INVALID_FORM_BODY50035 · HTTP 400
A field is missing, the wrong type or outside its limits.

Gateway events it causes

Discord

Like Discord’s Modify Channel, with differences.

Types 0, 2 and 4 and public threads only.

Delete / Close Channel

DELETE/channels/{channel.id}People and bots

Delete a channel or a thread, or leave a group DM.

A server channel needs Manage Channels, a thread Manage Threads. In a DM, DELETE leaves a group or closes a one-to-one conversation for you only. Answers the deleted channel.

Permissions needed

MANAGE_CHANNELSbit 16
Manage channels

Path parameters

channel.id
A snowflake id.

Response

200 APIChannel

{
  "id": "107441200000000010",
  "type": 0,
  "guild_id": "107441200000000001",
  "name": "general",
  "position": 0,
  "parent_id": null,
  "topic": "Anything goes.",
  "nsfw": false,
  "last_message_id": "107441200000000100",
  "permission_overwrites": [],
  "rate_limit_per_user": 0
}

Errors

UNKNOWN_CHANNEL10003 · HTTP 404
The channel does not exist, or you are not in its server.
MISSING_ACCESS50001 · HTTP 403
You are in the server but cannot see the channel (VIEW_CHANNEL).
MISSING_PERMISSIONS50013 · HTTP 403
You lack a permission the route needs.

Gateway events it causes

Discord

The same as Discord’s Delete/Close Channel.

Get User DMs

GET/users/@me/channelsPeople and bots

The direct messages and group DMs you are in.

Response

200 a list of APIDMChannel

[]

Discord

The same as Discord’s Get User DMs.

Create DM

POST/users/@me/channelsPeople and bots

Open a one-to-one DM (recipient_id) or make a group DM (recipients).

The DM rules apply: someone who blocked you, or who takes messages only from friends, cannot be messaged (50007). A group DM holds at most 10 people.

Body

application/json

recipient_idstring
recipientsarray of string · 1 to 9 items
namestring | null · max 100 characters

Example request

{
  "recipient_id": "107441200000000201"
}

Response

200 APIDMChannel

Errors

CANNOT_SEND_MESSAGES_TO_THIS_USER50007 · HTTP 403
The person cannot be messaged by you.
UNKNOWN_USER10013 · HTTP 404
No such person.
INVALID_FORM_BODY50035 · HTTP 400
A field is missing, the wrong type or outside its limits.

Rate limits

dmCreatePerUserbucket 011031aa
30 per 3600 seconds, counted per user. See Rate limits.

Gateway events it causes

Discord

Like Discord’s Create DM, with differences.

Group DMs are made here too (recipients), not with a token-based scope.

Send Voice Channel Effect

POST/channels/{channel.id}/voice-channel-effectsPeople and bots

Send a reaction (one of five emoji) to the people in the voice channel you are in.

Path parameters

channel.id
A snowflake id.

Body

application/json

emoji"🔥" | "😂" | "❤️" | "👏" | "😮"required
One of 🔥 😂 ❤️ 👏 😮, exactly as written (the heart has its variation selector).

Example request

{
  "emoji": "🔥"
}

Response

204 no body

Errors

UNKNOWN_CHANNEL10003 · HTTP 404
The channel does not exist, or you are not in its server.
MISSING_ACCESS50001 · HTTP 403
You are in the server but cannot see the channel (VIEW_CHANNEL).
INVALID_FORM_BODY50035 · HTTP 400
The emoji is not one of the five.
VOICE_NOT_CONNECTED90032 · HTTP 403
You are not connected to that voice channel (or DM call) right now.

Rate limits

voiceEffectPerUserbucket bf9609b0
8 per 5 seconds, counted per user. See Rate limits.

Gateway events it causes

Discord

Like Discord’s Send Soundboard Sound, with differences.

Discord has no emoji reactions route; its VOICE_CHANNEL_EFFECT_SEND event is the same one. The body is tether's own: {emoji} instead of a sound.

Send Voice E2EE Keys

POST/channels/{channel.id}/voice-e2ee/keysPeople onlytether only

Give your media key, sealed for each of them, to people in the encrypted call you are in.

Only for tether's own apps: a bot can never be in an encrypted call. You and every person you address must be in that encrypted call right now, or nothing is sent. Each person gets only their own box, as VOICE_E2EE_KEY, on the session that owns their voice connection. tether never stores or logs a box and cannot open it.

Path parameters

channel.id
A snowflake id.

Body

application/json

generationinteger · 0 to 2147483647required
Counts up from 0 for each new key of this connection.
keysarray of object · 1 to 49 itemsrequired
Up to 49 {user_id, box}: the key sealed for that person (base64url, 60 bytes).
keys[].user_idstringrequired
keys[].boxstring · 80 to 80 charactersrequired

Example request

{
  "generation": 1,
  "keys": [
    {
      "user_id": "107441200000000201",
      "box": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
    }
  ]
}

Response

204 no body

Errors

UNKNOWN_CHANNEL10003 · HTTP 404
The channel does not exist, or you are not in its server.
INVALID_FORM_BODY50035 · HTTP 400
A box is not 60 bytes of base64url, or too many people.
VOICE_NOT_CONNECTED90032 · HTTP 403
You, or someone you addressed, is not in that encrypted call right now.

Rate limits

voiceE2eeKeysPerUserbucket d22bcb4c
40 per 10 seconds, counted per user. See Rate limits.

Gateway events it causes

Discord

Only on tether: Discord has no such route.

Request Voice E2EE Keys

POST/channels/{channel.id}/voice-e2ee/requestPeople onlytether only

Ask people in your encrypted call to send you their key again.

Path parameters

channel.id
A snowflake id.

Body

application/json

user_idsarray of string · 1 to 49 itemsrequired
Up to 49 people in the call whose key you are missing.

Example request

{
  "user_ids": [
    "107441200000000201"
  ]
}

Response

204 no body

Errors

UNKNOWN_CHANNEL10003 · HTTP 404
The channel does not exist, or you are not in its server.
INVALID_FORM_BODY50035 · HTTP 400
Too many people.
VOICE_NOT_CONNECTED90032 · HTTP 403
You, or someone you asked, is not in that encrypted call right now.

Rate limits

voiceE2eeRequestPerUserbucket ecf2dac6
20 per 10 seconds, counted per user. See Rate limits.

Gateway events it causes

Discord

Only on tether: Discord has no such route.

Start Voice Host

POST/channels/{channel.id}/voice-hostPeople onlytether only

Host the voice channel you are in on your own computer: a one-time token for the voice host program.

Hosting shows the host the IP address of everyone in the call, so everyone is asked first (VOICE_HOST_OFFER) and the call is always encrypted. Needs 18 or older, an encrypted-call-capable app, and Move Members in the channel. It fails with one generic answer (VOICE_HOST_UNAVAILABLE) whatever the reason. The token works once, for two minutes.

Permissions needed

MOVE_MEMBERSbit 16777216
Move members

Path parameters

channel.id
A snowflake id.

Response

200 APIChannelVoiceHostStarted

{
  "host": {
    "kind": "member",
    "id": "m107441200000000900",
    "name": "pepso"
  },
  "token": "tvh_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
  "expires_at": "2026-11-19T10:02:00.000Z"
}

Errors

UNKNOWN_CHANNEL10003 · HTTP 404
The channel does not exist, or you are not in its server.
MISSING_ACCESS50001 · HTTP 403
You are in the server but cannot see the channel (VIEW_CHANNEL).
MISSING_PERMISSIONS50013 · HTTP 403
You lack a permission the route needs.
VOICE_NOT_CONNECTED90032 · HTTP 403
You are not connected to that voice channel right now.
VOICE_HOST_UNAVAILABLE90038 · HTTP 403
You can't host this channel right now.

Rate limits

voiceHostManagePerUserbucket 75cab70c
20 per 600 seconds, counted per user. See Rate limits.

Gateway events it causes

Discord

Only on tether: Discord has no such route.

Stop Voice Host

DELETE/channels/{channel.id}/voice-hostPeople onlytether only

Stop hosting the channel; the call goes back to tether's voice server.

Path parameters

channel.id
A snowflake id.

Response

204 no body

Errors

UNKNOWN_CHANNEL10003 · HTTP 404
The channel does not exist, or you are not in its server.

Rate limits

voiceHostManagePerUserbucket 75cab70c
20 per 600 seconds, counted per user. See Rate limits.

Gateway events it causes

Discord

Only on tether: Discord has no such route.

Report Voice Host Unreachable

POST/channels/{channel.id}/voice-host/unreachablePeople onlytether only

Say that you cannot reach the host of the call you are in.

Two people within 30 seconds, or the only other person, send the call back to tether's voice server (VOICE_SERVER_UPDATE).

Path parameters

channel.id
A snowflake id.

Response

204 no body

Errors

UNKNOWN_CHANNEL10003 · HTTP 404
The channel does not exist, or you are not in its server.
VOICE_NOT_CONNECTED90032 · HTTP 403
You are not connected to that voice channel right now.

Rate limits

voiceHostUnreachablePerUserbucket d392dc00
6 per 60 seconds, counted per user. See Rate limits.

Gateway events it causes

Discord

Only on tether: Discord has no such route.