dispatchPushCampaign
curl --request POST \
--url https://galinum.com/api/v1/campaigns/{id}/push/dispatch \
--header 'Authorization: Bearer <token>'import requests
url = "https://galinum.com/api/v1/campaigns/{id}/push/dispatch"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://galinum.com/api/v1/campaigns/{id}/push/dispatch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://galinum.com/api/v1/campaigns/{id}/push/dispatch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://galinum.com/api/v1/campaigns/{id}/push/dispatch"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://galinum.com/api/v1/campaigns/{id}/push/dispatch")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://galinum.com/api/v1/campaigns/{id}/push/dispatch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"targets": [
{
"id": "<string>",
"campaignId": "<string>",
"deliveryId": "<string>",
"userId": "<string>",
"externalId": "<string>",
"installationId": "<string>",
"credentialId": "<string>",
"campaignFingerprint": "<string>",
"bindingGeneration": 4503599627370495,
"tokenRevision": 4503599627370495,
"credentialRevision": 4503599627370495,
"expiresAt": 4503599627370495,
"createdAt": 4503599627370495,
"createdOrder": 4503599627370495,
"content": {
"title": "<string>",
"body": "<string>",
"destination": {
"kind": "website",
"url": "<string>"
},
"data": {},
"image": "<string>",
"actions": [
{
"id": "<string>",
"title": "<string>"
}
],
"ios": {
"subtitle": "<string>",
"sound": "<string>",
"badge": 4503599627370495,
"categoryId": "<string>"
},
"android": {
"channelId": "<string>",
"sound": "<string>"
}
},
"replacementKey": "<string>",
"test": true,
"slotId": "<string>",
"generation": 4503599627370495,
"replacesTargetId": "<string>"
}
],
"attempts": [
{
"id": "<string>",
"campaignId": "<string>",
"targetId": "<string>",
"ordinal": 4503599627370495,
"startedAt": 4503599627370495,
"slotId": "<string>",
"slotRevision": 4503599627370495,
"validUntil": 4503599627370495
}
],
"outcomes": [
{
"id": "<string>",
"campaignId": "<string>",
"attemptId": "<string>",
"targetId": "<string>",
"observedAt": 4503599627370495,
"result": {
"kind": "accepted",
"providerId": "<string>",
"code": "<string>",
"retryAfterMs": 4503599627370495
},
"slotId": "<string>",
"submission": "none"
}
],
"observations": [
{
"id": "<string>",
"campaignId": "<string>",
"installationId": "<string>",
"userId": "<string>",
"digest": "<string>",
"bindingGeneration": 4503599627370495,
"sequence": 4503599627370495,
"order": 4503599627370495,
"receivedAt": 4503599627370495,
"command": {
"id": "<string>",
"sequence": 4503599627370496,
"kind": "receipt",
"targetId": "<string>",
"attemptId": "<string>"
},
"slotId": "<string>"
}
],
"conversions": [
{
"id": "<string>",
"campaignId": "<string>",
"deliveryId": "<string>",
"userId": "<string>",
"eventId": "<string>",
"engagementId": "<string>",
"order": 4503599627370495,
"convertedAt": 4503599627370495
}
],
"users": {
"targeted": 4503599627370495,
"accepted": 4503599627370495,
"engaged": 4503599627370495,
"converted": 4503599627370495
},
"devices": {
"targeted": 4503599627370495,
"attempts": 4503599627370495,
"accepted": 4503599627370495,
"receiptObserved": 4503599627370495,
"receiptUnknown": 4503599627370495,
"confirmedSubmissions": 4503599627370495,
"possibleSubmissions": 4503599627370495,
"preSendBlocks": 4503599627370495,
"pendingOutcomes": 4503599627370495,
"waiting": 4503599627370495
},
"testTargets": 4503599627370495,
"page": 2,
"perPage": 50,
"evaluatedAt": 4503599627370495,
"records": {
"targets": 4503599627370495,
"attempts": 4503599627370495,
"outcomes": 4503599627370495,
"observations": 4503599627370495,
"conversions": 4503599627370495,
"recipients": 4503599627370495,
"slots": 4503599627370495
},
"pageCounts": {
"targets": 4503599627370495,
"attempts": 4503599627370495,
"outcomes": 4503599627370495,
"observations": 4503599627370495,
"conversions": 4503599627370495,
"recipients": 4503599627370495,
"slots": 4503599627370495
},
"recipients": [
{
"id": "<string>",
"campaignId": "<string>",
"userId": "<string>",
"externalId": "<string>",
"variantId": "<string>",
"deliveryId": "<string>",
"state": {
"kind": "active"
},
"test": true
}
],
"slots": [
{
"id": "<string>",
"recipientId": "<string>",
"campaignId": "<string>",
"userId": "<string>",
"installationId": "<string>",
"targetId": "<string>",
"generation": 4503599627370495,
"revision": 4503599627370495,
"sequence": 4503599627370495,
"submissionsUsed": 4503599627370495,
"expiresAt": 4503599627370495,
"uncertain": true,
"authRefreshRevision": 123,
"state": {
"kind": "ready",
"at": 4503599627370495
},
"test": true,
"submissionNotBefore": 1,
"repair": {
"kind": "credential",
"credentialRevision": 4503599627370496
}
}
],
"planning": {
"waiting": 4503599627370495,
"active": 4503599627370495,
"closed": 4503599627370495
}
}Push
dispatchPushCampaign
POST
/
api
/
v1
/
campaigns
/
{id}
/
push
/
dispatch
dispatchPushCampaign
curl --request POST \
--url https://galinum.com/api/v1/campaigns/{id}/push/dispatch \
--header 'Authorization: Bearer <token>'import requests
url = "https://galinum.com/api/v1/campaigns/{id}/push/dispatch"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://galinum.com/api/v1/campaigns/{id}/push/dispatch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://galinum.com/api/v1/campaigns/{id}/push/dispatch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://galinum.com/api/v1/campaigns/{id}/push/dispatch"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://galinum.com/api/v1/campaigns/{id}/push/dispatch")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://galinum.com/api/v1/campaigns/{id}/push/dispatch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"targets": [
{
"id": "<string>",
"campaignId": "<string>",
"deliveryId": "<string>",
"userId": "<string>",
"externalId": "<string>",
"installationId": "<string>",
"credentialId": "<string>",
"campaignFingerprint": "<string>",
"bindingGeneration": 4503599627370495,
"tokenRevision": 4503599627370495,
"credentialRevision": 4503599627370495,
"expiresAt": 4503599627370495,
"createdAt": 4503599627370495,
"createdOrder": 4503599627370495,
"content": {
"title": "<string>",
"body": "<string>",
"destination": {
"kind": "website",
"url": "<string>"
},
"data": {},
"image": "<string>",
"actions": [
{
"id": "<string>",
"title": "<string>"
}
],
"ios": {
"subtitle": "<string>",
"sound": "<string>",
"badge": 4503599627370495,
"categoryId": "<string>"
},
"android": {
"channelId": "<string>",
"sound": "<string>"
}
},
"replacementKey": "<string>",
"test": true,
"slotId": "<string>",
"generation": 4503599627370495,
"replacesTargetId": "<string>"
}
],
"attempts": [
{
"id": "<string>",
"campaignId": "<string>",
"targetId": "<string>",
"ordinal": 4503599627370495,
"startedAt": 4503599627370495,
"slotId": "<string>",
"slotRevision": 4503599627370495,
"validUntil": 4503599627370495
}
],
"outcomes": [
{
"id": "<string>",
"campaignId": "<string>",
"attemptId": "<string>",
"targetId": "<string>",
"observedAt": 4503599627370495,
"result": {
"kind": "accepted",
"providerId": "<string>",
"code": "<string>",
"retryAfterMs": 4503599627370495
},
"slotId": "<string>",
"submission": "none"
}
],
"observations": [
{
"id": "<string>",
"campaignId": "<string>",
"installationId": "<string>",
"userId": "<string>",
"digest": "<string>",
"bindingGeneration": 4503599627370495,
"sequence": 4503599627370495,
"order": 4503599627370495,
"receivedAt": 4503599627370495,
"command": {
"id": "<string>",
"sequence": 4503599627370496,
"kind": "receipt",
"targetId": "<string>",
"attemptId": "<string>"
},
"slotId": "<string>"
}
],
"conversions": [
{
"id": "<string>",
"campaignId": "<string>",
"deliveryId": "<string>",
"userId": "<string>",
"eventId": "<string>",
"engagementId": "<string>",
"order": 4503599627370495,
"convertedAt": 4503599627370495
}
],
"users": {
"targeted": 4503599627370495,
"accepted": 4503599627370495,
"engaged": 4503599627370495,
"converted": 4503599627370495
},
"devices": {
"targeted": 4503599627370495,
"attempts": 4503599627370495,
"accepted": 4503599627370495,
"receiptObserved": 4503599627370495,
"receiptUnknown": 4503599627370495,
"confirmedSubmissions": 4503599627370495,
"possibleSubmissions": 4503599627370495,
"preSendBlocks": 4503599627370495,
"pendingOutcomes": 4503599627370495,
"waiting": 4503599627370495
},
"testTargets": 4503599627370495,
"page": 2,
"perPage": 50,
"evaluatedAt": 4503599627370495,
"records": {
"targets": 4503599627370495,
"attempts": 4503599627370495,
"outcomes": 4503599627370495,
"observations": 4503599627370495,
"conversions": 4503599627370495,
"recipients": 4503599627370495,
"slots": 4503599627370495
},
"pageCounts": {
"targets": 4503599627370495,
"attempts": 4503599627370495,
"outcomes": 4503599627370495,
"observations": 4503599627370495,
"conversions": 4503599627370495,
"recipients": 4503599627370495,
"slots": 4503599627370495
},
"recipients": [
{
"id": "<string>",
"campaignId": "<string>",
"userId": "<string>",
"externalId": "<string>",
"variantId": "<string>",
"deliveryId": "<string>",
"state": {
"kind": "active"
},
"test": true
}
],
"slots": [
{
"id": "<string>",
"recipientId": "<string>",
"campaignId": "<string>",
"userId": "<string>",
"installationId": "<string>",
"targetId": "<string>",
"generation": 4503599627370495,
"revision": 4503599627370495,
"sequence": 4503599627370495,
"submissionsUsed": 4503599627370495,
"expiresAt": 4503599627370495,
"uncertain": true,
"authRefreshRevision": 123,
"state": {
"kind": "ready",
"at": 4503599627370495
},
"test": true,
"submissionNotBefore": 1,
"repair": {
"kind": "credential",
"credentialRevision": 4503599627370496
}
}
],
"planning": {
"waiting": 4503599627370495,
"active": 4503599627370495,
"closed": 4503599627370495
}
}Authorizations
Your project's secret key (pk_…, without the pub segment). Server-side only — never ship it to a browser. Get it from Settings → Projects in the dashboard.
Path Parameters
Required string length:
1 - 128Response
Successful operation. Acceptance is distinct from device receipt.
Maximum array length:
100Show child attributes
Show child attributes
Maximum array length:
100Show child attributes
Show child attributes
Maximum array length:
100Show child attributes
Show child attributes
Maximum array length:
100Show child attributes
Show child attributes
Maximum array length:
100Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Required range:
0 <= x <= 9007199254740991Required range:
x >= 1Required range:
1 <= x <= 100Required range:
0 <= x <= 9007199254740991Show child attributes
Show child attributes
Show child attributes
Show child attributes
Maximum array length:
100Show child attributes
Show child attributes
Maximum array length:
100Show child attributes
Show child attributes
Show child attributes
Show child attributes