API reference
Interactions
Answering buttons, menus and slash commands, and follow-ups.
Create Interaction Response
/interactions/{interaction.id}/{interaction.token}/callbackNo sign-in neededAnswer an interaction within 3 seconds. The token in the address is the credential: send no Authorization.
The person's request is held until you answer. Types: 4 a message (public, or only for the person with flags: 64), 5 "I'll answer later" (follow-ups come after), 6 nothing to show (a button press acknowledged), 7 change the message the button is on, 8 the choices of an autocomplete (up to 25 for a command's option, 12 for the player's search), 9 a form to fill in (a modal: see Buttons and interactions). Replies are at most 2000 characters (messages sent with Create Message take 4000).
?with_response=true (or 1, which is what discord.py sends) answers 200 with Discord's InteractionCallbackResponse instead of 204. The body may also be multipart/form-data with payload_json and files[n], for types 4 and 7. Answering twice is 400 40060; after 3 seconds the person sees "The bot didn't respond" and a late answer is 404 10062. Interactions are kept in memory, so they need a single tether process.
Who can call it
- No sign-in is needed (url-token).
Path parameters
interaction.id- The interaction's
id. interaction.token- The interaction's
token, fromINTERACTION_CREATE. It lapses after 15 minutes.
Query string
with_response"0" | "1" | "true" | "false"trueor1to get the response object instead of204.
Body
application/json, multipart/form-data
{
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 4
},
"data": {
"type": "object",
"properties": {
"content": {
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "null"
}
]
},
"embeds": {
"maxItems": 10,
"type": "array",
"items": {}
},
"components": {
"maxItems": 100,
"type": "array",
"items": {}
},
"flags": {
"type": "integer",
"minimum": 0
},
"attachments": {
"maxItems": 20,
"type": "array",
"items": {}
}
}
}
},
"required": [
"type",
"data"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 5
},
"data": {
"type": "object",
"properties": {
"flags": {
"type": "integer",
"minimum": 0
}
}
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 6
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 7
},
"data": {
"type": "object",
"properties": {
"content": {
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "null"
}
]
},
"embeds": {
"maxItems": 10,
"type": "array",
"items": {}
},
"components": {
"maxItems": 100,
"type": "array",
"items": {}
},
"flags": {
"type": "integer",
"minimum": 0
},
"attachments": {
"maxItems": 20,
"type": "array",
"items": {}
}
}
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 9
},
"data": {
"type": "object",
"properties": {
"custom_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 45
},
"components": {
"minItems": 1,
"maxItems": 5,
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 18
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 45
},
"description": {
"type": "string",
"maxLength": 100
},
"component": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 4
},
"custom_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"style": {
"anyOf": [
{
"type": "number",
"const": 1
},
{
"type": "number",
"const": 2
}
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 45
},
"min_length": {
"type": "integer",
"minimum": 0,
"maximum": 4000
},
"max_length": {
"type": "integer",
"minimum": 1,
"maximum": 4000
},
"required": {
"type": "boolean"
},
"value": {
"type": "string",
"maxLength": 4000
},
"placeholder": {
"type": "string",
"maxLength": 100
}
},
"required": [
"type",
"custom_id",
"style"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 3
},
"custom_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"placeholder": {
"type": "string",
"maxLength": 150
},
"min_values": {
"type": "integer",
"minimum": 0,
"maximum": 25
},
"max_values": {
"type": "integer",
"minimum": 1,
"maximum": 25
},
"required": {
"type": "boolean"
},
"options": {
"minItems": 1,
"maxItems": 25,
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"default": {
"type": "boolean"
}
},
"required": [
"label",
"value"
]
}
}
},
"required": [
"type",
"custom_id",
"options"
]
},
{
"type": "object",
"properties": {
"type": {
"anyOf": [
{
"type": "number",
"const": 5
},
{
"type": "number",
"const": 6
},
{
"type": "number",
"const": 7
},
{
"type": "number",
"const": 8
}
]
},
"custom_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"placeholder": {
"type": "string",
"maxLength": 150
},
"min_values": {
"type": "integer",
"minimum": 0,
"maximum": 25
},
"max_values": {
"type": "integer",
"minimum": 1,
"maximum": 25
},
"required": {
"type": "boolean"
},
"default_values": {
"maxItems": 25,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"user",
"role",
"channel"
]
}
},
"required": [
"id",
"type"
]
}
},
"channel_types": {
"maxItems": 20,
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 20
}
}
},
"required": [
"type",
"custom_id"
]
}
]
}
},
"required": [
"type",
"label",
"component"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 1
},
"components": {
"minItems": 1,
"maxItems": 1,
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 4
},
"custom_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"style": {
"anyOf": [
{
"type": "number",
"const": 1
},
{
"type": "number",
"const": 2
}
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 45
},
"min_length": {
"type": "integer",
"minimum": 0,
"maximum": 4000
},
"max_length": {
"type": "integer",
"minimum": 1,
"maximum": 4000
},
"required": {
"type": "boolean"
},
"value": {
"type": "string",
"maxLength": 4000
},
"placeholder": {
"type": "string",
"maxLength": 100
}
},
"required": [
"type",
"custom_id",
"style"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 3
},
"custom_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"placeholder": {
"type": "string",
"maxLength": 150
},
"min_values": {
"type": "integer",
"minimum": 0,
"maximum": 25
},
"max_values": {
"type": "integer",
"minimum": 1,
"maximum": 25
},
"required": {
"type": "boolean"
},
"options": {
"minItems": 1,
"maxItems": 25,
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"default": {
"type": "boolean"
}
},
"required": [
"label",
"value"
]
}
}
},
"required": [
"type",
"custom_id",
"options"
]
}
]
}
}
},
"required": [
"type",
"components"
]
}
]
}
}
},
"required": [
"custom_id",
"title",
"components"
]
}
},
"required": [
"type",
"data"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 8
},
"data": {
"type": "object",
"properties": {
"choices": {
"maxItems": 25,
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"value": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 100
},
{
"type": "number"
}
]
},
"artist": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"art": {
"type": "string",
"maxLength": 2048,
"format": "uri"
},
"duration_ms": {
"type": "integer",
"minimum": 0,
"maximum": 86400000
}
},
"required": [
"name",
"value"
]
}
}
},
"required": [
"choices"
]
}
},
"required": [
"type",
"data"
]
}
]
}
Example request
{
"type": 4,
"data": {
"content": "Pong!"
}
}
Response
204 APIInteractionCallbackResponse
204 with no body; 200 with this object when with_response is on.
{
"interaction": {
"id": "107441200000000800",
"type": 2,
"activity_instance_id": null,
"response_message_id": "107441200000000101",
"response_message_loading": false,
"response_message_ephemeral": false
},
"resource": {
"type": 4,
"message": {
"id": "107441200000000101",
"channel_id": "107441200000000010",
"guild_id": "107441200000000001",
"author": {
"id": "107441200000000300",
"username": "groove",
"discriminator": "0",
"global_name": null,
"avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
"banner": null,
"accent_color": null,
"bot": true,
"public_flags": 0
},
"content": "Done.",
"timestamp": "2026-10-22T10:00:00.000Z",
"edited_timestamp": null,
"tts": false,
"mention_everyone": false,
"mentions": [],
"mention_roles": [],
"attachments": [],
"embeds": [],
"pinned": false,
"flags": 0,
"type": 0
}
}
}
Errors
UNKNOWN_INTERACTION10062 · HTTP 404- There is no such interaction, it has lapsed (15 minutes), or the 3 seconds are over.
INTERACTION_ALREADY_ACKNOWLEDGED40060 · HTTP 400- The interaction was answered already.
INVALID_FORM_BODY50035 · HTTP 400- A field is outside its limits, an embed or button is malformed, or the callback type does not fit the interaction.
BOT_DID_NOT_RESPOND90210 · HTTP 504- What the person sees when you are late (not an answer to you).
Rate limits
interactionCallbackbucket cd19ed2b- 10 per 10 seconds, counted per target (shared by everyone). See Rate limits.
Gateway events it causes
Discord
Like Discord’s Create Interaction Response, with differences.
No activities, and a modal takes text inputs and single-choice menus only. Replies are 2000 characters at most.
Create Followup Message
/webhooks/{application.id}/{interaction.token}No sign-in neededSend another message for an interaction you have answered. Up to 5, for up to 15 minutes.
flags: 64 makes it private to the person who pressed. Also multipart/form-data with files (not for private messages). No Authorization is needed.
Who can call it
- No sign-in is needed (url-token).
Path parameters
application.id- Your bot's id.
interaction.token- The interaction's
token, fromINTERACTION_CREATE. It lapses after 15 minutes.
Body
application/json, multipart/form-data
contentstring | null · max 2000 charactersembedsarray of any · max 10 itemscomponentsarray of any · max 100 itemsflagsinteger · min 0attachmentsarray of any · max 20 items
Example request
{
"content": "Done."
}
Response
200 APIMessage
{
"id": "107441200000000101",
"channel_id": "107441200000000010",
"guild_id": "107441200000000001",
"author": {
"id": "107441200000000300",
"username": "groove",
"discriminator": "0",
"global_name": null,
"avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
"banner": null,
"accent_color": null,
"bot": true,
"public_flags": 0
},
"content": "Done.",
"timestamp": "2026-10-22T10:00:00.000Z",
"edited_timestamp": null,
"tts": false,
"mention_everyone": false,
"mentions": [],
"mention_roles": [],
"attachments": [],
"embeds": [],
"pinned": false,
"flags": 0,
"type": 0
}
Errors
UNKNOWN_INTERACTION10062 · HTTP 404- There is no such interaction, it has lapsed (15 minutes), or the 3 seconds are over.
INTERACTION_NOT_ACKNOWLEDGED90211 · HTTP 400- Answer the interaction first.
INVALID_FORM_BODY50035 · HTTP 400- The 5 follow-ups are used up, or a field is outside its limits.
Rate limits
interactionFollowupbucket 23964a29- 10 per 10 seconds, counted per target (shared by everyone). See Rate limits.
interactionFollowupPerBotbucket 9559e4ed- 50 per 10 seconds, counted per user. See Rate limits.
Gateway events it causes
Discord
Like Discord’s Create Followup Message, with differences.
At most 5; a private message cannot have files yet.
Get Original Interaction Response
/webhooks/{application.id}/{interaction.token}/messages/@originalNo sign-in neededRead back the message your answer made, or the one the button is on.
discord.js's interaction.fetchReply() and discord.py's interaction.original_response(). Also takes the id a follow-up answered with (…/messages/{message.id}: Get Followup Message). Private messages can be read too. Any other message id is Unknown Message: the token opens the messages of its own interaction only.
Who can call it
- No sign-in is needed (url-token).
Path parameters
application.id- Your bot's id.
interaction.token- The interaction's
token, fromINTERACTION_CREATE. It lapses after 15 minutes.
Response
200 APIMessage
{
"id": "107441200000000101",
"channel_id": "107441200000000010",
"guild_id": "107441200000000001",
"author": {
"id": "107441200000000300",
"username": "groove",
"discriminator": "0",
"global_name": null,
"avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
"banner": null,
"accent_color": null,
"bot": true,
"public_flags": 0
},
"content": "Pong, edited",
"timestamp": "2026-10-22T10:00:00.000Z",
"edited_timestamp": "2026-10-22T10:05:00.000Z",
"tts": false,
"mention_everyone": false,
"mentions": [],
"mention_roles": [],
"attachments": [],
"embeds": [],
"pinned": false,
"flags": 0,
"type": 0
}
Errors
UNKNOWN_INTERACTION10062 · HTTP 404- There is no such interaction, it has lapsed (15 minutes), or the 3 seconds are over.
INTERACTION_NOT_ACKNOWLEDGED90211 · HTTP 400- Answer the interaction first.
UNKNOWN_MESSAGE10008 · HTTP 404- There is no such message in that channel.
Rate limits
interactionFollowupbucket 23964a29- 10 per 10 seconds, counted per target (shared by everyone). See Rate limits.
interactionFollowupPerBotbucket 9559e4ed- 50 per 10 seconds, counted per user. See Rate limits.
Discord
The same as Discord’s Get Original Interaction Response.
Edit Original Interaction Response
/webhooks/{application.id}/{interaction.token}/messages/@originalNo sign-in neededChange the message your answer made, or the one the button is on.
Also takes the id a follow-up answered with (…/messages/{message.id}: Edit Followup Message), and works on private messages (the person sees the change at once). Any other message id is Unknown Message. After a deferred answer (type 5) to a slash command nothing was drawn while the bot thought, so the first edit makes the message (public, or private if the deferral was).
Who can call it
- No sign-in is needed (url-token).
Path parameters
application.id- Your bot's id.
interaction.token- The interaction's
token, fromINTERACTION_CREATE. It lapses after 15 minutes.
Body
application/json, multipart/form-data
contentstring | null · max 2000 charactersembedsarray of any · max 10 itemscomponentsarray of any · max 100 itemsflagsinteger · min 0attachmentsarray of any · max 20 items
Example request
{
"content": "Done, edited."
}
Response
200 APIMessage
{
"id": "107441200000000101",
"channel_id": "107441200000000010",
"guild_id": "107441200000000001",
"author": {
"id": "107441200000000300",
"username": "groove",
"discriminator": "0",
"global_name": null,
"avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
"banner": null,
"accent_color": null,
"bot": true,
"public_flags": 0
},
"content": "Pong, edited",
"timestamp": "2026-10-22T10:00:00.000Z",
"edited_timestamp": "2026-10-22T10:05:00.000Z",
"tts": false,
"mention_everyone": false,
"mentions": [],
"mention_roles": [],
"attachments": [],
"embeds": [],
"pinned": false,
"flags": 0,
"type": 0
}
Errors
UNKNOWN_INTERACTION10062 · HTTP 404- There is no such interaction, it has lapsed (15 minutes), or the 3 seconds are over.
INTERACTION_NOT_ACKNOWLEDGED90211 · HTTP 400- Answer the interaction first.
INVALID_FORM_BODY50035 · HTTP 400- A field is outside its limits, an embed or button is malformed, or the callback type does not fit the interaction.
UNKNOWN_MESSAGE10008 · HTTP 404- There is no such message in that channel.
Rate limits
interactionFollowupbucket 23964a29- 10 per 10 seconds, counted per target (shared by everyone). See Rate limits.
interactionFollowupPerBotbucket 9559e4ed- 50 per 10 seconds, counted per user. See Rate limits.
Gateway events it causes
Discord
The same as Discord’s Edit Original Interaction Response.
Delete Original Interaction Response
/webhooks/{application.id}/{interaction.token}/messages/@originalNo sign-in neededDelete the message your answer made, or the one the button is on.
Also takes the id a follow-up answered with (…/messages/{message.id}: Delete Followup Message), and works on private messages.
Who can call it
- No sign-in is needed (url-token).
Path parameters
application.id- Your bot's id.
interaction.token- The interaction's
token, fromINTERACTION_CREATE. It lapses after 15 minutes.
Response
204 no body
Errors
UNKNOWN_INTERACTION10062 · HTTP 404- There is no such interaction, it has lapsed (15 minutes), or the 3 seconds are over.
INTERACTION_NOT_ACKNOWLEDGED90211 · HTTP 400- Answer the interaction first.
UNKNOWN_MESSAGE10008 · HTTP 404- There is no such message in that channel.
Rate limits
interactionFollowupbucket 23964a29- 10 per 10 seconds, counted per target (shared by everyone). See Rate limits.
interactionFollowupPerBotbucket 9559e4ed- 50 per 10 seconds, counted per user. See Rate limits.
Gateway events it causes
Discord
The same as Discord’s Delete Original Interaction Response.
Press a Button or Run a Command (as a person)
/interactionsPeople onlyWhat tether's clients send when a person presses a button, picks from a menu, or runs a / command. The bot receives INTERACTION_CREATE.
People only. The body depends on type: 3 a component press (below), 2 a command run (name, options), 4 autocomplete while typing in a command option, 5 a form. It is here so you can test a bot with a script: sign in as a person, press, and watch your bot get the interaction. The answer is 204, or 200 with Discord's interaction response when there is one (a private reply).
Body
application/json
{
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 3
},
"guild_id": {
"type": "string"
},
"channel_id": {
"type": "string"
},
"message_id": {
"type": "string"
},
"player": {
"type": "object",
"properties": {
"channel_id": {
"type": "string"
},
"bot_id": {
"type": "string"
}
},
"required": [
"channel_id"
]
},
"message_flags": {
"type": "integer",
"minimum": 0
},
"data": {
"oneOf": [
{
"type": "object",
"properties": {
"component_type": {
"type": "number",
"const": 2
},
"custom_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
},
"required": [
"component_type",
"custom_id"
]
},
{
"type": "object",
"properties": {
"component_type": {
"type": "number",
"const": 3
},
"custom_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"values": {
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
"required": [
"component_type",
"custom_id",
"values"
]
},
{
"type": "object",
"properties": {
"component_type": {
"type": "number",
"const": 5
},
"custom_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"values": {
"maxItems": 25,
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"component_type",
"custom_id",
"values"
]
},
{
"type": "object",
"properties": {
"component_type": {
"type": "number",
"const": 6
},
"custom_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"values": {
"maxItems": 25,
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"component_type",
"custom_id",
"values"
]
},
{
"type": "object",
"properties": {
"component_type": {
"type": "number",
"const": 7
},
"custom_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"values": {
"maxItems": 25,
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"component_type",
"custom_id",
"values"
]
},
{
"type": "object",
"properties": {
"component_type": {
"type": "number",
"const": 8
},
"custom_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"values": {
"maxItems": 25,
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"component_type",
"custom_id",
"values"
]
}
]
},
"nonce": {
"anyOf": [
{
"type": "string",
"maxLength": 64
},
{
"type": "number"
}
]
}
},
"required": [
"type",
"channel_id",
"data"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 2
},
"guild_id": {
"type": "string"
},
"channel_id": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"type": {
"default": 1,
"anyOf": [
{
"type": "number",
"const": 1
},
{
"type": "number",
"const": 2
},
{
"type": "number",
"const": 3
}
]
},
"options": {
"default": [],
"maxItems": 25,
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
"target_id": {
"type": "string"
}
},
"required": [
"id",
"name"
]
},
"nonce": {
"anyOf": [
{
"type": "string",
"maxLength": 64
},
{
"type": "number"
}
]
}
},
"required": [
"type",
"guild_id",
"channel_id",
"data"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 4
},
"guild_id": {
"type": "string"
},
"channel_id": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"type": {
"default": 1,
"type": "number",
"const": 1
},
"options": {
"default": [],
"maxItems": 25,
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
}
},
"required": [
"id",
"name"
]
},
"nonce": {
"anyOf": [
{
"type": "string",
"maxLength": 64
},
{
"type": "number"
}
]
}
},
"required": [
"type",
"guild_id",
"channel_id",
"data"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 5
},
"guild_id": {
"type": "string"
},
"channel_id": {
"type": "string"
},
"message_id": {
"type": "string"
},
"player": {
"type": "object",
"properties": {
"channel_id": {
"type": "string"
},
"bot_id": {
"type": "string"
}
},
"required": [
"channel_id"
]
},
"tether_form_id": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"data": {
"type": "object",
"properties": {
"custom_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"components": {
"maxItems": 5,
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 18
},
"component": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 4
},
"custom_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"value": {
"type": "string",
"maxLength": 4000
}
},
"required": [
"type",
"custom_id",
"value"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 3
},
"custom_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"values": {
"maxItems": 25,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
"required": [
"type",
"custom_id",
"values"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 5
},
"custom_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"values": {
"maxItems": 25,
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"type",
"custom_id",
"values"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 6
},
"custom_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"values": {
"maxItems": 25,
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"type",
"custom_id",
"values"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 7
},
"custom_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"values": {
"maxItems": 25,
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"type",
"custom_id",
"values"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "number",
"const": 8
},
"custom_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"values": {
"maxItems": 25,
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"type",
"custom_id",
"values"
]
}
]
}
},
"required": [
"type",
"component"
]
}
}
},
"required": [
"custom_id",
"components"
]
},
"nonce": {
"anyOf": [
{
"type": "string",
"maxLength": 64
},
{
"type": "number"
}
]
}
},
"required": [
"type",
"channel_id",
"data"
]
}
],
"$defs": {
"__schema0": {
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[-_\\p{L}\\p{N}\\p{sc=Deva}\\p{sc=Thai}]{1,32}$"
},
"type": {
"type": "integer",
"minimum": 1,
"maximum": 11
},
"value": {
"anyOf": [
{
"type": "string",
"maxLength": 4000
},
{
"type": "number"
},
{
"type": "boolean"
}
]
},
"options": {
"maxItems": 25,
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
"focused": {
"type": "boolean"
}
},
"required": [
"name",
"type"
]
}
}
}
Example request
{
"type": 3,
"guild_id": "107441200000000001",
"channel_id": "107441200000000010",
"message_id": "107441200000000101",
"data": {
"component_type": 2,
"custom_id": "poll:vote:1"
}
}
Response
204 no body
200 with an interaction response when there is one.
Errors
UNKNOWN_INTERACTION10062 · HTTP 400- The message has no such button or menu.
BOT_DID_NOT_RESPOND90210 · HTTP 504- The bot did not answer within 3 seconds.
BOTS_CANNOT_USE_ENDPOINT20001 · HTTP 403- A bot token was used on a route for people.
Discord
Like Discord’s Interaction (client), with differences.
Discord's client route; only people send it.