Discord Invites API

The Invites API from Discord — 3 operation(s) for invites.

GitHub OpenAPI

Operations 9

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

GET /invites/{code} Look up a public invite · Invite resolve #
Ask an LLM
“How do I see which server a public invite code leads to?”
“Can I check how many people are in a server before joining it?”
Tell an agent
Resolve invite {code}.
Look up invite {code} and include member counts.
DELETE /invites/{code} Revoke a public invite · Invite revoke #
Ask an LLM
“How do I revoke a public invite so it stops working?”
“Can I remove a server invite I created?”
Tell an agent destructive · confirm first
Revoke invite {code}.
Delete the public invite {code}.
GET /invites/{code}/target-users List users a targeted invite targets · Get invite target users #
Ask an LLM
“Which users is a targeted invite currently set to target?”
“Can I see the target user list on an invite?”
Tell an agent
List the target users of invite {code}.
Show who invite {code} is targeting.
PUT /invites/{code}/target-users Replace the users a targeted invite targets · Update invite target users #
Ask an LLM
“How do I overwrite the target user list on an invite?”
“Can I replace every targeted user on an invite at once?”
Tell an agent
Replace the target users of invite {code} with {target_users_file}.
Overwrite invite {code}'s target user list using {target_users_file}.
POST /invites/{code}/target-users/bulk-add Add many users to an invite's target list · Bulk add invite target users #
Ask an LLM
“How do I add several users to an invite at once?”
“Can I bulk target new users on an existing invite?”
Tell an agent
Bulk add users {user_ids} to invite {code}.
Target {user_ids} on invite {code} in one request.
POST /invites/{code}/target-users/bulk-delete Remove many users from an invite's target list · Bulk remove invite target users #
Ask an LLM
“How do I stop targeting several users on an invite?”
“Can I bulk untarget users from an invite?”
Tell an agent destructive · confirm first
Bulk remove users {user_ids} from invite {code}.
Untarget {user_ids} on invite {code}.
GET /invites/{code}/target-users/job-status Check a bulk target user job · Get invite target users job status #
Ask an LLM
“Has the bulk target user job on my invite finished?”
“Where do I check the status of a bulk-targeted invite update?”
Tell an agent
Get the target users job status for invite {code}.
Check whether bulk targeting on invite {code} succeeded.
PUT /invites/{code}/target-users/{user_id} Target one user on an invite · Add invite target user #
Ask an LLM
“How do I add a single user to an invite's target list?”
“Can I target one person on an existing invite?”
Tell an agent
Target user {user_id} on invite {code}.
Add {user_id} to the target list of invite {code}.
DELETE /invites/{code}/target-users/{user_id} Untarget one user on an invite · Remove invite target user #
Ask an LLM
“How do I stop targeting a user on an invite?”
“Can I remove one person from an invite's target list?”
Tell an agent destructive · confirm first
Untarget user {user_id} on invite {code}.
Remove {user_id} from the target list of invite {code}.

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-invites-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-invites-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Discord HTTP API (Preview) Invites 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 (71 KB total) ---
# Full source: https://artifacts.apis.io/discord/openapi/discord-invites-api-openapi.yml