Skip to content
ProgrammableContact

Email marketing your code can talk to

Contact is built API-first. Your app sends its accounts and events with one call each, asks whether to show the consent question and records the answer, checks whether an address may be mailed, and hears back about subscriptions, bounces and replies through signed webhooks that carry ids, never addresses.

Your app stays the source of truth for accounts and moments; Contact is the source of truth for what each person agreed to and what was sent to them. Neither polls the other: your app posts events as they happen, and Contact's webhooks tell your servers what changed.

POST /api/v1/events
{
  "id": "evt_91c4",
  "type": "lifecycle.trial_ending",
  "created_at": "2026-11-23T09:00:00Z",
  "data": {
    "account_ref": "acct_41",
    "sub": "u_8k2…",
    "once_key": "trial_2026_11"
  }
}
An app telling Contact a lifecycle moment. The answer says whether it was sent, and if not, why.

What it does

Developers in Programmable Contact

  • OpenAPI 3.1

    Every route is described at /openapi.json, held to the route files by a test in both directions.

  • Account and lifecycle events

    POST /api/v1/events with the suite envelope (id, type, created_at, data), idempotent on id. user.created, user.updated, plan.changed, user.deleted and lifecycle.<name>.

  • The consent API

    POST /api/v1/consents/prompt says whether to ask a person now and returns the exact wording; POST /api/v1/consents records their answer.

  • A suppression check

    POST /api/v1/suppressions/check: may this address get this topic? The same check every send uses.

  • Signed webhooks

    contact.subscribed, contact.unsubscribed, lead.confirmed, message.bounced, campaign.finished, reply.received and more, signed with X-Programmable-Signature, retried, carrying ids only.

  • Keys with scopes

    Secret keys (pct_) with read, events:write or full, optionally bound to one app; publishable keys (pcf_) for forms.

How it works

  1. 1

    Make a key

    On the API keys page, bound to your app with events:write.

  2. 2

    Backfill

    PUT /api/v1/contacts/batch with your accounts. It's idempotent and subscribes nobody.

  3. 3

    Send events

    On sign-up, plan change, deletion and each lifecycle moment.

  4. 4

    Listen

    Add a webhook endpoint and verify each delivery's signature.

Good to know

No send endpoint
Nothing in the API sends, tests, approves or schedules a campaign. A key can draft; a person sends.
No delete by key
There's no DELETE for a contact. Erasure is a person's, in the dashboard or by their own link.
Not transactional email
Contact sends marketing and lifecycle mail tied to a topic. Receipts and password resets belong with your transactional provider.
Webhooks need the scheduler
Deliveries go out on Contact's scheduled run, with retries, so they arrive shortly after the change rather than instantly.

Questions

Can my app check consent before its own sends?

Yes. POST /api/v1/suppressions/check answers for an address and a topic with the same rules Contact's own sends use.

Is there an SDK?

No SDK: the API is plain JSON over HTTPS with a bearer key, described as OpenAPI 3.1 for any generator.

How are errors shaped?

{ error: { code, message } }, with a stable code to branch on.

Can I use Contact for transactional email?

No. Use your transactional provider for receipts and resets, and Contact for mail people can choose to stop.

Are webhooks signed?

Yes, with X-Programmable-Signature (t=…, v1=…), X-Programmable-Id and X-Programmable-Event, in the programmable_v1 envelope.

Every plan has all of it.

Plans differ only in how many contacts you keep and how much email you send.