---
title: "Send an email"
method: POST
path: "/emails"
tags: ["Email"]
---

# Send an email

`POST /emails`

Send an email with the provided details and returns the created email's information.

## Request body

- object
  - `destinations` CommonAddress[], required — The email addresses to send the email to.
    - `type` '' | 'agent' | 'conference' | 'email' | 'extension' | 'line' | 'sip' | 'tel' | 'web_session' — Type of address.
    - `target` string — The address endpoint. Format depends on type: phone number for tel (e.g. +14155551234), UUID for agent/conference/extension, email for email, SIP URI for sip.
    - `target_name` string — Address's name.
    - `name` string — Optional label for this address.
    - `detail` string — Additional notes about this address.
  - `subject` string, required — The subject of the email.
  - `content` string, required — The content of the email.
  - `attachments` EmailManagerEmailAttachment[], required — List of attachments to include in the email.
    - `reference_type` '' | 'recording', required — Type of the action.
    - `reference_id` string, uuid, required — The unique identifier of the referenced resource (e.g., recording ID). Returned from the corresponding resource endpoint.

## Response `200`

The created email details.

- EmailManagerEmail
  - `id` string, uuid, required — The unique identifier of the email.
  - `customer_id` string, uuid, required — The unique identifier of the customer. Returned from the `GET /customers` response.
  - `source` CommonAddress, required — Contains source or destination detail info.
    - `type` '' | 'agent' | 'conference' | 'email' | 'extension' | 'line' | 'sip' | 'tel' | 'web_session' — Type of address.
    - `target` string — The address endpoint. Format depends on type: phone number for tel (e.g. +14155551234), UUID for agent/conference/extension, email for email, SIP URI for sip.
    - `target_name` string — Address's name.
    - `name` string — Optional label for this address.
    - `detail` string — Additional notes about this address.
  - `destinations` CommonAddress[], required — List of destination addresses. Must contain at least one destination.
    - `type` '' | 'agent' | 'conference' | 'email' | 'extension' | 'line' | 'sip' | 'tel' | 'web_session' — Type of address.
    - `target` string — The address endpoint. Format depends on type: phone number for tel (e.g. +14155551234), UUID for agent/conference/extension, email for email, SIP URI for sip.
    - `target_name` string — Address's name.
    - `name` string — Optional label for this address.
    - `detail` string — Additional notes about this address.
  - `status` '' | 'initiated' | 'processed' | 'delivered' | 'open' | 'click' | 'bounce' | 'dropped' | 'deferred' | 'unsubscribe' | 'spamreport', required — Email status.
  - `subject` string, required — The subject of the email.
  - `content` string, required — The content of the email.
  - `attachments` EmailManagerEmailAttachment[], required — List of attachments
    - `reference_type` '' | 'recording', required — Type of the action.
    - `reference_id` string, uuid, required — The unique identifier of the referenced resource (e.g., recording ID). Returned from the corresponding resource endpoint.
  - `tm_create` string, date-time, required — Timestamp when the email was created.
  - `tm_update` string, date-time, required — Timestamp when the email was last updated.
  - `tm_delete` string, date-time, required — Timestamp when the email was deleted.

## Other responses

- `400` — Invalid request (INVALID_ARGUMENT).
- `401` — Authentication required (UNAUTHENTICATED).
- `402` — Payment required (PAYMENT_REQUIRED).
- `500` — Internal error (INTERNAL).

---

[API](https://skmtc.net/voipbin/apis/voipbin-api.md) · [All operations](https://skmtc.net/voipbin/apis/voipbin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voipbin/voipbin-api/revisions/79e779080bcc/schema)
