Skip to content

Answer a slash command

Markdown
POST /api/public/apps/responses/{token}

Needs the commands permission on the app. The secret URL is the credential: send no token.

Posts the app’s answer to the person who ran the command: privately by default, or in the channel as the app with response_type: in_channel. The URL comes in the command’s response_url, works for 30 minutes and up to 5 times, and needs no token.

Name In Required Meaning
token path yes string
Field Type Required Meaning
text string yes Markdown. Up to 8000 characters.
response_type ephemeral or in_channel no
Terminal window
curl -X POST "https://amedeus.app/api/public/apps/responses/<secret>" \
-H 'Content-Type: application/json' \
-d '{"text":"…"}'
Field Type Required Meaning
ok true yes
{
"ok": true
}

Failures answer { "ok": false, "error": "<code>", "message": "…" }; see Errors.

  • 400: The request isn’t valid.
  • 403: A missing scope (the message names it), or a channel the app isn’t in.
  • 404: The URL is wrong or has expired.
  • 429: Slow down; Retry-After says for how many seconds.