> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev.setoo.work/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Attach WhatsApp number

> Assign a specific Meta WhatsApp sender number to an agent

Sets the dedicated WhatsApp sender phone number override for an agent's campaign.

### Path parameters

<ParamField path="agentId" type="string" required>
  The unique UUID of the agent.
</ParamField>

### Body parameters

<ParamField body="phoneNumberId" type="string" required>
  The Meta `phone_number_id` to use as this agent's sender.
</ParamField>

<CodeGroup>
  ```bash curl theme={null}
  curl -X POST https://api.agentic-os.com/api/v1/whatsapp/agents/11111111-1111-1111-1111-111111111111/attach-number \
    -H "Authorization: Bearer $AGENTIC_OS_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "phoneNumberId": "105938472910293"
    }'
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://api.agentic-os.com/api/v1/whatsapp/agents/11111111-1111-1111-1111-111111111111/attach-number",
      headers={
          "Authorization": f"Bearer {API_KEY}",
          "Content-Type": "application/json",
      },
      json={"phoneNumberId": "105938472910293"},
  )
  print(response.json())
  ```

  ```javascript Node theme={null}
  const response = await fetch(
    "https://api.agentic-os.com/api/v1/whatsapp/agents/11111111-1111-1111-1111-111111111111/attach-number",
    {
      method: "POST",
      headers: {
        Authorization: `Bearer ${API_KEY}`,
        "Content-Type": "application/json",
      },
      body: JSON.stringify({ phoneNumberId: "105938472910293" }),
    },
  );
  const data = await response.json();
  console.log(data);
  ```
</CodeGroup>

### Response

```json theme={null}
{
  "id": "55555555-5555-5555-5555-555555555555",
  "tenantId": "990e8400-e29b-41d4-a716-446655440000",
  "agentId": "11111111-1111-1111-1111-111111111111",
  "phoneNumberId": "105938472910293",
  "updatedAt": "2026-06-01T12:00:00.000Z"
}
```
