Create New Phone Number Campaign
POST/phone_number_campaigns
Create New Phone Number Campaign
Request
- application/json
Body
required
phoneNumber Phonenumberrequired
The phone number you want to link to a specified campaign.
campaignId Campaignidrequired
The ID of the campaign you want to link to the specified phone number.
Responses
200: Successful Response
- application/json
- Schema
- Example (from schema)
Schema
phoneNumber Phonenumberrequired
campaignId Campaignidrequired
createdAt date-timerequired
updatedAt date-timerequired
{
"phoneNumber": "+18005550199",
"campaignId": "4b300178-131c-d902-d54e-72d90ba1620j",
"createdAt": "2024-04-16T00:45:36.195Z",
"updatedAt": "2024-04-16T00:45:36.195Z"
}
default: Unexpected error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
code integerrequired
title stringrequired
detail string
source
object
pointer json-pointer
JSON pointer (RFC6901) to the offending entity.
parameter string
Indicates which query parameter caused the error.
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
}
}
]
}
Loading...