VXIL
Interactions

Acknowledge Interaction

Acknowledge and resolve a button click

When to use this

Confirm you processed a button click and optionally update the message.

Endpoint

POST /api/bot/v1/interactions/{interactionId}/ack

Auth

Authorization: Bot YOUR_BOT_TOKEN

Request Body

FieldTypeRequiredNotes
type`"deferred""update_message""new_message"`
contentstringNoFor new_message or update_message
componentsMessageComponent[]NoOptional replacement buttons

Response

FieldTypeDescription
okbooleanAck accepted
request_idstringTrace ID

Errors

StatusReason
400Invalid ack payload
401Invalid token
404Interaction not found/expired
409Interaction already acknowledged
429Rate limited

cURL

curl -X POST https://api.vxil.io/api/bot/v1/interactions/int_123/ack \
  -H "Authorization: Bot YOUR_BOT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"type":"update_message","content":"Vote recorded"}'

TypeScript

await fetch("https://api.vxil.io/api/bot/v1/interactions/int_123/ack", {
  method: "POST",
  headers: {
    "Authorization": `Bot ${process.env.VXIL_BOT_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ type: "update_message", content: "Vote recorded" }),
});

Retry behavior

Treat 409 as terminal; the interaction was already resolved.

On this page