Create a new channel
POST
/v1/channelsAuthorization
bearerAuthbearerAuthrequiredor
apiKeyAuthapiKeyAuthrequiredRequest body
requiredapplication/jsonconfiganyProvider-specific configuration
metadataanyArbitrary metadata
modestringChannel mode
default: "single"
Allowed:
singlehybridnamestringrequiredChannel name
min length 1
phonestringPhone number
platformstringrequiredPlatform type
Allowed:
whatsapp_officialwhatsapp_unofficialinstagrammessengertelegramsmsResponses
201Created
configanycreated_atstringrequiredhealth_statestringOperator-facing health: healthy, auth_required, degraded, setup_required
idstringrequiredis_activebooleanrequiredlast_connected_atstring | nullrequiredlast_errorstring | nullrequiredlast_failure_classstringauth, payload, operational (support)
linked_channel_idstring | nullrequiredmetadataanyrequiredmodestringrequirednamestringrequiredoperator_messagestringSafe message for workspace UI; never raw Meta errors
organization_idstringrequiredphone_numberstring | nullrequiredplatformstringrequiredstatusstringrequiredupdated_atstringrequired400Bad Request
errorErrorBodyrequiredShow propertiesHide properties
codestringrequireddetailsErrorDetail[] | nullShow propertiesHide properties
Array of
ErrorDetailcodestringfieldstringlocationstringmessagestringrequiredmessagestringrequiredrequest_idstring401Unauthorized
errorErrorBodyrequiredShow propertiesHide properties
codestringrequireddetailsErrorDetail[] | nullShow propertiesHide properties
Array of
ErrorDetailcodestringfieldstringlocationstringmessagestringrequiredmessagestringrequiredrequest_idstring403Forbidden
errorErrorBodyrequiredShow propertiesHide properties
codestringrequireddetailsErrorDetail[] | nullShow propertiesHide properties
Array of
ErrorDetailcodestringfieldstringlocationstringmessagestringrequiredmessagestringrequiredrequest_idstring422Unprocessable Entity
errorErrorBodyrequiredShow propertiesHide properties
codestringrequireddetailsErrorDetail[] | nullShow propertiesHide properties
Array of
ErrorDetailcodestringfieldstringlocationstringmessagestringrequiredmessagestringrequiredrequest_idstring500Internal Server Error
errorErrorBodyrequiredShow propertiesHide properties
codestringrequireddetailsErrorDetail[] | nullShow propertiesHide properties
Array of
ErrorDetailcodestringfieldstringlocationstringmessagestringrequiredmessagestringrequiredrequest_idstringRequest
curl -X POST "/v1/channels" \
-H "Content-Type: application/json" \
-d '{
"config": "string",
"metadata": "string",
"mode": "single",
"name": "string",
"phone": "string",
"platform": "whatsapp_official"
}'const response = await fetch("/v1/channels", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"config": "string",
"metadata": "string",
"mode": "single",
"name": "string",
"phone": "string",
"platform": "whatsapp_official"
})
});import requests
response = requests.post(
"/v1/channels",
headers={
"Content-Type": "application/json"
},
json={
"config": "string",
"metadata": "string",
"mode": "single",
"name": "string",
"phone": "string",
"platform": "whatsapp_official"
},
)Response
{
"config": "string",
"created_at": "string",
"health_state": "string",
"id": "string",
"is_active": true,
"last_connected_at": "string",
"last_error": "string",
"last_failure_class": "string",
"linked_channel_id": "string",
"metadata": "string",
"mode": "string",
"name": "string",
"operator_message": "string",
"organization_id": "string",
"phone_number": "string",
"platform": "string",
"status": "string",
"updated_at": "string"
}{
"error": {
"code": "string",
"details": [
{
"code": "string",
"field": "string",
"location": "string",
"message": "string"
}
],
"message": "string",
"request_id": "string"
}
}{
"error": {
"code": "string",
"details": [
{
"code": "string",
"field": "string",
"location": "string",
"message": "string"
}
],
"message": "string",
"request_id": "string"
}
}{
"error": {
"code": "string",
"details": [
{
"code": "string",
"field": "string",
"location": "string",
"message": "string"
}
],
"message": "string",
"request_id": "string"
}
}{
"error": {
"code": "string",
"details": [
{
"code": "string",
"field": "string",
"location": "string",
"message": "string"
}
],
"message": "string",
"request_id": "string"
}
}{
"error": {
"code": "string",
"details": [
{
"code": "string",
"field": "string",
"location": "string",
"message": "string"
}
],
"message": "string",
"request_id": "string"
}
}