Skip to content

Register an A2P 10DLC campaign use case in Twilio

POST
/v1/channel-connections/{id}/10dlc/campaign
curl --request POST \
--url https://api.replifier.com/v1/channel-connections/ccc_01hx0000000000000000000000/10dlc/campaign \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "useCase": "ACCOUNT_NOTIFICATION", "description": "example", "sample1": "example", "sample2": "example", "helpMessage": "example", "optinMessage": "example" }'
id
required
string
/^ccc_[a-z0-9]{26}$/

Example

ccc_01hx0000000000000000000000
Media typeapplication/json
object
useCase
required
string
Allowed values: ACCOUNT_NOTIFICATION AGENTS_FRANCHISES CHARITY_NONPROFIT CUSTOMER_CARE DELIVERY_NOTIFICATION EMERGENCY FRAUD_ALERT HIGHER_EDUCATION LOW_VOLUME MARKETING MIXED POLLING_VOTING PUBLIC_SERVICE_ANNOUNCEMENT SECURITY_ALERT SOCIAL SWEEPSTAKE TWO_FACTOR_AUTHENTICATION
description
required
string
>= 40 characters <= 4096 characters
sample1
required
string
>= 20 characters <= 1024 characters
sample2
string
>= 20 characters <= 1024 characters
helpMessage
required
string
>= 1 characters <= 255 characters
optinMessage
required
string
>= 1 characters <= 255 characters

Campaign registered

Media typeapplication/json
object
id
required
string
connectionId
required
string
type
required
string
Allowed values: brand campaign
status
required
string
Allowed values: draft pending approved rejected suspended
providerId
required
string
nullable
errorMessage
required
string
nullable
createdAt
required
string
updatedAt
required
string

Example

{
"type": "brand",
"status": "draft"
}

Invalid data

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

No session, expired session, or invalid, expired or revoked API key

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Does not exist or is not visible to you

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Conflict

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Internal error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}