---
title: "Send Message for extension"
method: POST
path: "/v4/accounts/{voip_id}/extensions/{extension_id}/messages"
tags: ["Messages"]
---

# Send Message for extension

`POST /v4/accounts/{voip_id}/extensions/{extension_id}/messages`

## Request

- Base URL: `https://api.phone.com`
- URL: `https://api.phone.com/v4/accounts/{voip_id}/extensions/{extension_id}/messages`
- Auth: HTTP bearer

This service is used to send a message for extension.

This API endpoint is designated for Person to Person (P2P) communications. Improper use for marketing type purposes or Application to Person (A2P) will cause upstream cellular companies to block the “From” number for SMS use.  If you plan to use this endpoint for A2P or A2A applications that might also entail high volume, i.e., above the FREE limits set by the Phone.com plan, please contact our API support team at apisupport@phone.com to discuss other options.

## Path parameters

- `voip_id` integer, required
- `extension_id` integer, required

## Request body

- Message
  - `from` string, required: Sender’s phone number must be Phone.com’s
  - `to` string[], required: List of phone numbers to send the message to
  - `text` string: The message text
  - `media` object[]: Array of objects for mms items
    - `data` string, required: Base64 encoded media file
    - `filename` string: Name of the file
  - `tag` string: Client-side tracking identifier

## Response `201`

Created

- object

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Validation failed
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com.md) · [All operations](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com/llms.txt) · [OpenAPI document](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com/revisions/b4762877b9e7?raw)
