---
title: "Enable or disable calling on a WhatsApp number"
method: POST
path: "/v1/whatsapp/numbers/{id}/calling"
tags: ["WhatsApp"]
---

# Enable or disable calling on a WhatsApp number

`POST /v1/whatsapp/numbers/{id}/calling`

## Request

- Base URL: `https://api.pyai.com`
- URL: `https://api.pyai.com/v1/whatsapp/numbers/{id}/calling`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Pushes Meta's calling configuration for the number (`POST /{phone_number_id}/settings`): turns the call button on or off, and whether a user calling you automatically grants a 7-day call-back permission. Meta requires the number to have a messaging limit of at least 2,000 conversations per day before calling can be enabled. Requires the `telephony:manage` scope.

## Path parameters

- `id` string, required

## Request body

- WhatsAppCallingSettingsRequest
  - `enabled` boolean: Meta `calling.status`.
  - `call_icon_visibility` 'DEFAULT' | 'DISABLE_ALL'
  - `callback_permission` boolean: A user calling you grants a 7-day call-back permission automatically.

## Response `200`

Settings applied

- WhatsAppNumber
  - `object` string
  - `id` string
  - `waba_id` string: WhatsApp Business Account id.
  - `phone_number_id` string: Meta's id for the business number (what the webhook carries).
  - `phone_number` string: E.164.
  - `app_id` string, nullable
  - `agent_id` string, nullable: Agent that answers inbound WhatsApp calls.
  - `calling_enabled` boolean
  - `calling_settings` object: Last calling settings pushed to Meta.
  - `status` 'active' | 'released'
  - `created_at` integer: Unix ms.
  - `updated_at` integer: Unix ms.
  - `released_at` integer, nullable: Unix ms.

## Other responses

- `400`: Meta rejected the settings (`code: meta_graph_error`).
- `401`: Missing or invalid API key (`code: unauthorized`)
- `404`: Resource not found (`code: not_found`)
- `502`: Meta's API was unreachable or refused the token (`code: meta_graph_error`).

---

[API](https://skmtc.dev/pyai/apis/pyai-api.md) · [All operations](https://skmtc.dev/pyai/apis/pyai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pyai/apis/pyai-api/revisions/819d8e7c4d09?raw)
