---
title: "Send one row to yourself"
method: POST
path: "/mailmerge/campaigns/{campaign_id}/test"
tags: ["Mail merge"]
---

# Send one row to yourself

`POST /mailmerge/campaigns/{campaign_id}/test`

## Request

- Base URL: `https://api.podpdf.com`
- URL: `https://api.podpdf.com/mailmerge/campaigns/{campaign_id}/test`
- Auth: API key in header `X-API-Key`

Renders one row's real PDF and sends it to `to` (default: the account email) with
`[Test]` before the subject. Charged as one PDF; five per campaign.

## Request body

- object
  - `row_index` integer
  - `to` string, email

## Response `200`

Sent

- object
  - `sent` boolean
  - `to` string, email
  - `row_index` integer
  - `subject` string
  - `attachment_filename` string
  - `pages` integer
  - `message_id` string
  - `charged` boolean

## Other responses

- `400`: The request was invalid
- `401`: Missing or invalid API key
- `403`: `INSUFFICIENT_CREDITS`, `CONVERSION_TYPE_NOT_ENABLED`, `PDF_TOOLS_NOT_ENABLED`, `RATE_LIMIT_EXCEEDED` or `ACCOUNT_NOT_FOUND`. Note that a plan's rate limit is a 403, not a 429.
- `404`: No such resource for this account
- `409`: `MAILMERGE_NOT_DRAFT`
- `422`: The values did not validate; `error.details` says which
- `429`: `TEST_SEND_LIMIT`
- `502`: `CONNECTION_TEST_FAILED` — the mail server refused the message; `details.kind` says how

---

[API](https://skmtc.dev/podpdf/apis/podpdf-api.md) · [All operations](https://skmtc.dev/podpdf/apis/podpdf-api/llms.txt) · [OpenAPI document](https://skmtc.dev/podpdf/apis/podpdf-api/revisions/84eb21f3ee27?raw)
