---
title: "Calculate the cost of a campaign"
method: GET
path: "/sms/campaigns/cost"
tags: ["Campaigns"]
---

# Calculate the cost of a campaign

`GET /sms/campaigns/cost`

## Request

- Base URL: `https://api.sendpulse.com`
- URL: `https://api.sendpulse.com/sms/campaigns/cost`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (client credentials, token URL `https://api.sendpulse.com/oauth/access_token`)

## Query parameters

- `addressBookId` integer
- `phones` string[]
- `body` string, required
- `sender` string, required
- `route` object

## Response `200`

Cost estimate

- object
  - `result` boolean
  - `data` object
    - `price` number
    - `currency` string

## Other responses

- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/sendpulse/apis/sendpulse-sms-api.md) · [All operations](https://skmtc.dev/sendpulse/apis/sendpulse-sms-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sendpulse/apis/sendpulse-sms-api/revisions/be75d9ca7784?raw)
