Discord Lobbies API

The Lobbies API from Discord — 10 operation(s) for lobbies.

GitHub OpenAPI

Operations 15

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

PUT /lobbies Create or join a lobby with a secret · Create or join lobby #
Ask an LLM
“How do I create a new lobby or join an existing one with a secret?”
“Can I set an idle timeout and metadata when creating a lobby?”
Tell an agent
Create or join a lobby with secret {secret}.
Create a lobby with secret {secret} and metadata {lobby_metadata}.
POST /lobbies Create a lobby with members · Create lobby #
Ask an LLM
“How do I create a lobby and add members to it at the same time?”
“Can I override the event webhooks URL when creating a lobby?”
Tell an agent
Create a lobby with members {members}.
Create a lobby with metadata {metadata} and webhooks URL {override_event_webhooks_url}.
GET /lobbies/{lobby_id} Get a lobby · Get lobby #
Ask an LLM
“What are the details of a lobby?”
“Can I look up a lobby by its ID?”
Tell an agent
Get lobby {lobby_id}.
Show the details of lobby {lobby_id}.
DELETE /lobbies/{lobby_id} Delete a lobby · Delete lobby #
Ask an LLM
“How do I delete a lobby?”
“Is it safe to delete a lobby that no longer exists?”
Tell an agent destructive · confirm first
Delete lobby {lobby_id}.
Remove lobby {lobby_id} permanently.
PATCH /lobbies/{lobby_id} Edit a lobby's members or metadata · Edit lobby #
Ask an LLM
“How do I change the members or metadata of an existing lobby?”
“Can I update a lobby's idle timeout or webhooks URL?”
Tell an agent
Edit lobby {lobby_id} to set members {members}.
Update lobby {lobby_id} metadata to {metadata}.
DELETE /lobbies/{lobby_id}/members/@me Leave a lobby · Leave lobby #
Ask an LLM
“How do I leave a lobby?”
“Can I remove myself from a lobby I joined?”
Tell an agent destructive · confirm first
Leave lobby {lobby_id}.
Remove me from lobby {lobby_id}.
POST /lobbies/{lobby_id}/members/@me/invites Create a guild invite for myself in a lobby · Create linked lobby guild invite for self #
Ask an LLM
“How do I get a guild invite to a lobby I'm in?”
“Can I create a linked invite for myself in a lobby?”
Tell an agent
Create a linked guild invite for me in lobby {lobby_id}.
Give me a guild invite to lobby {lobby_id}.
POST /lobbies/{lobby_id}/members/bulk Add or remove many lobby members at once · Bulk update lobby members #
Ask an LLM
“How do I add or remove several people from a lobby in one request?”
“Can I bulk update lobby members?”
Tell an agent
Bulk update the members of lobby {lobby_id}.
Add and remove many people from lobby {lobby_id} in one call.
PUT /lobbies/{lobby_id}/members/{user_id} Add a member to a lobby · Add lobby member #
Ask an LLM
“How do I invite a player into a lobby?”
“Can I add someone to a lobby with a custom name?”
Tell an agent
Add user {user_id} to lobby {lobby_id}.
Invite {user_id} into lobby {lobby_id} with name {additional_name}.
DELETE /lobbies/{lobby_id}/members/{user_id} Remove a member from a lobby · Delete lobby member #
Ask an LLM
“How do I kick a player out of a lobby?”
“Can I remove someone from a lobby by their user ID?”
Tell an agent destructive · confirm first
Remove user {user_id} from lobby {lobby_id}.
Kick {user_id} out of lobby {lobby_id}.
POST /lobbies/{lobby_id}/members/{user_id}/invites Create a linked invite to a guild for a lobby member · Create linked lobby guild invite for user #
Ask an LLM
“How do I let a player join my game's Discord server through a linked lobby invite?”
“Can I create a guild join invite for one member of a game lobby?”
Tell an agent
Create a linked guild invite for user {user_id} in lobby {lobby_id}.
Send a linked invite to guild server for lobby member {user_id} in lobby {lobby_id}.
GET /lobbies/{lobby_id}/messages Get messages in a lobby · Get lobby messages #
Ask an LLM
“What messages have been sent in a lobby?”
“Can I fetch the last few messages from a lobby?”
Tell an agent
Get messages in lobby {lobby_id}.
Show the last {limit} messages from lobby {lobby_id}.
POST /lobbies/{lobby_id}/messages Send a message in a lobby · Create lobby message #
Ask an LLM
“How do I post a message in a lobby?”
“Can I send a message with embeds, stickers or a poll in a lobby?”
Tell an agent
Send {content} in lobby {lobby_id}.
Post a message with embeds {embeds} in lobby {lobby_id}.
PUT /lobbies/{lobby_id}/messages/{message_id}/moderation-metadata Update a lobby message's moderation metadata · Update lobby message external moderation metadata #
Ask an LLM
“How do I mark a lobby message as moderated externally?”
“Can I update the moderation metadata on a lobby message?”
Tell an agent
Update the external moderation metadata on message {message_id} in lobby {lobby_id}.
Set moderation metadata for lobby {lobby_id} message {message_id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/discord:discord-lobbies-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

discord-lobbies-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Discord HTTP API (Preview) Lobbies API
  description: Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details.
  termsOfService: https://discord.com/developers/docs/policies-and-agreements/developer-terms-of-service
  license:
    name: MIT
    identifier: MIT
  version: '10'
servers:
- url: https://discord.com/api/v10
tags:


# --- truncated at 32 KB (92 KB total) ---
# Full source: https://artifacts.apis.io/discord/openapi/discord-lobbies-api-openapi.yml