Discord Users API

The Users API from Discord — 9 operation(s) for users.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 12

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 /users/@me Get my own Discord user profile · Get my user #
Ask an LLM
“What is my own Discord username and avatar?”
“Can I see my own user profile?”
Tell an agent
Show my own user profile.
Get the user record for the account I am logged in as.
PATCH /users/@me Update my own user profile · Update my user #
Ask an LLM
“How do I change my own Discord username?”
“Can I upload a new avatar for my own account?”
Tell an agent
Change my own username to {username}.
Set my own avatar to {avatar}.
GET /users/@me/applications/{application_id}/entitlements List my app entitlements · Get current user application entitlements #
Ask an LLM
“Which in-app purchases or subscriptions do I have?”
“Can I list entitlements for a specific app?”
Tell an agent
List my entitlements for app {application_id}.
Show entitlements for app {application_id} for SKUs {sku_ids}.
GET /users/@me/applications/{application_id}/role-connection Get my role connection for an app · Get application user role connection #
Ask an LLM
“What role connection do I have with a game or app?”
“Can I read my own role connection data for an app?”
Tell an agent
Get my role connection for app {application_id}.
Show the role connection data I have with app {application_id}.
PUT /users/@me/applications/{application_id}/role-connection Update my role connection for an app · Update application user role connection #
Ask an LLM
“How do I link my Discord account to a game account?”
“Can I change the platform username on my role connection?”
Tell an agent
Set my role connection for app {application_id} to platform {platform_name} with username {platform_username}.
Update my role connection for app {application_id} with metadata {metadata}.
DELETE /users/@me/applications/{application_id}/role-connection Remove my role connection for an app · Delete application user role connection #
Ask an LLM
“How do I unlink my Discord account from a game?”
“Can I delete my role connection for an app?”
Tell an agent destructive · confirm first
Delete my role connection for app {application_id}.
Unlink my Discord account from app {application_id}.
POST /users/@me/channels Open a direct message with someone · Create dm #
Ask an LLM
“How do I start a DM with a friend?”
“Can I create a direct message channel with a user ID?”
Tell an agent
Open a direct message with user {recipient_id}.
Create a DM with user {recipient_id} and set their nickname to {nicks}.
GET /users/@me/connections List my connected accounts · List my connections #
Ask an LLM
“Which social media accounts are connected to my Discord?”
“What connections do I have set up?”
Tell an agent
List all my connected accounts.
Show my linked social media accounts.
GET /users/@me/guilds List the guilds I belong to · List my guilds #
Ask an LLM
“Which Discord servers am I a member of?”
“Can I list my guilds with counts?”
Tell an agent
List the guilds I am in.
Show my guilds with counts set to {with_counts}.
DELETE /users/@me/guilds/{guild_id} Leave a guild · Leave guild #
Ask an LLM
“How do I leave a Discord server?”
“Can I leave a guild I no longer want to be in?”
Tell an agent destructive · confirm first
Leave guild {guild_id}.
Remove me from server {guild_id}.
GET /users/@me/guilds/{guild_id}/member Get my member record in a guild · Get my guild member #
Ask an LLM
“What is my nickname and roles in a guild?”
“Can I see my own member object in a server?”
Tell an agent
Get my member record in guild {guild_id}.
Show my nickname and roles in server {guild_id}.
GET /users/{user_id} Get another user's profile · Get user #
Ask an LLM
“How do I look up someone's Discord profile by ID?”
“Can I fetch a user's username and avatar without being friends?”
Tell an agent
Get user {user_id}'s profile.
Show the username and avatar of user {user_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-users-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-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Discord HTTP API (Preview) Users 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 (61 KB total) ---
# Full source: https://artifacts.apis.io/discord/openapi/discord-users-api-openapi.yml