---
title: "Create campaign"
method: POST
path: "/messenger/1/campaigns"
tags: ["channels", "messenger", "campaigns-messenger"]
---

# Create campaign

`POST /messenger/1/campaigns`

## Request

- Base URL: `https://api.infobip.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infobip.com/messenger/1/campaigns`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.infobip.com/auth/1/oauth2/token`
  - API key in header `Authorization`
  - API key in header `Authorization`
  - HTTP basic

Create a new Facebook Messenger marketing campaign to send marketing messages to opted-in users. The campaign is associated with your ad account and Facebook page.

## Request body

- Cc99cb7b0e48638be90df2dee94fb1aaadb95bcd09a6944a79bd00ca6a59df77CampaignRequest
  - `name` string, required: Campaign name.
  - `dailyBudget` integer: Daily budget for the campaign in cents. At least one of `dailyBudget` or `lifetimeBudget` must be provided.
  - `lifetimeBudget` integer: Lifetime budget for the campaign in cents. At least one of `dailyBudget` or `lifetimeBudget` must be provided.
  - `adAccountId` string, required: Facebook ad account ID associated with the campaign.
  - `pageId` string, required: Facebook page ID associated with the campaign.

## Response `201`

Campaign created successfully.

- Cc99cb7b0e48638be90df2dee94fb1aaadb95bcd09a6944a79bd00ca6a59df77CampaignResponse
  - `id` string: Unique campaign ID.
  - `name` string: Campaign name.
  - `adAccountId` string: Facebook ad account ID associated with the campaign.
  - `pageId` string: Facebook page ID associated with the campaign.

## Other responses

- `400`: Bad Request.
- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/infobip/apis/infobip-openapi-specification.md) - [All operations](https://skmtc.dev/infobip/apis/infobip-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/infobip/apis/infobip-openapi-specification/revisions/9dcbbaf902de?raw)
