# Email

Send transactional email from your own domains, over the API or SMTP: sending domains, emails, SMTP sending keys, packs and suppressions.

Source: https://docs.pantechdynamics.com/api/email

Add a sending domain and publish the DNS records it shows (a CNAME for its DKIM key and one for its bounce domain) at your DNS host. Once both are found the domain is `verified`, and you can send from any address at it with `POST /emails`, or over SMTP with a sending key. A new organization starts in the `sandbox`, 20 recipients a day for free, until Pantech reviews it for `production`, which sends from prepaid packs of 1,000 emails bought from your credit. Addresses that bounce permanently or report spam are suppressed and not sent to again.

Endpoints:

- `GET /public/v1/email/domains`: List sending domains
- `POST /public/v1/email/domains`: Add a sending domain
- `GET /public/v1/email/domains/{email_domain_id}`: Get a sending domain
- `DELETE /public/v1/email/domains/{email_domain_id}`: Delete a sending domain
- `POST /public/v1/email/domains/{email_domain_id}/verify`: Check a sending domain's records now
- `GET /public/v1/email/sending-keys`: List sending keys
- `POST /public/v1/email/sending-keys`: Create a sending key
- `DELETE /public/v1/email/sending-keys/{email_sending_key_id}`: Revoke a sending key
- `POST /public/v1/emails`: Send an email
- `GET /public/v1/emails`: List emails
- `POST /public/v1/emails/batch`: Send a batch of emails
- `GET /public/v1/emails/{email_id}`: Get an email
- `GET /public/v1/emails/{email_id}/events`: List an email's events
- `PATCH /public/v1/emails/{email_id}`: Reschedule an email
- `POST /public/v1/emails/{email_id}/cancel`: Cancel a scheduled email
- `GET /public/v1/email/sending`: Get sending status
- `GET /public/v1/email/suppressions`: List suppressed addresses
- `POST /public/v1/email/suppressions`: Suppress an address
- `DELETE /public/v1/email/suppressions/{address}`: Remove a suppressed address
- `GET /public/v1/email/packs`: Get email packs
- `POST /public/v1/email/packs`: Buy email packs
- `GET /public/v1/email/pack-orders`: List email pack orders
- `GET /public/v1/email/pack-orders/{email_pack_order_id}`: Get an email pack order

## The email domain object

A domain your organization sends email from.

- `id` (string, required): The sending domain's id (`emd_…`).
- `name` (string, required)
- `status` (string, required): `pending` until its records are found; `verified` sends; `warning` sends but its records were not found on the last checks and it is suspended after 72 hours unless they come back; `suspended` does not send; `failed` was not verified within 72 hours. One of `pending`, `verified`, `warning`, `suspended`, `failed`.
- `status_reason` (string or null, required): Why a domain is `failed`, `warning` or `suspended`; null otherwise. One of `verification_timeout`, `records_missing`, `abuse`, `operator`, `null`.
- `can_send` (boolean, required): Whether mail from this domain is accepted now.
- `return_path_domain` (string, required): The bounce domain, such as `send.example.com`.
- `dkim_selector` (string, required): The DKIM selector your mail is signed with.
- `records` (array of EmailDomainRecord, required)
  - `purpose` (string, required): `dkim` signs your mail, `return_path` receives bounces, `dmarc` tells receivers what to do with unsigned mail. One of `dkim`, `return_path`, `dmarc`.
  - `type` (string, required): One of `CNAME`, `TXT`.
  - `name` (string, required): The record's full name.
  - `value` (string, required): The record's value.
  - `required` (boolean, required): Whether the domain needs it to be verified. DMARC is recommended, not required.
  - `status` (string or null, required): Whether the last check found it; null for an optional record and before the first check. One of `verified`, `missing`, `null`.
- `verification_deadline_at` (string or null, required): When a `pending` domain becomes `failed`; null in any other status.
- `suspension_deadline_at` (string or null, required): When a `warning` domain is suspended; null in any other status.
- `last_checked_at` (string or null, required)
- `verified_at` (string or null, required): When the domain was first verified.
- `created_at` (string, required)
- `updated_at` (string, required)
## The email object

An email.

- `id` (string, required): The email's id (`eml_…`).
- `from` (string, required)
- `subject` (string, required)
- `status` (string, required): `sent` once Pantech's mail servers accepted it; each recipient's own status follows its delivery. One of `scheduled`, `queued`, `dispatching`, `sent`, `canceled`, `failed`.
- `source` (string, required): One of `api`, `smtp`.
- `recipients` (array of EmailRecipient, required)
  - `address` (string, required)
  - `kind` (string, required): One of `to`, `cc`, `bcc`.
  - `status` (string, required): `sent`: accepted by Pantech's mail servers; `delivered`: accepted by the recipient's; `delayed`: being retried. One of `queued`, `suppressed`, `sent`, `delayed`, `delivered`, `bounced`, `complained`, `failed`, `canceled`.
  - `reason` (string or null, required): The receiving server's answer for a bounce, delay or failure.
- `tags` (object, required)
- `scheduled_at` (string or null, required)
- `sent_at` (string or null, required)
- `failure_reason` (string or null, required): Why the email was not sent, such as `all_recipients_suppressed` or `sending_paused`.
- `created_at` (string, required)
## The email sending key object

An SMTP sending key.

- `id` (string, required): The key's id (`esk_…`).
- `name` (string, required)
- `status` (string, required): One of `active`, `revoked`.
- `email_domain_id` (string or null, required): The one sending domain this key may send from; null for any of the organization's.
- `hint` (string, required): The secret's first characters, such as `pmk_ab12cd`.
- `smtp` (EmailSMTPSettings, required): How to send over SMTP with a sending key.
  - `host` (string, required): The SMTP host, such as `smtp.pantechdynamics.com`.
  - `ports` (array of integer, required): Submission ports. Use 587; 2587 is for networks that block 587.
  - `username` (string, required): Always `pantech`. The password is the key's secret.
  - `security` (string, required): Connect in plain text, then upgrade with STARTTLS before logging in. One of `starttls`.
- `last_used_at` (string or null, required): When the key last logged in, to the minute.
- `created_at` (string, required)
- `revoked_at` (string or null, required)
## The email suppression object

An address Pantech will not send to.

- `address` (string, required)
- `reason` (string, required): One of `hard_bounce`, `complaint`, `manual`.
- `email_id` (string or null, required): The email that bounced or was reported, when there is one.
- `created_at` (string, required)
## List sending domains

```http
GET /public/v1/email/domains
```

The domains your organization sends email from, newest first, each with the DNS records it needs and whether they were found.

Scope: `read`.

Query parameters:

- `q` (string): Only domains whose name contains this text (case-insensitive), at most 255 characters. At most 255 characters.
- `status` (string): Only domains in this status. One of `pending`, `verified`, `warning`, `suspended`, `failed`.
- `limit` (integer): Items per page, 1 to 100. Defaults to 50. From 1 to 100. Defaults to `50`.
- `cursor` (string): The previous page's `next_cursor`, to get the next page. Leave out for the first page; keep the other parameters the same.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/email/domains" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "data": [
    {
      "id": "emd_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "name": "web-1",
      "status": "pending",
      "status_reason": "verification_timeout",
      "can_send": true,
      "return_path_domain": "return-path-domain",
      "dkim_selector": "dkim-selector",
      "records": [
        {
          "purpose": "dkim",
          "type": "CNAME",
          "name": "web-1",
          "value": "value",
          "required": true,
          "status": "verified"
        }
      ],
      "verification_deadline_at": "2026-10-03T09:30:00Z",
      "suspension_deadline_at": "2026-10-03T09:30:00Z",
      "last_checked_at": "2026-10-03T09:30:00Z",
      "verified_at": "2026-10-03T09:30:00Z",
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z"
    }
  ],
  "next_cursor": "eyJhdCI6IjIwMjYtMTAtMDNUMDk6MzA6MDBaIiwiaWQiOiJ2bV8wNmdrIn0"
}
```

Errors:

- `400`: `INVALID_FILTER`: a query parameter is not one of its allowed values. `detail` names it and what it takes.
`INVALID_CURSOR`: the cursor is not valid for this list and these filters. Start again without a cursor.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `read` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on this sending domain (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Add a sending domain

```http
POST /public/v1/email/domains
```

Adds a domain you send email from, such as `example.com`. The answer's `records` are the DNS records to publish at your DNS host: a CNAME for the DKIM key (`pantech1._domainkey.<domain>`) and a CNAME for the bounce domain (`send.<domain>`), both pointing at Pantech, plus an optional DMARC TXT record. Pantech checks them within minutes of being published; once both are found the domain is `verified` and you can send from any address at it. A domain whose records are not found within 72 hours becomes `failed`; verify it again to restart. Pantech rotates the DKIM key behind the CNAME by itself. At most 100 sending domains per organization. Owners and admins only.

**Idempotency:** a retry with the same `Idempotency-Key` returns the domain the first request made. The same key with a different request returns `409 IDEMPOTENCY_CONFLICT`.

Scope: `write`. Send an `Idempotency-Key` header.

Body:

- `name` (string, required): The domain, such as `example.com` or `mail.example.com`. An internationalised name is stored in punycode. At most 253 characters.
- `return_path_subdomain` (string): The label of the bounce domain under `name`. Default `send`, giving `send.example.com`. At most 63 characters.

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/email/domains" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "web-1"
  }'
```

Response `201`:

```json
{
  "id": "emd_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "name": "web-1",
  "status": "pending",
  "status_reason": "verification_timeout",
  "can_send": true,
  "return_path_domain": "return-path-domain",
  "dkim_selector": "dkim-selector",
  "records": [
    {
      "purpose": "dkim",
      "type": "CNAME",
      "name": "web-1",
      "value": "value",
      "required": true,
      "status": "verified"
    }
  ],
  "verification_deadline_at": "2026-10-03T09:30:00Z",
  "suspension_deadline_at": "2026-10-03T09:30:00Z",
  "last_checked_at": "2026-10-03T09:30:00Z",
  "verified_at": "2026-10-03T09:30:00Z",
  "created_at": "2026-10-03T09:30:00Z",
  "updated_at": "2026-10-03T09:30:00Z"
}
```

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
`INVALID_REQUEST_BODY`: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `write` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on this sending domain (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
`EMAIL_DOMAIN_LIMIT_REACHED`: your organization already has 100 sending domains. Delete one first, or contact support.
`ACCOUNT_SUSPENDED`: the organization's account is suspended or past due. Settle the open invoice first.
- `409`: `EMAIL_DOMAIN_EXISTS`: this domain is already a sending domain in your organization.
`IDEMPOTENCY_CONFLICT`: this Idempotency-Key was already used with a different request. Use a new key.
- `422`: `VALIDATION_FAILED`: `errors` names the field:
`name` `REQUIRED`, `INVALID_NAME` (not a domain you can own, such as a public suffix) or `RESERVED_NAME` (a Pantech name).
`return_path_subdomain` `INVALID_RETURN_PATH`: send one DNS label such as `send` or `bounces`.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Get a sending domain

```http
GET /public/v1/email/domains/{email_domain_id}
```

One sending domain with the DNS records it needs and, once checked, whether each was found.

Scope: `read`.

Path parameters:

- `email_domain_id`: The sending domain's id (`emd_…`).

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/email/domains/emd_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "id": "emd_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "name": "web-1",
  "status": "pending",
  "status_reason": "verification_timeout",
  "can_send": true,
  "return_path_domain": "return-path-domain",
  "dkim_selector": "dkim-selector",
  "records": [
    {
      "purpose": "dkim",
      "type": "CNAME",
      "name": "web-1",
      "value": "value",
      "required": true,
      "status": "verified"
    }
  ],
  "verification_deadline_at": "2026-10-03T09:30:00Z",
  "suspension_deadline_at": "2026-10-03T09:30:00Z",
  "last_checked_at": "2026-10-03T09:30:00Z",
  "verified_at": "2026-10-03T09:30:00Z",
  "created_at": "2026-10-03T09:30:00Z",
  "updated_at": "2026-10-03T09:30:00Z"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `read` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on this sending domain (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `404`: `EMAIL_DOMAIN_NOT_FOUND`: no sending domain with this id in your organization. List your sending domains to find it.
`RESOURCE_NOT_FOUND`: the id is not a sending domain id (`emd_…`). Check the id.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Delete a sending domain

```http
DELETE /public/v1/email/domains/{email_domain_id}
```

Removes the sending domain. Mail from its addresses is refused at once, including mail already scheduled. Remove its DNS records at your DNS host afterwards. The name can be added again later, with new records. Owners and admins only.

**Idempotency:** a retry with the same `Idempotency-Key` answers the original result.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `email_domain_id`: The sending domain's id (`emd_…`).

Example:

```sh
curl -X DELETE "https://api.pantechdynamics.com/public/v1/email/domains/emd_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Response `204`: Deleted.

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `delete` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on this sending domain (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `404`: `EMAIL_DOMAIN_NOT_FOUND`: no sending domain with this id in your organization. List your sending domains to find it.
`RESOURCE_NOT_FOUND`: the id is not a sending domain id (`emd_…`). Check the id.
- `409`: `CONFLICT`: the sending domain was changed at the same time by another request. Get it again and retry.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Check a sending domain's records now

```http
POST /public/v1/email/domains/{email_domain_id}/verify
```

Looks the domain's DNS records up within seconds instead of on the next check. Call it after publishing them. A `failed` domain, or one whose 72 hours ran out, gets a new 72-hour window first. If DNS cannot be asked right now, the domain is returned unchanged. Owners and admins only.

**Idempotency:** a retry with the same `Idempotency-Key` answers the original result.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `email_domain_id`: The sending domain's id (`emd_…`).

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/email/domains/emd_06gk3x9tq7m2v8r4y1c5d0zp8w/verify" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Response `200`:

```json
{
  "id": "emd_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "name": "web-1",
  "status": "pending",
  "status_reason": "verification_timeout",
  "can_send": true,
  "return_path_domain": "return-path-domain",
  "dkim_selector": "dkim-selector",
  "records": [
    {
      "purpose": "dkim",
      "type": "CNAME",
      "name": "web-1",
      "value": "value",
      "required": true,
      "status": "verified"
    }
  ],
  "verification_deadline_at": "2026-10-03T09:30:00Z",
  "suspension_deadline_at": "2026-10-03T09:30:00Z",
  "last_checked_at": "2026-10-03T09:30:00Z",
  "verified_at": "2026-10-03T09:30:00Z",
  "created_at": "2026-10-03T09:30:00Z",
  "updated_at": "2026-10-03T09:30:00Z"
}
```

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `write` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on this sending domain (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `404`: `EMAIL_DOMAIN_NOT_FOUND`: no sending domain with this id in your organization. List your sending domains to find it.
`RESOURCE_NOT_FOUND`: the id is not a sending domain id (`emd_…`). Check the id.
- `409`: `CONFLICT`: the sending domain was changed at the same time by another request. Get it again and retry.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## List sending keys

```http
GET /public/v1/email/sending-keys
```

The SMTP sending keys of your organization, active first, newest first. A key's secret is never shown again after it is created; `hint` is its first characters, to tell keys apart.

Scope: `read`.

Query parameters:

- `limit` (integer): Items per page, 1 to 100. Defaults to 50. From 1 to 100. Defaults to `50`.
- `cursor` (string): The previous page's `next_cursor`, to get the next page. Leave out for the first page; keep the other parameters the same.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/email/sending-keys" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "data": [
    {
      "id": "esk_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "name": "web-1",
      "status": "active",
      "email_domain_id": "emd_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "hint": "hint",
      "smtp": {
        "host": "smtp.pantechdynamics.com",
        "ports": [
          1
        ],
        "username": "username",
        "security": "starttls"
      },
      "last_used_at": "2026-10-03T09:30:00Z",
      "created_at": "2026-10-03T09:30:00Z",
      "revoked_at": "2026-10-03T09:30:00Z"
    }
  ],
  "next_cursor": "eyJhdCI6IjIwMjYtMTAtMDNUMDk6MzA6MDBaIiwiaWQiOiJ2bV8wNmdrIn0"
}
```

Errors:

- `400`: `INVALID_PAGE`: `limit` is not from 1 to 100.
`INVALID_CURSOR`: the cursor is not one this list returned. Start again without it.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `read` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on sending keys (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Create a sending key

```http
POST /public/v1/email/sending-keys
```

Creates an SMTP sending key: the password your application uses to send email through Pantech over SMTP (`smtp` in the answer has the host, ports and username). The `secret` is in this answer only; store it now, it is never shown again. A key sends mail only; it cannot call this API. Set `email_domain_id` to let it send from one sending domain only. At most 50 active keys per organization. Owners and admins only.

**Idempotency:** a retry with the same `Idempotency-Key` returns the key the first request created, without its secret. The same key with a different request returns `409 IDEMPOTENCY_CONFLICT`.

Scope: `write`. Send an `Idempotency-Key` header.

Body:

- `name` (string, required): Where the key is used, such as `production-app`. At most 100 characters.
- `email_domain_id` (string): Limit the key to this sending domain (`emd_…`). Omit to allow every domain.

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/email/sending-keys" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "web-1"
  }'
```

Response `201`:

```json
{
  "secret": "secret",
  "id": "esk_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "name": "web-1",
  "status": "active",
  "email_domain_id": "emd_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "hint": "hint",
  "smtp": {
    "host": "smtp.pantechdynamics.com",
    "ports": [
      1
    ],
    "username": "username",
    "security": "starttls"
  },
  "last_used_at": "2026-10-03T09:30:00Z",
  "created_at": "2026-10-03T09:30:00Z",
  "revoked_at": "2026-10-03T09:30:00Z"
}
```

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
`INVALID_REQUEST_BODY`: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `write` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on sending keys (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
`EMAIL_SENDING_KEY_LIMIT_REACHED`: your organization already has 50 active sending keys. Revoke one first.
- `404`: `EMAIL_DOMAIN_NOT_FOUND`: `email_domain_id` names no sending domain in your organization.
- `409`: `IDEMPOTENCY_CONFLICT`: this Idempotency-Key was already used with a different request. Use a new key.
- `422`: `VALIDATION_FAILED`: `errors` names the field:
`name` `REQUIRED` or `INVALID_NAME` (1 to 100 characters on one line).
`email_domain_id` `INVALID_ID`: send a sending domain id (`emd_…`).
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Revoke a sending key

```http
DELETE /public/v1/email/sending-keys/{email_sending_key_id}
```

Revokes the key: within a minute, SMTP logins with it fail and messages on a connection already open with it are refused. A revoked key stays listed and cannot be restored; create a new one. Owners and admins only.

**Idempotency:** a retry with the same `Idempotency-Key` answers the original result.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `email_sending_key_id`: The sending key's id (`esk_…`).

Example:

```sh
curl -X DELETE "https://api.pantechdynamics.com/public/v1/email/sending-keys/esk_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Response `204`: Revoked.

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `delete` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on sending keys (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `404`: `EMAIL_SENDING_KEY_NOT_FOUND`: no sending key with this id in your organization. List your sending keys to find it.
`RESOURCE_NOT_FOUND`: the id is not a sending key id (`esk_…`). Check the id.
- `409`: `CONFLICT`: the sending key was changed at the same time by another request. Get it again and retry.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Send an email

```http
POST /public/v1/emails
```

Sends one email from an address at one of your verified sending domains. The answer is `202`: the email is queued (or `scheduled`, with `scheduled_at`), and `GET /public/v1/emails/{email_id}` and the `email.*` webhooks follow each recipient to `delivered`, `bounced` or `complained`. Recipients on your suppression list are not sent to and show as `suppressed`. Each recipient counts once toward your daily limit and your bill.

Pantech signs every email with your domain's DKIM key and adds the unsubscribe-free transactional headers mailbox providers expect. `headers` adds your own headers; the ones that identify the message (From, To, Subject, Message-ID, DKIM-Signature and similar) cannot be set there.

**Idempotency:** a retry with the same `Idempotency-Key` returns the original email without sending it again. The same key with a different request returns `409 IDEMPOTENCY_CONFLICT`.

Scope: `write`. Send an `Idempotency-Key` header.

Body:

- `from` (string, required): The sender: an address at one of your verified sending domains, with an optional name, such as `Acme <billing@acme.com>`.
- `to` (array of string, required): At most 50 items.
- `cc` (array of string)
- `bcc` (array of string)
- `reply_to` (array of string)
- `subject` (string, required): At most 998 characters.
- `html` (string): The HTML body. Send `html`, `text` or both.
- `text` (string): The plain-text body.
- `headers` (object): Extra headers, such as `List-Unsubscribe`.
- `tags` (object): Up to 10 `key: value` labels, returned on the email and its webhooks and filterable in the list.
- `attachments` (array of EmailAttachment)
  - `filename` (string, required)
  - `content` (string, required): The file, base64-encoded.
  - `content_type` (string): Such as `application/pdf`; guessed from the file name when omitted.
- `scheduled_at` (string): Send later, at most 30 days ahead.

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/emails" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "from",
    "to": [
      "to"
    ],
    "subject": "subject"
  }'
```

Response `202`:

```json
{
  "id": "eml_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "from": "from",
  "subject": "subject",
  "status": "scheduled",
  "source": "api",
  "recipients": [
    {
      "address": "ada@example.com",
      "kind": "to",
      "status": "queued",
      "reason": null
    }
  ],
  "tags": {
    "env": "production"
  },
  "scheduled_at": "2026-10-03T09:30:00Z",
  "sent_at": "2026-10-03T09:30:00Z",
  "failure_reason": null,
  "created_at": "2026-10-03T09:30:00Z"
}
```

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
`INVALID_REQUEST_BODY`: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `write` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on email (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
`EMAIL_SENDING_PAUSED`: sending is paused for your organization because too many recent messages bounced or were reported as spam. Contact support.
`ACCOUNT_SUSPENDED`: your organization is suspended. Settle the overdue invoice to send again.
- `409`: `IDEMPOTENCY_CONFLICT`: this Idempotency-Key was already used with a different request. Use a new key.
- `422`: `VALIDATION_FAILED`: `errors` names the field, such as:
`from` `REQUIRED`, `INVALID_ADDRESS` or `DOMAIN_NOT_VERIFIED` (the address must be at one of your verified sending domains).
`to` `REQUIRED` (at least one `to` address), `INVALID_ADDRESS` or `TOO_MANY_RECIPIENTS` (at most 50 in `to`, 500 in all).
`subject` `REQUIRED`; `html`/`text` `REQUIRED` (one of them) or `TOO_LARGE` (the message may not pass 25 MB).
`headers` `RESERVED_HEADER` (such as From, To, Subject, DKIM-Signature or X-Pantech-*); `tags` `INVALID_TAGS`; `attachments` `INVALID_ATTACHMENT`.
`scheduled_at` `INVALID_SCHEDULE` (at most 30 days ahead).
- `429`: `EMAIL_DAILY_LIMIT_REACHED`: your organization reached its daily sending limit, counted per recipient. It resets at midnight UTC (`Retry-After`); contact support to raise it.
`RATE_LIMITED`: too many requests. Wait for `Retry-After` seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## List emails

```http
GET /public/v1/emails
```

Your organization's emails, newest first, kept for 60 days. Filter by `status`, by a `recipient` address, or by a `tag` (`key=value`).

Scope: `read`.

Query parameters:

- `limit` (integer): Items per page, 1 to 100. Defaults to 50. From 1 to 100. Defaults to `50`.
- `cursor` (string): The previous page's `next_cursor`, to get the next page. Leave out for the first page; keep the other parameters the same.
- `status` (string): One of `scheduled`, `queued`, `dispatching`, `sent`, `canceled`, `failed`.
- `recipient` (string): Only emails to this address.
- `tag` (string): Only emails with this tag, as `key=value`.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/emails" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "data": [
    {
      "id": "eml_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "from": "from",
      "subject": "subject",
      "status": "scheduled",
      "source": "api",
      "recipients": [
        {
          "address": "ada@example.com",
          "kind": "to",
          "status": "queued",
          "reason": null
        }
      ],
      "tags": {
        "env": "production"
      },
      "scheduled_at": "2026-10-03T09:30:00Z",
      "sent_at": "2026-10-03T09:30:00Z",
      "failure_reason": null,
      "created_at": "2026-10-03T09:30:00Z"
    }
  ],
  "next_cursor": "eyJhdCI6IjIwMjYtMTAtMDNUMDk6MzA6MDBaIiwiaWQiOiJ2bV8wNmdrIn0"
}
```

Errors:

- `400`: `INVALID_FILTER`: a filter is not valid (`detail` names it).
`INVALID_CURSOR`: the cursor is not one this list returned. Start again without it.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `read` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on email (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Send a batch of emails

```http
POST /public/v1/emails/batch
```

Sends 1 to 100 emails in one request, each as `POST /public/v1/emails` takes it. They are accepted together or not at all: one invalid email refuses the batch, and `errors` names it as `emails[i].field`. The answer lists the emails in the order sent.

**Idempotency:** a retry with the same `Idempotency-Key` returns the original emails without sending them again.

Scope: `write`. Send an `Idempotency-Key` header.

Body:

- `emails` (array of object, required): At most 100 items.
  - `from` (string, required): The sender: an address at one of your verified sending domains, with an optional name, such as `Acme <billing@acme.com>`.
  - `to` (array of string, required): At most 50 items.
  - `cc` (array of string)
  - `bcc` (array of string)
  - `reply_to` (array of string)
  - `subject` (string, required): At most 998 characters.
  - `html` (string): The HTML body. Send `html`, `text` or both.
  - `text` (string): The plain-text body.
  - `headers` (object): Extra headers, such as `List-Unsubscribe`.
  - `tags` (object): Up to 10 `key: value` labels, returned on the email and its webhooks and filterable in the list.
  - `attachments` (array of EmailAttachment)
    - `filename` (string, required)
    - `content` (string, required): The file, base64-encoded.
    - `content_type` (string): Such as `application/pdf`; guessed from the file name when omitted.
  - `scheduled_at` (string): Send later, at most 30 days ahead.

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/emails/batch" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "emails": [
      {
        "from": "from",
        "to": [
          "to"
        ],
        "cc": [
          "cc"
        ],
        "bcc": [
          "bcc"
        ],
        "reply_to": [
          "reply-to"
        ],
        "subject": "subject",
        "html": "html",
        "text": "text",
        "headers": {},
        "tags": {
          "env": "production"
        },
        "attachments": [
          {
            "filename": "filename",
            "content": "content",
            "content_type": "content-type"
          }
        ],
        "scheduled_at": "2026-10-03T09:30:00Z"
      }
    ]
  }'
```

Response `202`:

```json
{
  "data": [
    {
      "id": "eml_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "from": "from",
      "subject": "subject",
      "status": "scheduled",
      "source": "api",
      "recipients": [
        {
          "address": "ada@example.com",
          "kind": "to",
          "status": "queued",
          "reason": null
        }
      ],
      "tags": {
        "env": "production"
      },
      "scheduled_at": "2026-10-03T09:30:00Z",
      "sent_at": "2026-10-03T09:30:00Z",
      "failure_reason": null,
      "created_at": "2026-10-03T09:30:00Z"
    }
  ]
}
```

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
`INVALID_REQUEST_BODY`: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `write` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on email (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
`EMAIL_SENDING_PAUSED`: sending is paused for your organization because too many recent messages bounced or were reported as spam. Contact support.
`ACCOUNT_SUSPENDED`: your organization is suspended. Settle the overdue invoice to send again.
- `409`: `IDEMPOTENCY_CONFLICT`: this Idempotency-Key was already used with a different request. Use a new key.
- `422`: `VALIDATION_FAILED`: `errors` names the field, such as:
`from` `REQUIRED`, `INVALID_ADDRESS` or `DOMAIN_NOT_VERIFIED` (the address must be at one of your verified sending domains).
`to` `REQUIRED` (at least one `to` address), `INVALID_ADDRESS` or `TOO_MANY_RECIPIENTS` (at most 50 in `to`, 500 in all).
`subject` `REQUIRED`; `html`/`text` `REQUIRED` (one of them) or `TOO_LARGE` (the message may not pass 25 MB).
`headers` `RESERVED_HEADER` (such as From, To, Subject, DKIM-Signature or X-Pantech-*); `tags` `INVALID_TAGS`; `attachments` `INVALID_ATTACHMENT`.
`scheduled_at` `INVALID_SCHEDULE` (at most 30 days ahead).
- `429`: `EMAIL_DAILY_LIMIT_REACHED`: your organization reached its daily sending limit, counted per recipient. It resets at midnight UTC (`Retry-After`); contact support to raise it.
`RATE_LIMITED`: too many requests. Wait for `Retry-After` seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Get an email

```http
GET /public/v1/emails/{email_id}
```

One email, each recipient's status and every event that happened to it (sent, delivered, delayed, bounced, complained, failed, suppressed).

Scope: `read`.

Path parameters:

- `email_id`: The email's id (`eml_…`).

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/emails/eml_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "id": "eml_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "from": "from",
  "subject": "subject",
  "status": "scheduled",
  "source": "api",
  "recipients": [
    {
      "address": "ada@example.com",
      "kind": "to",
      "status": "queued",
      "reason": null
    }
  ],
  "tags": {
    "env": "production"
  },
  "scheduled_at": "2026-10-03T09:30:00Z",
  "sent_at": "2026-10-03T09:30:00Z",
  "failure_reason": null,
  "created_at": "2026-10-03T09:30:00Z",
  "events": [
    {
      "type": "sent",
      "recipient": "recipient",
      "code": "starter",
      "detail": "detail",
      "occurred_at": "2026-10-03T09:30:00Z"
    }
  ],
  "events_next_cursor": "events-next-cursor"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `read` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on email (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `404`: `EMAIL_NOT_FOUND`: no email with this id exists in your organization.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## List an email's events

```http
GET /public/v1/emails/{email_id}/events
```

Every event that happened to an email (sent, delivered, delayed, bounced, complained, failed, suppressed), oldest first, a page at a time. `GET /public/v1/emails/{email_id}` carries the first 100 and an `events_next_cursor` to continue from; a cursor belongs to the email it came from.

Scope: `read`.

Path parameters:

- `email_id`: The email's id (`eml_…`).

Query parameters:

- `limit` (integer): Items per page, 1 to 100. Defaults to 50. From 1 to 100. Defaults to `50`.
- `cursor` (string): The previous page's `next_cursor`, to get the next page. Leave out for the first page; keep the other parameters the same.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/emails/eml_06gk3x9tq7m2v8r4y1c5d0zp8w/events" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "data": [
    {
      "type": "sent",
      "recipient": "recipient",
      "code": "starter",
      "detail": "detail",
      "occurred_at": "2026-10-03T09:30:00Z"
    }
  ],
  "next_cursor": "eyJhdCI6IjIwMjYtMTAtMDNUMDk6MzA6MDBaIiwiaWQiOiJ2bV8wNmdrIn0"
}
```

Errors:

- `400`: `INVALID_PAGE`: `limit` is not from 1 to 100.
`INVALID_CURSOR`: the cursor is not one this email's events returned. Start again without it.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `read` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on email (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `404`: `EMAIL_NOT_FOUND`: no email with that id in your organization.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Reschedule an email

```http
PATCH /public/v1/emails/{email_id}
```

Moves a scheduled email to a new `scheduled_at`, at most 30 days ahead. It must be in the future.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `email_id`: The email's id (`eml_…`).

Body:

- `scheduled_at` (string, required)

Example:

```sh
curl -X PATCH "https://api.pantechdynamics.com/public/v1/emails/eml_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "scheduled_at": "2026-10-03T09:30:00Z"
  }'
```

Response `200`:

```json
{
  "id": "eml_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "from": "from",
  "subject": "subject",
  "status": "scheduled",
  "source": "api",
  "recipients": [
    {
      "address": "ada@example.com",
      "kind": "to",
      "status": "queued",
      "reason": null
    }
  ],
  "tags": {
    "env": "production"
  },
  "scheduled_at": "2026-10-03T09:30:00Z",
  "sent_at": "2026-10-03T09:30:00Z",
  "failure_reason": null,
  "created_at": "2026-10-03T09:30:00Z"
}
```

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
`INVALID_REQUEST_BODY`: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `write` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on email (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `404`: `EMAIL_NOT_FOUND`: no email with this id exists in your organization.
- `409`: `EMAIL_NOT_SCHEDULED`: only a scheduled email that has not been sent can be canceled or rescheduled.
- `422`: `VALIDATION_FAILED`: `scheduled_at` `REQUIRED` or `INVALID_SCHEDULE` (in the future, at most 30 days ahead).
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Cancel a scheduled email

```http
POST /public/v1/emails/{email_id}/cancel
```

Cancels a scheduled email before it is sent. Its recipients show as `canceled`.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `email_id`: The email's id (`eml_…`).

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/emails/eml_06gk3x9tq7m2v8r4y1c5d0zp8w/cancel" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Response `200`:

```json
{
  "id": "eml_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "from": "from",
  "subject": "subject",
  "status": "scheduled",
  "source": "api",
  "recipients": [
    {
      "address": "ada@example.com",
      "kind": "to",
      "status": "queued",
      "reason": null
    }
  ],
  "tags": {
    "env": "production"
  },
  "scheduled_at": "2026-10-03T09:30:00Z",
  "sent_at": "2026-10-03T09:30:00Z",
  "failure_reason": null,
  "created_at": "2026-10-03T09:30:00Z"
}
```

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `write` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on email (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `404`: `EMAIL_NOT_FOUND`: no email with this id exists in your organization.
- `409`: `EMAIL_NOT_SCHEDULED`: only a scheduled email that has not been sent can be canceled or rescheduled.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Get sending status

```http
GET /public/v1/email/sending
```

Your organization's sending status and daily limit. A new organization starts in `sandbox` (20 recipients a day, free) until Pantech reviews it for `production`; sending is `paused` when recent bounce or complaint rates are too high. `smtp` has the settings for sending over SMTP with a sending key.

Scope: `read`.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/email/sending" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "status": "sandbox",
  "daily_limit": 1,
  "sent_today": 1,
  "pause_reason": "bounce_rate",
  "pack_balance": 1,
  "smtp": {
    "host": "smtp.pantechdynamics.com",
    "ports": [
      1
    ],
    "username": "username",
    "security": "starttls"
  }
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `read` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on email (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## List suppressed addresses

```http
GET /public/v1/email/suppressions
```

Addresses Pantech will not send to for your organization, newest first: those that bounced permanently, reported an email as spam, or that you added. `q` finds addresses containing it.

Scope: `read`.

Query parameters:

- `limit` (integer): Items per page, 1 to 100. Defaults to 50. From 1 to 100. Defaults to `50`.
- `cursor` (string): The previous page's `next_cursor`, to get the next page. Leave out for the first page; keep the other parameters the same.
- `q` (string): At most 254 characters.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/email/suppressions" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "data": [
    {
      "address": "ada@example.com",
      "reason": "hard_bounce",
      "email_id": "eml_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "created_at": "2026-10-03T09:30:00Z"
    }
  ],
  "next_cursor": "eyJhdCI6IjIwMjYtMTAtMDNUMDk6MzA6MDBaIiwiaWQiOiJ2bV8wNmdrIn0"
}
```

Errors:

- `400`: `INVALID_FILTER`: `q` is longer than 254 characters.
`INVALID_CURSOR`: the cursor is not one this list returned. Start again without it.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `read` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on email (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Suppress an address

```http
POST /public/v1/email/suppressions
```

Adds an address to your suppression list: emails to it are no longer sent. Owners and admins only.

Scope: `write`. Send an `Idempotency-Key` header.

Body:

- `address` (string, required)

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/email/suppressions" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "address": "ada@example.com"
  }'
```

Response `201`:

```json
{
  "address": "ada@example.com",
  "reason": "hard_bounce",
  "email_id": "eml_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "created_at": "2026-10-03T09:30:00Z"
}
```

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
`INVALID_REQUEST_BODY`: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `write` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on email (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `409`: `EMAIL_SUPPRESSION_EXISTS`: the address is already on your suppression list.
- `422`: `VALIDATION_FAILED`: `address` `INVALID_ADDRESS`.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Remove a suppressed address

```http
DELETE /public/v1/email/suppressions/{address}
```

Removes an address from your suppression list, so emails to it are sent again. Remove an address only when you know it accepts mail again: a second permanent bounce suppresses it again and counts against your bounce rate. Owners and admins only.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `address`: The suppressed address, URL-encoded.

Example:

```sh
curl -X DELETE "https://api.pantechdynamics.com/public/v1/email/suppressions/id_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Response `204`: Removed.

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `delete` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on email (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `404`: `EMAIL_SUPPRESSION_NOT_FOUND`: the address is not on your suppression list.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Get email packs

```http
GET /public/v1/email/packs
```

Your organization's prepaid email packs: the emails left, the price of a pack of 1,000 in your billing currency (before VAT), and recent purchases. A `production` organization sends from its packs, one email per recipient; the `sandbox` sends up to 20 recipients a day for free and does not use packs. The balance can go below zero by SMTP mail accepted just as the packs ran out; the next pack covers it.

Scope: `read`.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/email/packs" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "balance": 1,
  "pack_size": 1,
  "max_packs_per_order": 1,
  "sandbox_daily_free": 1,
  "status": "sandbox",
  "price": {
    "currency": "NGN",
    "amount_minor": 1059200
  },
  "orders": [
    {
      "id": "epo_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "packs": 1,
      "emails": 1,
      "currency": "NGN",
      "amount_minor": 1059200,
      "total_minor": 1,
      "status": "pending",
      "failure_code": "insufficient_credit",
      "paid_at": "2026-10-03T09:30:00Z",
      "created_at": "2026-10-03T09:30:00Z"
    }
  ],
  "orders_next_cursor": "orders-next-cursor"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `read` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on email (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Buy email packs

```http
POST /public/v1/email/packs
```

Buys `packs` packs of 1,000 emails, charged to your organization's credit. The answer is a `pending` order: it is charged within a few seconds, then becomes `paid` (the emails are added) or `failed` with `failure_code` `insufficient_credit` (nothing is charged; add credit and buy again). Follow it with `GET /public/v1/email/pack-orders/{email_pack_order_id}`. Packs do not expire.

Scope: `write`. Send an `Idempotency-Key` header.

Body:

- `packs` (integer, required): Packs of 1,000 emails to buy. From 1 to 1000.

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/email/packs" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "packs": 1
  }'
```

Response `202`:

```json
{
  "id": "epo_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "packs": 1,
  "emails": 1,
  "currency": "NGN",
  "amount_minor": 1059200,
  "total_minor": 1,
  "status": "pending",
  "failure_code": "insufficient_credit",
  "paid_at": "2026-10-03T09:30:00Z",
  "created_at": "2026-10-03T09:30:00Z"
}
```

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `write` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on email (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `409`: `IDEMPOTENCY_KEY_REUSED`: this `Idempotency-Key` was already used for a different purchase. Send a new key.
`EMAIL_PACKS_NOT_SOLD`: email packs are not sold in your organization's currency yet.
`ACCOUNT_SUSPENDED`: your organization is suspended and cannot buy anything until its balance is settled.
- `422`: `VALIDATION_FAILED`: `packs` must be a whole number from 1 to 1000.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## List email pack orders

```http
GET /public/v1/email/pack-orders
```

Every purchase of email packs, newest first, a page at a time. `GET /public/v1/email/packs` carries the 20 most recent and an `orders_next_cursor` to continue from.

Scope: `read`.

Query parameters:

- `limit` (integer): Items per page, 1 to 100. Defaults to 50. From 1 to 100. Defaults to `50`.
- `cursor` (string): The previous page's `next_cursor`, to get the next page. Leave out for the first page; keep the other parameters the same.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/email/pack-orders" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "data": [
    {
      "id": "epo_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "packs": 1,
      "emails": 1,
      "currency": "NGN",
      "amount_minor": 1059200,
      "total_minor": 1,
      "status": "pending",
      "failure_code": "insufficient_credit",
      "paid_at": "2026-10-03T09:30:00Z",
      "created_at": "2026-10-03T09:30:00Z"
    }
  ],
  "next_cursor": "eyJhdCI6IjIwMjYtMTAtMDNUMDk6MzA6MDBaIiwiaWQiOiJ2bV8wNmdrIn0"
}
```

Errors:

- `400`: `INVALID_PAGE`: `limit` is not from 1 to 100.
`INVALID_CURSOR`: the cursor is not one this list returned. Start again without it.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `read` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on email (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Get an email pack order

```http
GET /public/v1/email/pack-orders/{email_pack_order_id}
```

One purchase of email packs, to see whether it was charged.

Scope: `read`.

Path parameters:

- `email_pack_order_id`: The order's id (`epo_…`).

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/email/pack-orders/epo_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "id": "epo_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "packs": 1,
  "emails": 1,
  "currency": "NGN",
  "amount_minor": 1059200,
  "total_minor": 1,
  "status": "pending",
  "failure_code": "insufficient_credit",
  "paid_at": "2026-10-03T09:30:00Z",
  "created_at": "2026-10-03T09:30:00Z"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `read` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this. Use a key created by an owner or admin.
`ACCESS_DENIED`: your organization's access policies do not allow this action on email (`detail` names the action). Ask an owner or admin to grant it.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `404`: `EMAIL_PACK_ORDER_NOT_FOUND`: no email pack order with this id exists in your organization.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `EMAIL_UNAVAILABLE`: email is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
