Skip to main content
POST
/
v1
/
users
/
me
/
notifications
/
channels
Create a notification channel
curl --request POST \
  --url http://localhost:8080/v1/users/me/notifications/channels \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "channel_type": "email",
  "name": "<string>",
  "config": {}
}
'
{
  "id": "unc_cq1234567890abcdef",
  "user_id": "<string>",
  "channel_type": "email",
  "name": "<string>",
  "config": {},
  "is_verified": true,
  "is_active": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Merchant API key: ak_live_... or ak_test_...

Body

application/json
channel_type
enum<string>
required
Available options:
email,
slack,
teams
name
string
required
config
object

Channel-specific config (e.g., {address} for email, {webhook_url} for Slack/Teams)

Response

Channel created

id
string
Example:

"unc_cq1234567890abcdef"

user_id
string
channel_type
enum<string>
Available options:
email,
slack,
teams
name
string
config
object
is_verified
boolean
is_active
boolean
created_at
string<date-time>
updated_at
string<date-time>