# Create Campaign

### Endpoint

**POST** `https://app.marketingblocks.ai/api/v1/boost-campaigns/create-campaign`

### Permission

`boost-create-campaign`

### Request Body Parameters

| Parameter            | Type    | Required | Description                                             |
| -------------------- | ------- | -------: | ------------------------------------------------------- |
| `social_post_id`     | integer |      Yes | The published social post to boost.                     |
| `name`               | string  |       No | Campaign name. If omitted, a default name is generated. |
| `boost_type`         | string  |       No | Optional boost type.                                    |
| `duration_type`      | string  |      Yes | Must be `daily_budget` or `lifetime_budget`.            |
| `budget`             | number  |      Yes | Campaign budget. Must be greater than `0`.              |
| `duration`           | integer |      Yes | Campaign duration in days. Minimum is `1`.              |
| `ad_account_id`      | string  |      Yes | Ad account ID to use for the boost campaign.            |
| `campaign_objective` | string  |       No | Campaign objective.                                     |
| `countries`          | array   |      Yes | Target countries. Must contain at least one value.      |
| `interests`          | array   |       No | Target ad interests.                                    |
| `audience`           | array   |       No | Optional audience payload.                              |

### Example Request

```bash
curl --location 'https://app.marketingblocks.ai/api/v1/boost-campaigns/create-campaign' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "social_post_id": 12345,
    "name": "My Boost Campaign",
    "duration_type": "daily_budget",
    "budget": 25,
    "duration": 7,
    "ad_account_id": "act_123456789",
    "campaign_objective": "REACH",
    "countries": ["US"],
    "interests": [
      { "id": "6003139266461", "name": "Baseball" }
    ],
    "audience": []
  }'
```

### Example Response

```json
{
  "campaigns": {
    "id": 101,
    "social_post_id": 12345,
    "name": "My Boost Campaign"
  },
  "message": "Your boost request is queued. You’ll get notified when it’s live!"
}
```

### Notes

* The social post must already be published.
* The post must belong to the authenticated token’s user/project context.
* TikTok campaigns are also queued, but may return a TikTok-specific success message.


---

# Agent Instructions: 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:

```
GET https://docs.marketingblocks.ai/agentic-ai-docs/api-reference/social-growth-engine/boost-campaign/create-campaign.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
