---
title: "POST phoneNumberAttachedToCampaign"
method: POST
path: "phoneNumberAttachedToCampaign"
---

# POST phoneNumberAttachedToCampaign

`POST phoneNumberAttachedToCampaign` (webhook)

The `phone_number.attached_to_campaign` event is delivered whenever a phone number is attached to a campaign.

## Payload

- PhoneNumberAttachedToCampaignEvent
  - `account_id` string, required — The ID of the account in which this event occurred
  - `data` object, required — The data associated with the event
    - `campaign` PhoneNumberCampaign, required — Campaign attachment details for a domestic local phone number
      - `attachment_status` 'attached' | 'attachment_pending' | 'detached' | 'detachment_pending', required — The current campaign attachment status for this phone number.
      - `id` string, required — The unique identifier of the campaign this phone number is attached to
    - `campaign_id` string, required — Deprecated. The unique identifier of the campaign this phone number is attached to
    - `id` string, required — The unique identifier for the phone number
    - `name` string, nullable, required — A human-readable name for the phone number
    - `number` string, required — The phone number in E.164 format
    - `type` 'local' | 'short_code' | 'toll_free', required — Whether the phone number is local, toll-free, or short code
  - `timestamp` string, date-time, required — The timestamp when this event occurred, in ISO8601 format
  - `type` 'phone_number.attached_to_campaign', required — The type of the event. Always `phone_number.attached_to_campaign` for this event.

## Acknowledgement `200`

Return a 200 status to indicate that the data was received successfully

---

[API](https://skmtc.net/surgeapi/apis/surge.md) · [All operations](https://skmtc.net/surgeapi/apis/surge/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/surgeapi/surge/revisions/b5b0b6f62245/schema)
