Skip to main content
PATCH
/
whatsapp_configs
/
{id}
Update WhatsApp config
curl --request PATCH \
  --url https://app.kapso.ai/api/v1/whatsapp_configs/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "whatsapp_config": {
    "name": "<string>",
    "phone_number_id": "<string>",
    "business_account_id": "<string>",
    "webhook_verify_token": "<string>",
    "webhook_destination_url": "<string>",
    "access_token": "<string>"
  }
}'
{
  "data": {
    "id": "config-123abc",
    "name": "Client WhatsApp",
    "display_name": "Client WhatsApp (+1234567890)",
    "phone_number_id": "1234567890",
    "business_account_id": "98765432109",
    "kind": "production",
    "display_phone_number": "+56 9 61461262",
    "display_phone_number_normalized": "56961461262",
    "is_coexistence": true,
    "webhook_verified_at": "2023-11-07T05:31:56Z",
    "customer_id": "customer-456def",
    "inbound_processing_enabled": true,
    "calls_enabled": false,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

X-API-Key
string
header
required

API key required for all endpoints

Path Parameters

id
string<uuid>
required

WhatsApp config ID

Body

application/json
whatsapp_config
object
required

Response

WhatsApp configuration updated

data
object

WhatsApp configuration resource returned by the External API. Sensitive write-only fields like webhook_verify_token, webhook_destination_url, and access_token are intentionally omitted from responses.