> For the complete documentation index, see [llms.txt](https://doc.batch.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.batch.com/developer/technical-guides/how-to-guides/backend/how-to-connect-batch-to-my-cms.md).

# How to connect Batch to my CMS?

You can connect your CMS to Batch to send push notifications using the [Campaigns API](/developer/api/cep/campaigns.md). It gives you the same level of features as the Batch dashboard:

* **Targeting**: Basic, native and custom attributes targeting
* **Scheduling**: Scheduled and recurring push automations
* **Messaging**: A/B testing, deeplink, custom payload, rich push notifications, etc.

Here is what a basic **Campaigns API + CMS** setup looks like:

<figure><img src="/files/YJ1hpoxvIXqnZ0c5A1fi" alt=""><figcaption></figcaption></figure>

With the Batch APIs, you can:

* [**Create**](https://doc.batch.com/developer/api/cep/campaigns/create)**,** [**update**](https://doc.batch.com/developer/api/cep/campaigns/update)**, or** [**delete**](https://doc.batch.com/developer/api/cep/campaigns/delete) an existing push campaign. If the POST to the API endpoint is successful, you will receive an HTTP 201 confirmation with an orchestration ID. Each time you send a push notification, Batch receives feedback from APNS/FCM and cleans the invalid tokens for you.&#x20;
* **Get reports on your campaigns:**
  * Use the Batch Orchestrations API to [list orchestrations](/developer/api/cep/orchestrations/list.md) and [get orchestrations stats](/developer/api/cep/orchestrations/stats.md)
  * Use the Batch Export API to [generate granular Events exports](/developer/api/cep/profiles/export.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc.batch.com/developer/technical-guides/how-to-guides/backend/how-to-connect-batch-to-my-cms.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
