Ask for a single Slack button response
POST
/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/interactions
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/example/ai/slack-bots/example/interactions';const options = { method: 'POST', headers: { 'Idempotency-Key': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"channel":"example","threadTs":"example","text":"example","actions":[{"id":"example","label":"example","style":"primary"}],"responseMode":"single","expiresInSeconds":3600,"allowedUsers":["example"],"metadata":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://dashboard.quantcdn.io/api/v3/organizations/example/ai/slack-bots/example/interactions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: example' \ --data '{ "channel": "example", "threadTs": "example", "text": "example", "actions": [ { "id": "example", "label": "example", "style": "primary" } ], "responseMode": "single", "expiresInSeconds": 3600, "allowedUsers": [ "example" ], "metadata": {} }'External-agent interaction, not a platform tool approval. Requires explicit ai:slack, verified email and use_ai_services. The caller owns the meaning of the response. Feature must be enabled on this environment.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”organisation
required
string
botId
required
string
Header Parameters
Section titled “Header Parameters”Idempotency-Key
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
channel
required
string
threadTs
string
text
required
string
actions
required
Array<object>
object
id
required
string
label
required
string
style
string
responseMode
string
expiresInSeconds
integer
allowedUsers
Array<string>
metadata
Opaque caller data, at most 4096 bytes of canonical JSON
object
Responses
Section titled “Responses”Card delivered; interaction awaits a response
Read returned interactionId to obtain delivery or recorded response state
Invalid request
Access denied
Idempotency key reused with a different request
Audit persistence unavailable; retry with the same key
