# `Twilio.Messaging.V1.Service.PreregisteredUsa2pService`
[🔗](https://github.com/jeffhuen/twilio_elixir/blob/main/lib/twilio/messaging/v1/service/preregistered_usa2p_service.ex#L2)

Resource to associate preregistered campaign with Messaging Service.

Operations: `create`

# `create`

```elixir
@spec create(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Messaging.V1.Service.PreregisteredUsa2p.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Operation: `CreateExternalCampaign` | Tags: MessagingV1ExternalCampaign

## Required Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `CampaignId` | string | ID of the preregistered campaign. |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `MessagingServiceSid` | string | The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with. |
## Optional Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `CnpMigration` | boolean | Customers should use this flag during the ERC registration process to indicate to Twilio that the campaign being registered is undergoing CNP migration. It is important for the user to first trigger the CNP migration process for said campaign in their CSP portal and have Twilio accept the sharing request, before making this api call. |

---

*Consult [api-reference.md](api-reference.md) for complete listing*
