---
title: "Bind an assistant to a number"
method: PUT
path: "/api/v1/businesses/whatsapp_cloud/numbers/{number_id}/assistant"
tags: ["whatsapp-cloud"]
---

# Bind an assistant to a number

`PUT /api/v1/businesses/whatsapp_cloud/numbers/{number_id}/assistant`

## Request

- Base URL: `https://api.izap.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.izap.ai/api/v1/businesses/whatsapp_cloud/numbers/{number_id}/assistant`
- Auth: HTTP bearer

Points a connected number at one of the business's assistants. Inbound messages to that number are answered by the assistant bound here. The business is taken from the `business-id` header rather than the URL; the path-scoped form of this operation is deprecated.

## Path parameters

- `number_id` string, required

## Headers

- `business-id` string, nullable, required: UUID of the business the request is scoped to. Required on this route; the deprecated /businesses/{business_id}/... form takes it from the path instead.

## Request body

- WhatsAppNumberAssistantIn: ``null`` detaches whichever assistant currently answers on the number.
  - `assistant_id` string, uuid, nullable

## Response `200`

Successful Response

- WhatsAppNumberOut
  - `id` string, uuid, required
  - `phone_number` string, required
  - `display_phone_number` string, nullable
  - `verified_name` string, nullable
  - `status` string, nullable
  - `quality_rating` string, nullable
  - `phone_number_id` string, nullable
  - `waba_id` string, nullable
  - `platform_type` string, nullable
  - `code_verification_status` string, nullable
  - `assistant_id` string, uuid, nullable
  - `assistant_name` string, nullable
  - `messaging_backend` 'external' | 'izap'

## Other responses

- `401`: Missing or invalid credentials.
- `403`: The credential is valid but not authorized for this action.
- `404`: The resource, or the business named in the request, does not exist.
- `422`: Validation Error
- `default`: Unexpected error.

---

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