interactions_create_response
Sends the initial response to a Discord interaction within its 3-second deadline; use deferred replies when more time is needed.
Instructions
Purpose: Send the initial response to an interaction (slash command, button, modal submit, etc.).
3-SECOND DEADLINE: Discord rejects this response if not received within 3 seconds of the interaction event. If you need more time, respond with type=5 (DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE) and follow up via interactions_edit_original_response or interactions_create_followup.
Auth: token-secured; no bot token. The initial callback may be sent once. Its interaction token remains a scoped continuation credential for follow-ups for up to 15 minutes, unless the initial 3-second deadline is missed.
INTERACTION_RESPONSE_TYPE values: 1=PONG, 4=CHANNEL_MESSAGE_WITH_SOURCE, 5=DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE, 6=DEFERRED_UPDATE_MESSAGE, 7=UPDATE_MESSAGE, 8=APPLICATION_COMMAND_AUTOCOMPLETE_RESULT, 9=MODAL, 10=PREMIUM_REQUIRED (deprecated), 12=LAUNCH_ACTIVITY.
Returns: {acknowledged:true} (or {message:…} when with_response:true).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"interaction_id": "<interaction_id>",
"interaction_token": "<interaction_token>",
"type": "<type>"
},
"name": "interactions_create_response"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Response payload - shape depends on `type`. Message body for type=4; modal for type=9. | |
| type | Yes | INTERACTION_RESPONSE_TYPE (1=PONG, 4=MESSAGE, 5=DEFER, 9=MODAL, 10=PREMIUM, 12=ACTIVITY) | |
| with_response | No | When true, server returns the resulting message body. Query param. | |
| interaction_id | Yes | Interaction ID (snowflake) - from the interaction event | |
| interaction_token | Yes | Scoped interaction credential, reusable for follow-ups for up to 15 minutes. Treat as a credential. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||