PUT
/
agents
/
{agent_id}
/
agent_whatsapp_configs
/
{id}
curl --request PUT \
  --url https://app.kapso.ai/api/v1/agents/{agent_id}/agent_whatsapp_configs/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "agent_whatsapp_config": {
    "is_primary": true
  }
}'
{
  "data": {
    "id": "awc-123abc",
    "is_primary": true,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "whatsapp_config": {
      "id": "config-123abc",
      "name": "Client WhatsApp",
      "display_name": "Client WhatsApp (+1234567890)",
      "phone_number_id": "1234567890",
      "business_account_id": "98765432109",
      "webhook_verify_token": "<string>",
      "webhook_destination_url": "<string>",
      "customer_id": "customer-456def",
      "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

agent_id
string
required
id
string
required

Body

application/json

Response

200
application/json

Agent WhatsApp configuration updated successfully

The response is of type object.