---
title: "Create SMS/MMS service"
method: POST
path: "/sms"
tags: ["SMS/MMS"]
---

# Create SMS/MMS service

`POST /sms`

## Request

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

Create SMS/MMS service.

## Request body

- object
  - `name` string, required: The name of SMS/MMS service.
  - `enabled` boolean: The flag for whether the SMS/MMS service is enabled.
  - `provider_id` string, required: The unique ID of the resource.
  - `sender_id` string: The sender ID of SMS/MMS service.
  - `credentials` string, required: The credentials of SMS/MMS 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)
