curl --request GET \
--url https://alerts-api.dial.to/v2/history \
--header 'Authorization: Bearer <token>' \
--header 'X-Dialect-Client-Key: <x-dialect-client-key>'{
"alerts": [
{
"id": "<string>",
"timestamp": "2024-02-20T15:30:00.000Z",
"title": "<string>",
"body": "<string>",
"image": "https://www.dialect.to/favicon.ico",
"actions": [
{
"type": "<string>",
"label": "<string>",
"url": "<string>",
"context": {
"type": "<string>",
"apiUrl": "<string>",
"action": "<string>"
}
}
],
"topic": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Product Announcements",
"slug": "product-announcements"
},
"app": {
"id": "255d6163-7e25-43e9-a188-c2f8d0980a4a",
"name": "Dialect",
"icon": "https://dialect-file-storage.s3.us-west-2.amazonaws.com/avatars/dialect-logo.png"
},
"data": {
"type": "transaction",
"transactionId": "123",
"amount": "100"
}
}
],
"summary": {
"unreadCount": 5,
"lastRead": {
"timestamp": "2024-02-20T15:30:00.000Z"
}
},
"limit": 10,
"cursor": "<string>"
}Retrieve user’s alert history with pagination, filtering by app, and detailed notification metadata
curl --request GET \
--url https://alerts-api.dial.to/v2/history \
--header 'Authorization: Bearer <token>' \
--header 'X-Dialect-Client-Key: <x-dialect-client-key>'{
"alerts": [
{
"id": "<string>",
"timestamp": "2024-02-20T15:30:00.000Z",
"title": "<string>",
"body": "<string>",
"image": "https://www.dialect.to/favicon.ico",
"actions": [
{
"type": "<string>",
"label": "<string>",
"url": "<string>",
"context": {
"type": "<string>",
"apiUrl": "<string>",
"action": "<string>"
}
}
],
"topic": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Product Announcements",
"slug": "product-announcements"
},
"app": {
"id": "255d6163-7e25-43e9-a188-c2f8d0980a4a",
"name": "Dialect",
"icon": "https://dialect-file-storage.s3.us-west-2.amazonaws.com/avatars/dialect-logo.png"
},
"data": {
"type": "transaction",
"transactionId": "123",
"amount": "100"
}
}
],
"summary": {
"unreadCount": 5,
"lastRead": {
"timestamp": "2024-02-20T15:30:00.000Z"
}
},
"limit": 10,
"cursor": "<string>"
}Bearer token authentication for subscriber calls
Client Key used to uniquely identify the client
"dk_gyh2eqzfkc4mhp5eiahnndkz"
Application ID
"255d6163-7e25-43e9-a188-c2f8d0980a4a"
Pagination limit
1 <= x <= 2010
Pagination cursor
Notification history retrieved with detailed alert data
Show child attributes
Id uniquely identifying alerts
ISO Timestamp
"2024-02-20T15:30:00.000Z"
1 - 1001 - 500Image URL
"https://www.dialect.to/favicon.ico"
Show child attributes
"link"1 - 501Show child attributes
Topic ID
1"123e4567-e89b-12d3-a456-426614174000"
Topic name
1"Product Announcements"
Topic slug
1"product-announcements"
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"
Additional data to be sent with the alert. For push notifications, this data will be available in the notification payload and can be used by the app to handle the notification. Common use cases include deep linking, custom actions, or passing context to the app.
Show child attributes
1 - 500{
"type": "transaction",
"transactionId": "123",
"amount": "100"
}Pagination limit
1 <= x <= 2010
Pagination cursor
Was this page helpful?