Skip to main content

Assign Messaging Profile To Campaign

POST 

/phoneNumberAssignmentByProfile

This endpoint allows you to link all phone numbers associated with a Messaging Profile to a campaign. Please note: if you want to assign phone numbers to a campaign that you did not create with Telnyx 10DLC services, this endpoint allows that provided that you've shared the campaign with Telnyx. In this case, only provide the parameter, tcrCampaignId, and not campaignId. In all other cases (where the campaign you're assigning was created with Telnyx 10DLC services), only provide campaignId, not tcrCampaignId.

Request

Body

required

    messagingProfileId Messagingprofileidrequired

    The ID of the messaging profile that you want to link to the specified campaign.

    tcrCampaignId Tcrcampaignid

    The TCR ID of the shared campaign you want to link to the specified messaging profile (for campaigns not created using Telnyx 10DLC services only). If you supply this ID in the request, do not also include a campaignId.

    campaignId Campaignid

    The ID of the campaign you want to link to the specified messaging profile. If you supply this ID in the request, do not also include a tcrCampaignId.

Responses

202: Successful Response

Schema

    anyOf

    messagingProfileId Messagingprofileidrequired

    The ID of the messaging profile that you want to link to the specified campaign.

    tcrCampaignId Tcrcampaignid

    The TCR ID of the shared campaign you want to link to the specified messaging profile (for campaigns not created using Telnyx 10DLC services only). If you supply this ID in the request, do not also include a campaignId.

    campaignId Campaignid

    The ID of the campaign you want to link to the specified messaging profile. If you supply this ID in the request, do not also include a tcrCampaignId.

    taskId Taskidrequired

    The ID of the task associated with assigning a messaging profile to a campaign.

422: Validation Error

Schema

    detail

    object[]

  • Array [

  • loc

    object[]

    required

  • Array [

  • anyOf

    string

  • ]

  • msg Messagerequired
    type Error Typerequired
  • ]

Loading...