Skip to content

Post through an incoming webhook

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

Needs the incoming-webhook permission on the app. The secret URL is the credential: send no token.

Posts text to the channel the webhook was made for, as the app. The body matches Slack’s, so existing tools work: without text, Slack’s attachments (pretext, title, text, fields) become the text.

Name In Required Meaning
token path yes string
Field Type Required Meaning
text string no Up to 8000 characters.
attachments array of object no Used only when text is missing.
Terminal window
curl -X POST "https://amedeus.app/api/public/apps/hooks/<secret>" \
-H 'Content-Type: application/json' \
-d '{}'
Field Type Required Meaning
ok true yes
id uuid yes
{
"ok": true,
"id": "52f4c823-8e7f-4349-bb98-1ac8683aad13"
}

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

  • 400: The request isn’t valid.
  • 404: The URL is wrong or was replaced.
  • 429: Slow down; Retry-After says for how many seconds.