Notification
Get a specific notification
Get a specific notification
get/notification/{id}
Path parameters
idstring required
Example:1d9e80ef851d212aca82cf23
The notification's unique identifier.
Response
OK
Example response
{
"notification": {
"_id": "1d9e80ef851d212aca82cf23",
"application": "1d9e80ef851d212aca82cf23",
"subject": "Hello world",
"sender": {
"address": "massimo",
"name": "Massimo Gondoliere"
},
"criteria": {
"locationsCriteria": [
{
"locations": [
{
"coordinates": [
[
[
4.23456,
52.184884
],
[
5.23456,
50.184884
],
[
4.23456,
52.184884
]
]
]
}
]
}
],
"propertiesCriteria": [
[
{
"property": "platform"
}
]
],
"segmentsCriteria": [
{
"segments": [
"1d9e80ef851d212aca82cf23"
]
}
],
"tagsCriteria": [
{
"tags": [
"tag_test"
]
}
]
},
"eventCriteria": {
"data": {
"region": "1d9e80ef851d212aca82cf23",
"fence": "1d9e80ef851d212aca82cf23",
"pass": "1d9e80ef851d212aca82cf23",
"group": "1d9e80ef851d212aca82cf23",
"scannable": "1d9e80ef851d212aca82cf23",
"notification": "1d9e80ef851d212aca82cf23"
}
},
"location": {
"distance": 100,
"latitude": 52.17747,
"longitude": 4.1235
},
"segments": [
"1d9e80ef851d212aca82cf23"
],
"tags": [
"tag1"
],
"deviceID": "APA91bEpai_9PbfvVie3xvVnM2VXZEjQ1ZZIFiRzXf",
"rate": 100,
"languages": [
"nl",
"pt"
],
"localizedContent": [
{
"actions": [
{
"type": "re.notifica.action.Callback",
"label": "Yes",
"rules": [
{
"params": [
"1d9e80ef851d212aca82cf23"
]
}
]
}
],
"attachments": [
{
"mimeType": "image/jpeg",
"name": "Test Attachment",
"uri": "https://domain.com/image"
}
],
"content": [
{
"type": "re.notifica.content.HTML",
"data": "<h1>Hello</h1>"
}
],
"message": "Test Message",
"subject": "Test Subject",
"subtitle": "Test Subtitle",
"title": "Test Title"
}
],
"type": "re.notifica.notification.Alert",
"title": "Hello world",
"subtitle": "Hello world",
"message": "Hello world",
"content": [
{
"type": "re.notifica.content.HTML",
"data": "<h1>Hello</h1>"
}
],
"attachments": [
{
"mimeType": "image/jpeg",
"name": "Test Attachment",
"uri": "https://domain.com/image"
}
],
"ttl": 3600,
"rules": [
{
"params": [
"1d9e80ef851d212aca82cf23"
]
}
],
"actionCategory": "My Template",
"actions": [
{
"type": "re.notifica.action.Callback",
"label": "Yes",
"rules": [
{
"params": [
"1d9e80ef851d212aca82cf23"
]
}
]
}
],
"extra": {
"key1": "value1",
"key2": "value2"
},
"sound": "default",
"lights": {
"color": "red",
"off": 500,
"on": 1000
},
"channel": "important",
"badge": 1,
"group": "personal"
}
}