tether developers
Contents

API reference

Servers (guilds)

Servers and their channels. In the API a server is a guild.

Create Guild

POST/guildsPeople only

Make a new server. You become its owner. People only.

A bot cannot make servers (403 20001). tether adds code: server code (the Advanced editor's language) that is saved into the new server straight away; code with mistakes is refused before anything is made.

Body

application/json

namestring · 2 to 100 charactersrequired
codestring · max 204800 characters

Example request

{
  "name": "The crew"
}

Response

201 APIGuild

{
  "id": "107441200000000001",
  "name": "The crew",
  "icon": null,
  "owner_id": "107441200000000200",
  "roles": [
    {
      "id": "107441200000000001",
      "name": "@everyone",
      "color": 0,
      "colors": {
        "primary_color": 0,
        "secondary_color": null,
        "tertiary_color": null
      },
      "icon": null,
      "unicode_emoji": null,
      "flags": 0,
      "hoist": false,
      "position": 0,
      "permissions": "3263553",
      "managed": false,
      "mentionable": false
    },
    {
      "id": "107441200000000400",
      "name": "Moderator",
      "color": 3447003,
      "colors": {
        "primary_color": 3447003,
        "secondary_color": null,
        "tertiary_color": null
      },
      "icon": null,
      "unicode_emoji": null,
      "flags": 0,
      "hoist": true,
      "position": 2,
      "permissions": "1099511627776",
      "managed": false,
      "mentionable": true
    }
  ],
  "features": [],
  "default_message_notifications": 1,
  "emojis": [],
  "stickers": [],
  "rules_channel_id": null
}

Errors

BOTS_CANNOT_USE_ENDPOINT20001 · HTTP 403
A bot token was used on a route for people.
INVALID_FORM_BODY50035 · HTTP 400
A field is missing, the wrong type or outside its limits.
MAX_GUILDS30001 · HTTP 400
You are in the most servers an account may be in (200).

Rate limits

guildCreatePerUserbucket 0ed79d9e
10 per 3600 seconds, counted per user. See Rate limits.

Gateway events it causes

Discord

Like Discord’s Create Guild, with differences.

Bots cannot; code is tether's.

Get Guild

GET/guilds/{guild.id}People and bots

A server: its name, picture, owner, roles and emoji.

Discord's many placeholder settings (verification level, locale…) are sent with a default server's values; see "What a library will still notice".

Path parameters

guild.id
A snowflake id.

Response

200 APIGuild

{
  "id": "107441200000000001",
  "name": "The crew",
  "icon": null,
  "owner_id": "107441200000000200",
  "roles": [
    {
      "id": "107441200000000001",
      "name": "@everyone",
      "color": 0,
      "colors": {
        "primary_color": 0,
        "secondary_color": null,
        "tertiary_color": null
      },
      "icon": null,
      "unicode_emoji": null,
      "flags": 0,
      "hoist": false,
      "position": 0,
      "permissions": "3263553",
      "managed": false,
      "mentionable": false
    },
    {
      "id": "107441200000000400",
      "name": "Moderator",
      "color": 3447003,
      "colors": {
        "primary_color": 3447003,
        "secondary_color": null,
        "tertiary_color": null
      },
      "icon": null,
      "unicode_emoji": null,
      "flags": 0,
      "hoist": true,
      "position": 2,
      "permissions": "1099511627776",
      "managed": false,
      "mentionable": true
    }
  ],
  "features": [],
  "default_message_notifications": 1,
  "emojis": [],
  "stickers": [],
  "rules_channel_id": null
}

Errors

UNKNOWN_GUILD10004 · HTTP 404
The server does not exist, or you are not in it.

Discord

Like Discord’s Get Guild, with differences.

No with_counts; settings tether does not have are placeholders.

Modify Guild

PATCH/guilds/{guild.id}People and bots

Change a server's name, icon, banner, default notifications, rules channel or time zone.

Permissions needed

MANAGE_GUILDbit 32
Manage server

Path parameters

guild.id
A snowflake id.

Body

application/json

namestring · 2 to 100 characters
iconstring | null · max 5592534 characters
An image data URI (data:image/png;base64,…), or null to clear. The server decodes, checks and re-encodes it.
bannerstring | null · max 5592534 characters
The server banner (a 16:9 picture), same rules as icon.
default_message_notifications0 | 1
0 notifies for every message, 1 only for mentions.
rules_channel_idstring | null
The channel of the rules gate, or null.
owner_idstring
Give the server to this person. Only a person who owns the server can (a bot token is refused, whatever its permissions), and the new owner must be a person in the server.
mfa_codestring · max 32 characters
A current two-factor code, needed with owner_id while the owner has two-factor on. Bots never send it.
time_zonestring | null · max 64 characters
An IANA time zone (Europe/London) for repeated posts, or null.

Example request

{
  "name": "The crew (est. 2026)"
}

Response

200 APIGuild

{
  "id": "107441200000000001",
  "name": "The crew",
  "icon": null,
  "owner_id": "107441200000000200",
  "roles": [
    {
      "id": "107441200000000001",
      "name": "@everyone",
      "color": 0,
      "colors": {
        "primary_color": 0,
        "secondary_color": null,
        "tertiary_color": null
      },
      "icon": null,
      "unicode_emoji": null,
      "flags": 0,
      "hoist": false,
      "position": 0,
      "permissions": "3263553",
      "managed": false,
      "mentionable": false
    },
    {
      "id": "107441200000000400",
      "name": "Moderator",
      "color": 3447003,
      "colors": {
        "primary_color": 3447003,
        "secondary_color": null,
        "tertiary_color": null
      },
      "icon": null,
      "unicode_emoji": null,
      "flags": 0,
      "hoist": true,
      "position": 2,
      "permissions": "1099511627776",
      "managed": false,
      "mentionable": true
    }
  ],
  "features": [],
  "default_message_notifications": 1,
  "emojis": [],
  "stickers": [],
  "rules_channel_id": null
}

Errors

UNKNOWN_GUILD10004 · HTTP 404
The server does not exist, or you are not in it.
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 Guild, with differences.

Only the fields tether has.

Set Guild Icon

PUT/guilds/{guild.id}/iconPeople and botstether only

Set or clear the server's icon.

Permissions needed

MANAGE_GUILDbit 32
Manage server

Path parameters

guild.id
A snowflake id.

Body

application/json

iconstring | null · max 5592534 charactersrequired
An image data URI (data:image/png;base64,…), or null to clear. The server decodes, checks and re-encodes it.

Example request

{
  "icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=="
}

Response

200 APIGuild

{
  "id": "107441200000000001",
  "name": "The crew",
  "icon": null,
  "owner_id": "107441200000000200",
  "roles": [
    {
      "id": "107441200000000001",
      "name": "@everyone",
      "color": 0,
      "colors": {
        "primary_color": 0,
        "secondary_color": null,
        "tertiary_color": null
      },
      "icon": null,
      "unicode_emoji": null,
      "flags": 0,
      "hoist": false,
      "position": 0,
      "permissions": "3263553",
      "managed": false,
      "mentionable": false
    },
    {
      "id": "107441200000000400",
      "name": "Moderator",
      "color": 3447003,
      "colors": {
        "primary_color": 3447003,
        "secondary_color": null,
        "tertiary_color": null
      },
      "icon": null,
      "unicode_emoji": null,
      "flags": 0,
      "hoist": true,
      "position": 2,
      "permissions": "1099511627776",
      "managed": false,
      "mentionable": true
    }
  ],
  "features": [],
  "default_message_notifications": 1,
  "emojis": [],
  "stickers": [],
  "rules_channel_id": null
}

Errors

UNKNOWN_GUILD10004 · HTTP 404
The server does not exist, or you are not in it.
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

Only on tether: Discord has no such route.

On Discord the icon is a field of Modify Guild; that works here too.

Delete Guild

DELETE/guilds/{guild.id}People and bots

Delete a server for good, with its channels, messages and files.

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.
MISSING_PERMISSIONS50013 · HTTP 403
You are not the owner.

Gateway events it causes

Discord

The same as Discord’s Delete Guild.

Get Guild Channels

GET/guilds/{guild.id}/channelsPeople and bots

The channels you can see (View Channel), threads excluded.

Threads are not channels of this list: use List Active Threads.

Path parameters

guild.id
A snowflake id.

Response

200 a list of 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
  },
  {
    "id": "107441200000000011",
    "type": 2,
    "guild_id": "107441200000000001",
    "name": "Lounge",
    "position": 1,
    "parent_id": null,
    "topic": null,
    "nsfw": false,
    "last_message_id": null,
    "permission_overwrites": [],
    "bitrate": 64000,
    "user_limit": 0
  }
]

Errors

UNKNOWN_GUILD10004 · HTTP 404
The server does not exist, or you are not in it.

Discord

Like Discord’s Get Guild Channels, with differences.

Only channels you can see.

Create Guild Channel

POST/guilds/{guild.id}/channelsPeople and bots

Make a text channel (0), a voice channel (2) or a category (4).

Threads are made with the thread routes, never here. tether adds theatre (a voice channel for watching films together) and icon.

Permissions needed

MANAGE_CHANNELSbit 16
Manage channels

Path parameters

guild.id
A snowflake id.

Body

application/json

namestring · 1 to 100 charactersrequired
typeinteger · default 0
0 text (the default), 2 voice, 4 category.
topicstring | null · max 1024 characters
positioninteger · 0 to 1000
parent_idstring | null
The category to put it in.
bitrateinteger · 8000 to 384000
user_limitinteger · 0 to 99
theatreboolean
Tether: make a voice channel a theatre.
voice_e2eeboolean
rate_limit_per_userinteger · 0 to 21600
Slow mode in seconds (text channels), 0 for off.
nsfwboolean
Age-restricted (18+), text and voice channels: people under 18 never see it. Only someone who is 18 or older can set it (403 ADULT_REQUIRED).
iconstring | null
Tether: a key from the channel icon lists, or null for the default.
permission_overwritesarray of object · max 100 items
permission_overwrites[].idstringrequired
permission_overwrites[].type0 | 1required
permission_overwrites[].allowstring · default "0"
permission_overwrites[].denystring · default "0"

Example request

{
  "name": "announcements",
  "type": 0,
  "topic": "News about the crew"
}

Response

201 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_GUILD10004 · HTTP 404
The server does not exist, or you are not in it.
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.
MAX_CHANNELS30013 · HTTP 400
The server has 500 channels.

Gateway events it causes

Discord

Like Discord’s Create Guild Channel, with differences.

Types 0, 2 and 4 only; no forum, stage or announcement channels.

Modify Guild Channel Positions

PATCH/guilds/{guild.id}/channelsPeople and bots

Move channels: new positions and categories for several at once.

Permissions needed

MANAGE_CHANNELSbit 16
Manage channels

Path parameters

guild.id
A snowflake id.

Body

application/json

{
  "minItems": 1,
  "maxItems": 500,
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string"
      },
      "position": {
        "type": "integer",
        "minimum": 0,
        "maximum": 1000
      },
      "parent_id": {
        "type": [
          "string",
          "null"
        ]
      },
      "lock_permissions": {
        "type": "boolean"
      }
    },
    "required": [
      "id"
    ]
  }
}

Example request

[
  {
    "id": "107441200000000010",
    "position": 1
  }
]

Response

204 no body

Errors

UNKNOWN_GUILD10004 · HTTP 404
The server does not exist, or you are not in it.
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

The same as Discord’s Modify Guild Channel Positions.

Get Guild Voice Host

GET/guilds/{guild.id}/voice-hostPeople onlytether only

Read whether the server has a voice server of its own, and whether it is online.

A voice server of the server's own is a small program (Docker) the owner runs on any machine; the server's voice channels use it while it is online, and tether's own voice server otherwise. Only for tether's own apps.

Path parameters

guild.id
A snowflake id.

Response

200 APIGuildVoiceHost

{
  "id": "107441200000000011",
  "guild_id": "107441200000000001",
  "created_at": "2026-11-19T10:00:00.000Z",
  "online": true
}

Errors

UNKNOWN_GUILD10004 · HTTP 404
The server does not exist, or you are not in it.
MISSING_PERMISSIONS50013 · HTTP 403
You are not the owner.
UNKNOWN_VOICE_HOST90039 · HTTP 404
The server has no voice server of its own.
VOICE_HOST_UNAVAILABLE90038 · HTTP 403
You cannot set one up right now.

Discord

Only on tether: Discord has no such route.

Put Guild Voice Host

PUT/guilds/{guild.id}/voice-hostPeople onlytether only

Make the server's own voice server, or renew its token.

The answer carries the token, once: tether keeps only its hash. Renewing ends the connection of the old token and gives the host a new id, so people who agreed to the old one are asked again. A change of owner removes the voice server. The token goes to the voice host program (TETHER_VOICE_HOST_TOKEN); anyone who has it can run a voice host for this server, so treat it like a password.

Path parameters

guild.id
A snowflake id.

Response

200 APIGuildVoiceHostCreated

{
  "id": "107441200000000011",
  "guild_id": "107441200000000001",
  "created_at": "2026-11-19T10:00:00.000Z",
  "online": false,
  "token": "tvh_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}

Errors

UNKNOWN_GUILD10004 · HTTP 404
The server does not exist, or you are not in it.
MISSING_PERMISSIONS50013 · HTTP 403
You are not the owner.
VOICE_HOST_UNAVAILABLE90038 · HTTP 403
You cannot set one up right now.

Rate limits

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

Discord

Only on tether: Discord has no such route.

Delete Guild Voice Host

DELETE/guilds/{guild.id}/voice-hostPeople onlytether only

Remove the server's own voice server; its calls move to tether's voice server within seconds.

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.
MISSING_PERMISSIONS50013 · HTTP 403
You are not the owner.
UNKNOWN_VOICE_HOST90039 · HTTP 404
The server has no voice server of its own.

Rate limits

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

Discord

Only on tether: Discord has no such route.