Skip to content

Public routes: Slack hooks

Where the Slack app an app connected posts its events, buttons and the /crm command, signed with its signing secret.

What it doesRoute
The /crm command, for one appPOST /public/v1/apps/{key}/slack/commands
Slack’s events, for one appPOST /public/v1/apps/{key}/slack/events
Slack’s buttons, for one appPOST /public/v1/apps/{key}/slack/interactions

POST /public/v1/apps/{key}/slack/commands

Looks a contact up by email, your id for them or a conversation’s id, for a teammate alone. Signed as the events are.

Needs: nothing: no credential.

Parameters

NameInDescription
key (required)pathThe app’s public key (app_…).

Answers

StatusBodyMeaning
200objectOK
400problemThe request could not be read: the problem names the field.
401problemNo credential, or one that is not right.
413problemToo large.
429problemToo many requests: wait for Retry-After.

POST /public/v1/apps/{key}/slack/events

The Events API address of the Slack app the app connected: its address check, and a teammate’s message in a conversation’s thread, which becomes their reply. Signed X-Slack-Signature with the Slack app’s signing secret.

Needs: nothing: no credential.

Parameters

NameInDescription
key (required)pathThe app’s public key (app_…).

Answers

StatusBodyMeaning
200objectOK
400problemThe request could not be read: the problem names the field.
401problemNo credential, or one that is not right.
413problemToo large.
429problemToo many requests: wait for Retry-After.

POST /public/v1/apps/{key}/slack/interactions

The Slack app’s interactivity address: a conversation’s Close button. Signed as the events are.

Needs: nothing: no credential.

Parameters

NameInDescription
key (required)pathThe app’s public key (app_…).

Answers

StatusBodyMeaning
200noneOK
400problemThe request could not be read: the problem names the field.
401problemNo credential, or one that is not right.
413problemToo large.
429problemToo many requests: wait for Retry-After.