---
title: "Create WhatsApp service"
method: POST
path: "/whatsapp"
tags: ["WhatsApp"]
---

# Create WhatsApp service

`POST /whatsapp`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/whatsapp`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/whatsapp/post.ts> (a function with typed inputs; its response is checked against the schema)

Create WhatsApp service.

## Request body

- object
  - `name` string, required: The name of WhatsApp service.
  - `enabled` boolean: The flag for whether the WhatsApp service is enabled.
  - `provider_id` string, required: The unique ID of the resource.
  - `phone_number` string: The phone number of WhatsApp service.
  - `phone_number_id` string, required: The phone number id of WhatsApp service.
  - `token` string, required: The token of WhatsApp service.

## Response `201`

Created

- object
  - `id` string: The unique ID of the resource.

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
