Docs·Notifications
GET
/api/v1/spreelytics/integrationsList integrations
Returns the Slack and Discord channels your team has connected, newest first. Put their IDs in a rule's integrationIds to post its notifications there. You connect a channel in the app, under Integrations.
Keys: an account key or an audience key
Parameters
| Prop | In | Type | Notes |
|---|---|---|---|
contactListId? | query | string | Optional. Any audience in the team. The list is the same for every audience. |
Response
An array of IntegrationDto.
| Prop | Type | Notes |
|---|---|---|
id | string | The integration ID. |
type | IntegrationTypeDto | slack or discord. |
name | string | The name shown in the app, such as #launches · Acme. |
urlHost | string | The host it posts to. The full webhook URL is never returned. |
createdAt | string | When it was connected. |
updatedAt | string | When it last changed. |
Request
curl 'https://app.spreelytics.com/api/v1/spreelytics/integrations' \
-H 'Authorization: Bearer YOUR_API_KEY'
const res = await fetch('https://app.spreelytics.com/api/v1/spreelytics/integrations', {
headers: { Authorization: 'Bearer YOUR_API_KEY' },
});
const data = await res.json();
import requests
res = requests.get(
"https://app.spreelytics.com/api/v1/spreelytics/integrations",
headers={"Authorization": "Bearer YOUR_API_KEY"},
)
data = res.json()
Response
[
{
"id": "string",
"type": "slack",
"name": "string",
"urlHost": "string",
"createdAt": "string",
"updatedAt": "string"
}
]