Register an A2P 10DLC campaign use case in Twilio
POST
/v1/channel-connections/{id}/10dlc/campaign
const url = 'https://api.replifier.com/v1/channel-connections/ccc_01hx0000000000000000000000/10dlc/campaign';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"useCase":"ACCOUNT_NOTIFICATION","description":"example","sample1":"example","sample2":"example","helpMessage":"example","optinMessage":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Example
ccc_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
useCase
required
string
description
required
string
sample1
required
string
sample2
string
helpMessage
required
string
optinMessage
required
string
Responses
Section titled “Responses”Campaign registered
Media typeapplication/json
object
id
required
string
connectionId
required
string
type
required
string
status
required
string
providerId
required
string
errorMessage
required
string
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" }}