Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request GET \ --url https://api.sendrealm.com/push/campaigns/{id}/audience-preview \ --header 'Authorization: Bearer <token>'
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.sendrealm.com/push/campaigns/{id}/audience-preview', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
import requests url = "https://api.sendrealm.com/push/campaigns/{id}/audience-preview" headers = {"Authorization": "Bearer <token>"} response = requests.get(url, headers=headers) print(response.text)
{ "status": 123, "data": { "reachable_devices": 123, "by_platform": [ { "platform": "<string>", "devices": 123 } ], "note": "<string>" } }
{ "status": 123, "error": { "code": "<string>", "message": "<string>", "details": "<string>", "issues": [ { "code": "<string>", "path": "<string>", "message": "<string>" } ] } }
Count reachable subscribed devices by platform without sending.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Reachable audience returned
HTTP response status code
Show child attributes