Newsletter contacts
Add and update newsletter subscribers, tag them, look them up and list your lists, tags and fields.
/v1/contactsThe contacts API works on the subscribers of your organization’s newsletters. It needs a key with contacts:read to read and contacts:write to change anything, and an organization Prawnwire has turned Newsletters on for. Without Newsletters every call returns ErrorCode 1235.
Errors use Postmark’s shape: { "ErrorCode": 300, "Message": "..." }, always with HTTP 422 except for authentication (401 and 403), rate limits (429) and 1243 (503). Data comes back as { "data": ... }.
The contact
{
"id": "7c0c6f0e-4f0e-4c52-9a43-3f1d9a0f8a11",
"email": "grace@example.com",
"name": "Grace Hopper",
"status": "subscribed",
"tags": ["customer"],
"fields": { "plan": "pro" },
"lists": ["0b9a5d1e-7a41-4c0b-8f0e-6c1c3a9b2d10"],
"consent": { "source": "api", "at": "2026-11-20T10:00:00.000Z" },
"created_at": "2026-11-20T10:00:00.000Z",
"status_changed_at": "2026-11-20T10:00:00.000Z"
} status is subscribed, unsubscribed, bounced or complained. lists is left out of the paged list and of GET /v1/contacts/recent. Addresses are stored lowercase, and an address is a separate contact in each organization.
Create or update a contact
POST /v1/contacts needs contacts:write. Send JSON:
| Field | Meaning |
|---|---|
email | Required. The contact is found by this address. |
name | Optional. Replaces the name of an existing contact. |
fields | Optional. An object of contact field values by key. A value of null clears the field. |
tags | Optional. Up to 20 tags, lowercased. Added to the ones the contact has. |
lists | Optional. Up to 20 list ids from GET /v1/lists. The contact joins them. |
consent_statement | Required for a new contact. Where this person agreed to hear from you, in your words, up to 1,000 characters. |
curl -X POST https://api.prawnwire.com/v1/contacts \
-H "Authorization: Bearer $PRAWNWIRE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"grace@example.com","name":"Grace Hopper","tags":["customer"],"fields":{"plan":"pro"},"consent_statement":"Ticked the newsletter box at checkout"}' A new contact answers HTTP 201 with { "created": true, "data": { ... } }. An existing contact answers 200 with "created": false. A new contact is stored with consent source api, your statement, and the key that made it, so you can show where each subscriber came from.
Nothing is written when a request is refused. A missing consent statement, an unknown field key, a value that does not fit its field’s type, or a list that is not yours returns ErrorCode 300. A new contact that would go over the contact limit returns 405.
Unsubscribed contacts are never resubscribed
The API does not bring back someone who unsubscribed, bounced or complained. For such a contact POST /v1/contacts and POST /v1/contacts/tags return ErrorCode 1241 and change nothing: not the name, tags, fields or lists. Only the person can subscribe again, through a signup form.
Look contacts up
GET /v1/contacts?email=grace@example.comreturns{ "data": [contact] }, or an empty array when there is no such contact.GET /v1/contactspages the contacts by email address. Narrow it withstatusandtag, and page withlimit(1 to 200, default 50) andoffset. The answer has atotal.GET /v1/contacts/{ContactID}returns one contact, or ErrorCode1240.GET /v1/contacts/recent?event=subscribedlists the newest subscribers, newest first, andevent=unsubscribedthe people who left most recently.limitis 1 to 100, default 25. Use it to poll for changes when you cannot take webhooks.
Tags
POST /v1/contacts/tags adds a tag and POST /v1/contacts/tags/remove removes one. Send { "email": "grace@example.com", "tag": "vip" }. Both answer with the contact. A contact that does not exist returns ErrorCode 1240. A contact that is not subscribed cannot be tagged (1241), but its tags can still be removed.
GET /v1/tags lists every tag in use as { "tag": "vip", "count": 12 }.
Lists
GET /v1/lists returns id, name, double_opt_in, member_count (subscribed members only) and created_at for each list.
Fields
GET /v1/fields returns the organization’s contact fields as { "key": "plan", "label": "Plan", "type": "text" }. type is text, number or date. Send values as text: a number as "42", a date as "2026-11-20". Create and rename fields in the console.
Scopes and limits
| Scope | Permits |
|---|---|
contacts:read | Look up and list contacts, lists, tags and fields. |
contacts:write | Create and update contacts, add and remove tags, and subscribe or remove webhook hooks. |
Calls count against the key’s request rate limit like any other. The contacts API never sends mail; sending newsletters goes through the console.