Send a single-device push test
curl --request POST \
--url https://api.sendrealm.com/push/test-notifications \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"app_id": "<string>",
"device_id": "<string>",
"campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"body": "<string>",
"image_url": "<string>",
"launch_url": "<string>",
"channel_id": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
app_id: '<string>',
device_id: '<string>',
campaign_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
body: JSON.stringify('<string>'),
image_url: '<string>',
launch_url: '<string>',
channel_id: '<string>'
})
};
fetch('https://api.sendrealm.com/push/test-notifications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sendrealm.com/push/test-notifications"
payload = {
"app_id": "<string>",
"device_id": "<string>",
"campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"body": "<string>",
"image_url": "<string>",
"launch_url": "<string>",
"channel_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": 123,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"device_id": "<string>",
"queued": true
}
}{
"status": 123,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>",
"issues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>"
}
]
}
}{
"status": 123,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>",
"issues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>"
}
]
}
}{
"status": 123,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>",
"issues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>"
}
]
}
}Push Notifications
Push Tests
Send one real push test to one selected device and inspect its trace.
POST
/
push
/
test-notifications
Send a single-device push test
curl --request POST \
--url https://api.sendrealm.com/push/test-notifications \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"app_id": "<string>",
"device_id": "<string>",
"campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"body": "<string>",
"image_url": "<string>",
"launch_url": "<string>",
"channel_id": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
app_id: '<string>',
device_id: '<string>',
campaign_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
body: JSON.stringify('<string>'),
image_url: '<string>',
launch_url: '<string>',
channel_id: '<string>'
})
};
fetch('https://api.sendrealm.com/push/test-notifications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sendrealm.com/push/test-notifications"
payload = {
"app_id": "<string>",
"device_id": "<string>",
"campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"body": "<string>",
"image_url": "<string>",
"launch_url": "<string>",
"channel_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": 123,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"device_id": "<string>",
"queued": true
}
}{
"status": 123,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>",
"issues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>"
}
]
}
}{
"status": 123,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>",
"issues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>"
}
]
}
}{
"status": 123,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>",
"issues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>"
}
]
}
}Endpoints
POST /push/test-notificationsGET /push/test-notifications/:id
{
"app_id": "push_app_public_id",
"device_id": "device_installation_id",
"title": "SendRealm test",
"body": "Push registration is working"
}
campaign_id. The API clones
the draft into a test-only delivery and still targets only the selected device.
Poll the returned test ID until a notification record appears. Inspect its
provider and client events before treating the integration as successful.
Provider acceptance alone does not prove that the OS displayed a notification.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Public push app ID or app resource ID.
One device ID returned by the push device list.
Optional saved push campaign draft to test.
Maximum string length:
120Maximum string length:
240Maximum string length:
2048Maximum string length:
80