---
title: "One-step set-up of an alert channel"
url: https://xovris.ai/docs/api/operations/postalertschannelsonestep/
---

# One-step set-up of an alert channel

`POST /v1/alerts/channels/one-step`

Needs a token that can read and change. A token without change access is refused with `token_read_only` and the step to take.

## Request body

### `application/json`

One of:
- 1
  - `kind` (string ("email"), required)
  - `address` (string, required)
- 2
  - `kind` (string ("teams", "discord"), required)
  - `url` (string, required)
  - `name` (string)
- 3
  - `kind` (string ("webhook"), required)
  - `url` (string, required)
  - `name` (string)
  - `secret` (string)
- 4
  - `kind` (string ("ntfy"), required)
  - `server` (string, required)
  - `topic` (string, required)
- 5
  - `kind` (string ("telegram"), required)
  - `chatId` (string, required)
  - `title` (string)
- 6
  - `kind` (string ("pagerduty"), required)
  - `region` (string ("us", "eu"), required)
  - `secret` (string, required)
  - `service` (string)
- 7
  - `kind` (string ("jsm"), required)
  - `secret` (string, required)
  - `team` (string)
- 8
  - `kind` (string ("incident_io"), required)
  - `apiKey` (string)
  - `sourceId` (string)
  - `secret` (string)
  - `name` (string)
- 9
  - `kind` (string ("rootly"), required)
  - `apiKey` (string)
  - `secret` (string)
  - `name` (string)
- 10
  - `kind` (string ("apprise"), required)
  - `server` (string, required)
  - `secret` (string, required)
  - `services` (string[])
- 11
  - `kind` (string ("voice", "sms"), required)
  - `phone` (string, required)
  - `country` (string, required)
- 12
  - `kind` (string ("met"), required)
  - `connectionId` (string, required)
  - `service` (string, required)
  - `to` (string | null)

Example:

```json
{
  "kind": "email",
  "address": "string"
}
```

## Answers

- `201`: Done: something new was made, and the answer is it. (application/json: Td721c52402e0)
- `401`: Not signed in: the token is missing, expired or revoked. The answer says how to get a new one. (application/json: Problem)
- `403`: Signed in, but this token or role may not do this. The answer names the permission it needs. (application/json: Problem)
- `404`: Nothing with that id here, or it belongs to another workspace. Nothing was changed. (application/json: Problem)
- `default`: Any other refusal or failure. The answer says what happened and what to do next. (application/json: Problem)

## A call

The address is https://api.xovris.ai/v1/alerts/channels/one-step - put your own value in place of each part in braces.

```sh
curl --request POST \
  --url 'https://api.xovris.ai/v1/alerts/channels/one-step' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{"kind":"email","address":"string"}'
```
