# POST /phone/a2p/campaign

**Resource:** [Phone](./phone.md)  
**MCP tool:** `replace_a2p_campaign`  
**Scopes:** `phone:write`  
**Write operation:** yes

Fix a US SMS campaign the carriers REJECTED (status campaign_failed) by editing it in place and sending it back for carrier review. FREE: no credits are charged, because the campaign is kept and the provider vets a campaign only once; it is never deleted and recreated. What an edit can change: description, message flow (how people opt in, with links and screenshots), sample messages, whether texts carry links or phone numbers, and the privacy and terms links. The use case and the opt-in, opt-out and help keywords and replies cannot change on a submitted campaign: send them as first submitted (or leave them out) or the call is refused with stage campaign-field-locked. Only a rejected campaign can be edited: one still in review is refused (stage campaign-in-review), and an approved or suspended campaign cannot be edited at all (stages campaign-approved, campaign-suspended; our team handles those through a service request). If the provider refuses the automatic edit (stage campaign-edit-refused), nothing is changed or charged, the corrected wording is kept, and a service request is filed for our team to resubmit it by hand at no cost (manual_request_id). On success: edited_in_place true, credits_charged 0, status pending_campaign, and carrier review starts again (days to weeks). If the first campaign was never created at all, this submits it, also free. Run check_a2p_registration first: this refuses a campaign with blockers (400, stage pre-check). Takes the same campaign object as register_a2p.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `campaign` | body | object | yes | How the workspace will actually use SMS. Required keys: privacy_policy_url and terms_and_conditions_url (both must be live, publicly reachable pages — they are read during review). Strongly recommended: message_samples (array of real message bodies you will send), message_flow (how people opt in, in plain words), description, opt_out_keywords / opt_out_message, opt_in_keywords / opt_in_message, help_keywords / help_message, has_embedded_links, has_embedded_phone, usecase. Thin or invented samples are a common rejection reason, so send the wording you really use. HOW PEOPLE OPT IN is where most campaigns are rejected, so these are checked before anything is sent: brand_name (the name people see in the texts, defaults to the workspace name), opt_in_methods (one or more of website_form, third_party_form (a LinkedIn, Facebook, Instagram, Google or TikTok lead form), private_form (in an app, behind a login, or not live yet), keyword, verbal, paper), opt_in_url (the public https page with the form, required for website_form), opt_in_proof_urls (public https links to screenshots or photos of the opt-in, REQUIRED for every method a reviewer cannot open: lead forms on social sites, forms behind a login, keywords, paper), opt_in_consent_text (the exact words next to the texting checkbox, or the full call script for verbal). The consent wording must be about texts ONLY (no email, calls or AI calls in the same checkbox) and must name the brand and include message frequency, "Msg & data rates may apply", Reply STOP, Reply HELP, and the Privacy Policy and Terms. The links and the consent wording are written into message_flow for the reviewers automatically. Run check_a2p_registration first. |
| `override_check` | body | boolean | no | Submit even though the pre-submission check found problems a carrier reviewer rejects. The call is refused (400, stage pre-check, with a findings list naming each field and its fix) while any remain. Only set this when a person has looked at a specific finding and confirmed it is wrong; a rejected campaign means another carrier review, which takes days. Defaults to false. |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/phone/a2p/campaign"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"campaign":"...","require_approval":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`