curl --request GET \
--url https://alerts-api.dial.to/v2/channels \
--header 'Authorization: Bearer <token>' \
--header 'X-Dialect-Client-Key: <x-dialect-client-key>'{
"EMAIL": {
"id": "<string>",
"type": "EMAIL",
"value": "<string>",
"verified": true,
"subscribed": true,
"subscribedApps": [
{
"id": "255d6163-7e25-43e9-a188-c2f8d0980a4a",
"name": "Dialect",
"icon": "https://dialect-file-storage.s3.us-west-2.amazonaws.com/avatars/dialect-logo.png"
}
]
},
"TELEGRAM": {
"id": "<string>",
"type": "EMAIL",
"value": "<string>",
"verified": true,
"subscribed": true,
"subscribedApps": [
{
"id": "255d6163-7e25-43e9-a188-c2f8d0980a4a",
"name": "Dialect",
"icon": "https://dialect-file-storage.s3.us-west-2.amazonaws.com/avatars/dialect-logo.png"
}
]
}
}Get user’s channels and channel subscriptions
curl --request GET \
--url https://alerts-api.dial.to/v2/channels \
--header 'Authorization: Bearer <token>' \
--header 'X-Dialect-Client-Key: <x-dialect-client-key>'{
"EMAIL": {
"id": "<string>",
"type": "EMAIL",
"value": "<string>",
"verified": true,
"subscribed": true,
"subscribedApps": [
{
"id": "255d6163-7e25-43e9-a188-c2f8d0980a4a",
"name": "Dialect",
"icon": "https://dialect-file-storage.s3.us-west-2.amazonaws.com/avatars/dialect-logo.png"
}
]
},
"TELEGRAM": {
"id": "<string>",
"type": "EMAIL",
"value": "<string>",
"verified": true,
"subscribed": true,
"subscribedApps": [
{
"id": "255d6163-7e25-43e9-a188-c2f8d0980a4a",
"name": "Dialect",
"icon": "https://dialect-file-storage.s3.us-west-2.amazonaws.com/avatars/dialect-logo.png"
}
]
}
}Bearer token authentication for subscriber calls
Client Key used to uniquely identify the client
"dk_gyh2eqzfkc4mhp5eiahnndkz"
User channels retrieved successfully
Show child attributes
EMAIL, TELEGRAM Show child attributes
Application ID
"255d6163-7e25-43e9-a188-c2f8d0980a4a"
Application name
1"Dialect"
Icon URL
"https://dialect-file-storage.s3.us-west-2.amazonaws.com/avatars/dialect-logo.png"
Show child attributes
EMAIL, TELEGRAM Show child attributes
Application ID
"255d6163-7e25-43e9-a188-c2f8d0980a4a"
Application name
1"Dialect"
Icon URL
"https://dialect-file-storage.s3.us-west-2.amazonaws.com/avatars/dialect-logo.png"
Was this page helpful?