POST
/
integration
curl --request POST \
  --url https://api.alerty.ai/integration \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "type": "SLACK",
  "class": "NOTIFICATION",
  "configuration": {
    "teamId": "<string>",
    "accessToken": "<string>",
    "incomingWebhookURL": "<string>",
    "channelID": "<string>"
  }
}'
{
  "id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "type": "SLACK",
  "class": "NOTIFICATION",
  "configuration": {
    "teamId": "<string>",
    "accessToken": "<string>",
    "incomingWebhookURL": "<string>",
    "channelID": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

the integration information

id
string
required

Unique identifier for the entity

createdAt
string
required
updatedAt
string
required
type
enum<string>
required

the integration type

Available options:
SLACK,
PAGERDUTY,
EMAIL
class
enum<string>
required

the integration class

Available options:
NOTIFICATION,
CLOUD_PROVIDER
configuration
object
required

the slack integration configuration

Response

201
application/json
Integration created

the integration information

id
string
required

Unique identifier for the entity

createdAt
string
required
updatedAt
string
required
type
enum<string>
required

the integration type

Available options:
SLACK,
PAGERDUTY,
EMAIL
class
enum<string>
required

the integration class

Available options:
NOTIFICATION,
CLOUD_PROVIDER
configuration
object
required

the slack integration configuration