---
name: parasend
description: Integrate the Parasend API — registered electronic delivery with proof of receipt (Iceland, EU). Use when writing code that sends documents through Parasend, follows them up, fetches the Delivery Certificate or evidence record, runs campaigns, passes delivery costs on, or receives Parasend webhooks.
---

# Parasend

Parasend sends documents to a person who identifies (often with an electronic ID) and confirms receipt. Parasend keeps sealed evidence of every step and issues a Delivery Certificate that anyone can check at parasend.com/verify.

- **API:** `https://api.parasend.com/v1`. REST and JSON, with signed webhooks. Hosted in the EU (AWS Ireland).
- **Docs:** every page has a Markdown twin. Start at https://parasend.com/docs/llms.txt; the OpenAPI 3.1 description is https://parasend.com/docs/openapi.json.
- **MCP server:** `https://mcp.parasend.com/mcp`, for an assistant that should do the work itself rather than write code (https://parasend.com/docs/mcp.md).

## Rules

1. **No key yet?** The person signs up, free, with their own eID at https://app.parasend.com/register?source=llms. They must do it themselves. Read the key from the environment (`PARASEND_KEY`). Never ask anyone to paste a live key into a chat.
2. **Test first.** `ps_test_…` keys send no e-mail or SMS and bill nothing, and the recipient's one-time code is always `000000`. Switch to a `ps_live_…` key only when the integration works.
3. **`Idempotency-Key` on every POST.** A retry with the same key returns the first answer and never sends twice. Use one key per intended action, such as your own record's ID.
4. **No personal data in URLs, logs or `metadata`.** That covers a kennitala, an e-mail address or a phone number. Search by them with the query parameters the API documents, never in a path.
5. **Keep the delivery ID.** The proof is the Delivery Certificate (`GET /deliveries/{id}/evidence/document`, PDF) and the evidence record (`GET /deliveries/{id}/evidence/record`, XML). Fetch and keep them once the delivery is confirmed.
6. **Verify every webhook.** Check the `Parasend-Signature` header with the endpoint's secret before trusting a webhook's body (https://parasend.com/docs/webhooks.md).
7. **Errors say what to do.** Every error has `type`, `code`, `message` and a `doc_url`. Branch on `code`, never on the message. Retry `429` and `5xx` with backoff, using the same `Idempotency-Key`.
8. **Lists paginate.** Follow `next_cursor` while `has_more` is true (https://parasend.com/docs/pagination.md).

## The flows

**1. Send and prove**
1. `POST /files` (multipart) gives a `fil_…` ID.
2. `POST /deliveries` takes the recipient (an e-mail address, a phone number or both, and a `verification_level` of `high` (eID), `substantial`, `medium` or `low`), the `files`, a `title` and an optional `message`.
3. Parasend notifies the recipient: `delivery.notified`.
4. The recipient opens, identifies and confirms: `delivery.opened`, then `delivery.confirmed`.
5. Your webhook endpoint hears each step, or you poll `GET /events`.
6. Once `delivery.evidence_sealed` arrives, keep the certificate and the record.

**2. Your own look:** brand profiles (`/brand_profiles`), your own e-mail sender (`/email_senders`) and link domain (`/recipient_domains`), chosen per delivery with `options.brand_profile_id`.

**3. Many at once:** a campaign. Use `POST /batches`, add deliveries in groups (`POST /batches/{id}/deliveries`), then `POST /batches/{id}/finalize`. Follow it with `GET /batches/{id}/report`.

**4. Debt collection, with the cost passed on:** send under a follow-up policy (`options.reminder_policy`). Read what each delivery cost with `GET /deliveries/{id}/cost`, or with `GET /deliveries/costs` for a campaign, a list or one person. Pass on only what says `billed: true`.

**5. Only this person may open it:** at `verification_level: high`, set `personal_code` and `conditional_authentication: true`, and only that person's eID opens the delivery.

## Test mode

- Nothing is sent and nothing is billed. Deliveries move on as if notices went out.
- Open a test delivery's `delivery_url` yourself to act as the recipient. The one-time code is `000000`.
- Test and live never see each other's objects. A test webhook endpoint gets only test events.
- A test certificate carries a TEST badge and is never evidence.

## Where to read more

- Quickstart: https://parasend.com/docs/quickstart.md
- Integration flows, with every step: https://parasend.com/docs/flows.md
- Error codes: https://parasend.com/docs/errors.md
- The whole API in one file: https://parasend.com/docs/llms-full.txt
