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 does | Route |
|---|---|
| The /crm command, for one app | POST /public/v1/apps/{key}/slack/commands |
| Slack’s events, for one app | POST /public/v1/apps/{key}/slack/events |
| Slack’s buttons, for one app | POST /public/v1/apps/{key}/slack/interactions |
The /crm command, for one app
Section titled “The /crm command, for one app”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
| Name | In | Description |
|---|---|---|
key (required) | path | The app’s public key (app_…). |
Answers
| Status | Body | Meaning |
|---|---|---|
| 200 | object | OK |
| 400 | problem | The request could not be read: the problem names the field. |
| 401 | problem | No credential, or one that is not right. |
| 413 | problem | Too large. |
| 429 | problem | Too many requests: wait for Retry-After. |
Slack’s events, for one app
Section titled “Slack’s events, for one app”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
| Name | In | Description |
|---|---|---|
key (required) | path | The app’s public key (app_…). |
Answers
| Status | Body | Meaning |
|---|---|---|
| 200 | object | OK |
| 400 | problem | The request could not be read: the problem names the field. |
| 401 | problem | No credential, or one that is not right. |
| 413 | problem | Too large. |
| 429 | problem | Too many requests: wait for Retry-After. |
Slack’s buttons, for one app
Section titled “Slack’s buttons, for one app”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
| Name | In | Description |
|---|---|---|
key (required) | path | The app’s public key (app_…). |
Answers