View Push Campaign
View push campaign details.
API Key Authentication
Authentication is required in order to interact with Batch's APIs.
Batch implements authentication using API Keys, that we call the "REST API Key". You can find it on your dashboard.
Please make sure that you keep this key secret. You should never use it in client apps to call APIs from there as it would easily be extractable.
How to authenticate
In order to authenticate your requests, add your REST API Key in the Authorization header and prefix it by Bearer. Example: Authorization: Bearer bcd38d9rfb38ra28.
The id of the push campaign to fetch.
orchestration_0664hyh918hr1gnzka9py5t62nrc0e1qThe unique project key, identifying a project on the Batch platform
project_0664hxvwffvbpn278gxdyhsadddqgna6Successful response with details about a push campaign.
Detailed configuration for a push campaign orchestration.
Unique identifier for the push campaign.
orchestration_0664hyh918hr1gnzka9py5t62nrc0e1qType of orchestration.
campaignPossible values: Name of the orchestration.
Soldes d'étéCurrent status of the orchestration.
runningPossible values: Source of the orchestration creation.
dashboardPossible values: Labels associated with the orchestration.
["LABEL1","LABEL2"]Date and time when the push campaign was created.
2026-03-18T09:15:00ZDate and time when the push campaign was last updated.
2026-04-12T16:40:00ZDate and time when the orchestration starts.
2026-04-20T14:00:00ZThe Rest API Key is not valid for this project
The provided id resolves to an orchestration that is not a push campaign.
The provided orchestration id does not match any orchestration.
Too Many Requests
Unexpected error
Batch's services are under maintenance. Please try again later
GET /2.13/orchestrations/view?orchestration_id=text HTTP/1.1
Host: api.batch.com
Authorization: Bearer YOUR_SECRET_TOKEN
X-Batch-Project: text
Accept: */*
{
"id": "orchestration_0664hyh918hr1gnzka9py5t62nrc0e1q",
"type": "campaign",
"name": "Soldes d'été",
"status": "running",
"source": "dashboard",
"labels": [
"LABEL1",
"LABEL2"
],
"created_date": "2026-03-18T09:15:00Z",
"updated_date": "2026-04-12T16:40:00Z",
"start_time": "2026-04-20T14:00:00Z",
"channels": [
"push"
],
"platforms": [
"ios",
"android",
"web"
],
"targeting": {
"languages": [
"fr"
],
"regions": [
"FR"
],
"query": {
"firstname": {
"$eq": "Jane"
}
}
},
"messages": [
{
"push_content": {
"title": "The campaign title",
"body": "The campaign body",
"media": {
"picture": "https://example.com/picture.png"
},
"ios": {
"deeplink": "https://example.com/ios",
"custom_payload": "{\"tag\": \"wake up push\", \"landing_screen\": \"greeting\"}"
},
"android": {
"deeplink": "https://example.com/android",
"custom_payload": "{\"tag\": \"wake up push\", \"landing_screen\": \"greeting\"}",
"media": {
"icon": "https://example.com/android/icon.png"
},
"collapse_key": {
"enabled": true,
"key": "default"
}
},
"web": {
"deeplink": "https://example.com/web",
"media": {
"icon": "https://example.com/web/icon.png"
}
}
}
}
]
}Rate limiting
Request structure
Route
The orchestration API exposes a GET endpoint that allows you to export message details for a specific Push Campaign. This includes information such as targeting query, push content, mobile landing keys.
/orchestrations/view
Headers and authentication
Query parameters
See the API Description.
Responses
Success
A successful GET request to this endpoint will return an HTTP 200 OK response. The body of the response will contain a JSON object with the details for the requested orchestration.
Response Body
The main JSON object contains the following fields:
id(string): The unique identifier of the push campaign for which details are being returned.messages(array): An array of objects, where each object contains the push content. This can include:Variant Detail for A/B tested orchestrations.
Multi-language Detail.
Failure
If the GET data does not meet the API requirements you will receive an actionable error message. Contact us at support@batch.com if you need further support.
See the list of potential failures in the API Description.
Last updated

