Skip to Content

All endpoints

Every route the Plunk API exposes, grouped by resource

The pages in this section document the endpoints you call from your own code. This index lists every route, including the ones the dashboard uses, so you can find what exists before reaching for the request details.

POST /v1/track is the only route that takes the public key. Every other route takes your secret key, except the account routes near the end, which the dashboard calls with a session cookie.

Public API

The /v1/* endpoints are designed for use from your applications and accept simple, denormalised payloads. POST /v1/track is the only endpoint callable with a public (pk_*) key.

MethodPathDescriptionKey
POST/v1/sendSend a transactional email. Single or multiple recipients, template or inline content, attachments, headers, custom data.sk_*
POST/v1/trackTrack an event for a contact. Auto-creates or upserts the contact. Triggers workflows.pk_*
POST/v1/verifyValidate an email address — format, MX records, disposable domains, typo detection.sk_*

Contacts

MethodPathDescription
GET/contactsList contacts. Supports search (by email substring), limit, cursor.
POST/contactsCreate or upsert a contact by email. Returns _meta.isNew and _meta.isUpdate.
GET/contacts/:idGet a single contact.
PATCH/contacts/:idUpdate a contact's email, subscription state, or data fields.
DELETE/contacts/:idDelete a contact.
POST/contacts/lookupBulk email-existence check (max 500 emails per call).
Custom fields
GET/contacts/fieldsList standard and custom fields with inferred types and coverage percentages.
GET/contacts/fields/:field/valuesDistinct values for a custom field — used by segment / workflow filter UIs.
GET/contacts/fields/:field/usageWhere a custom field is referenced (segments, campaigns, workflows).
DELETE/contacts/fields/:fieldDelete a custom field across every contact in the project.
CSV import
POST/contacts/importUpload a CSV file (multipart, ≤ 5 MB). Queued — returns a jobId.
GET/contacts/import/:jobIdPoll the status of a CSV import job.
Bulk operations
POST/contacts/bulk-subscribeSubscribe up to 1,000 contacts by ID. Queued — returns a jobId.
POST/contacts/bulk-unsubscribeUnsubscribe up to 1,000 contacts by ID. Queued.
POST/contacts/bulk-deleteDelete up to 1,000 contacts by ID. Queued.
GET/contacts/bulk/:jobIdPoll the status of a bulk job.

Templates

MethodPathDescription
GET/templatesList all templates.
POST/templatesCreate a template. from must be on a verified domain.
GET/templates/:idGet a template.
PATCH/templates/:idUpdate a template.
DELETE/templates/:idDelete a template.
POST/templates/:id/duplicateDuplicate a template — returns the new template ID.
GET/templates/:id/usageList campaigns and workflow steps that reference this template.

Campaigns

MethodPathDescription
GET/campaignsList all campaigns.
POST/campaignsCreate a campaign in DRAFT. from must be on a verified domain.
GET/campaigns/:idGet a campaign.
PUT/campaigns/:idUpdate a campaign (replace).
DELETE/campaigns/:idDelete a campaign. Returns 409 if it has active executions.
POST/campaigns/:id/duplicateDuplicate a campaign — returns the new campaign in DRAFT.
POST/campaigns/:id/sendSend (or schedule) the campaign. Pass scheduledFor for delayed sends.
POST/campaigns/:id/cancelCancel a SCHEDULED or SENDING campaign.
POST/campaigns/:id/testSend a test email to a single address ({ email: "you@example.com" }).
GET/campaigns/:id/statsGet current send / open / click / bounce counts.

Segments

MethodPathDescription
GET/segmentsList all segments (no pagination — small list).
POST/segmentsCreate a segment. type: "DYNAMIC" requires condition; type: "STATIC" rejects it.
GET/segments/:idGet a segment, including cached memberCount.
PATCH/segments/:idUpdate name, description, condition (dynamic only), or trackMembership.
DELETE/segments/:idDelete a segment. Returns 409 if used by an active campaign.
GET/segments/:id/contactsPage-based list of segment members. page, pageSize (max 100). Live for dynamic segments.
POST/segments/:id/membersAdd emails to a static segment. Body: { emails, createMissing?, subscribed? }.
DELETE/segments/:id/membersRemove emails from a static segment. Body: { emails }.
POST/segments/:id/computeRecompute membership for a tracked dynamic segment — fires entry/exit events.
POST/segments/:id/refreshCheap count refresh — no events, no membership writes.

Workflows

Each workflow consists of a workflow record, a graph of steps, transitions between them, and per-contact executions. The API mirrors that structure.

MethodPathDescription
GET/workflowsList all workflows.
GET/workflows/fieldsFields available to use in CONDITION step filters (contact + event fields).
POST/workflowsCreate a workflow. Always starts with triggerType: EVENT and enabled: false.
GET/workflows/:idGet a workflow with its steps and transitions.
PATCH/workflows/:idUpdate workflow metadata, trigger type / config, enabled, allowReentry, throttle.
DELETE/workflows/:idDelete a workflow. Active executions must be cancelled or completed first.
Steps
POST/workflows/:id/stepsAdd a step (SEND_EMAIL, DELAY, WAIT_FOR_EVENT, CONDITION, WEBHOOK, UPDATE_CONTACT, EXIT).
PATCH/workflows/:id/steps/:stepIdUpdate a step's config.
DELETE/workflows/:id/steps/:stepId?splice=trueDelete a step. Pass splice=true to auto-reconnect surrounding transitions.
Transitions
POST/workflows/:id/transitionsAdd a transition between two steps. For CONDITION steps, include branch: "yes" | "no".
DELETE/workflows/:id/transitions/:transitionIdDelete a transition.
Executions
POST/workflows/:id/executionsManually start an execution for a contact. Optional context JSON for per-execution variables.
GET/workflows/:id/executionsList executions, filterable by status.
GET/workflows/:id/executions/:executionIdGet a single execution.
DELETE/workflows/:id/executions/:executionIdCancel a running or waiting execution.
POST/workflows/:id/executions/cancel-allCancel every active execution at once.

Events

MethodPathDescription
POST/events/trackInternal alias for /v1/track, for dashboard use. Use /v1/track from your apps.
GET/eventsList recent tracked events for a project.
GET/events/statsAggregated event statistics.
GET/events/contact/:contactIdAll events for a single contact.
GET/events/namesAll distinct event names tracked in this project.
GET/events/:eventName/usageWhere an event name is referenced (segment filters, workflow triggers, conditions).
DELETE/events/:eventNameDelete every event with the given name from the project.

Domains

MethodPathDescription
GET/domains/project/:projectIdList domains configured for a project (verified and pending).
POST/domainsAdd a domain for verification. Returns the DNS records you need to add.
GET/domains/:id/verifyForce a verification check now (otherwise checked every 5 minutes in the background).
DELETE/domains/:idRemove a domain.

Activity & analytics

MethodPathDescription
GET/activityCross-resource activity feed (sends, opens, clicks, bounces, complaints, inbound, etc.).
GET/activity/statsAggregated counts for dashboard charts.
GET/activity/recent-countRecent event count for the dashboard's "live" indicator.
GET/activity/typesDistinct activity types in the project.
GET/activity/upcomingUpcoming scheduled sends and active executions.
GET/analytics/timeseriesEmail send / open / click time-series.
GET/analytics/top-campaignsTop-performing campaigns by metric.
GET/analytics/campaign-statsCampaign-level breakdown.
GET/analytics/top-eventsMost frequent custom event names.

Uploads

MethodPathDescription
POST/uploads/imageUpload an image (multipart) for use inside template bodies. Returns a public URL.

Authentication & user management

The dashboard authenticates with JWT cookies; these endpoints mostly aren't useful from server-to-server integrations but are documented here for completeness.

MethodPathDescription
POST/auth/loginEmail + password login. Sets a JWT cookie.
POST/auth/signupSign up a new user (subject to DISABLE_SIGNUPS).
POST/auth/logoutClear the auth cookie.
GET/auth/oauth-configWhich OAuth providers are configured.
POST/auth/verify-emailVerify an email with a token from an email link.
POST/auth/request-verificationResend the verification email.
POST/auth/request-password-resetSend a password reset email.
POST/auth/reset-passwordReset a password with a token.
GET/users/@meGet the current user.
GET/users/@me/projectsList the user's projects.
POST/users/@me/projectsCreate a project.
PATCH/users/@me/projects/:idUpdate project settings.
POST/users/@me/projects/:id/regenerate-keysRotate both API keys.
POST/users/@me/projects/:id/checkoutCreate a Stripe Checkout session.
POST/users/@me/projects/:id/billing-portalOpen the Stripe billing portal.
GET/users/@me/projects/:id/billing-limitsRead per-category billing caps.
PUT/users/@me/projects/:id/billing-limitsUpdate per-category billing caps.
GET/users/@me/projects/:id/billing-consumptionCurrent period consumption for the project.
GET/users/@me/projects/:id/billing-invoicesStripe invoices for the project.
GET/users/@me/projects/:id/securitySecurity info — bounce/complaint rates, recent suspensions.
POST/users/@me/projects/:id/resetWipe project data (irreversible).
DELETE/users/@me/projects/:idDelete the project entirely.
GET/projects/:id/setup-stateOnboarding setup state.
GET/projects/:id/securitySecurity state for a single project.
GET/projects/:id/membersProject team members.
POST/projects/:id/membersInvite a team member.
PATCH/projects/:id/members/:userIdChange a member's role.
DELETE/projects/:id/members/:userIdRemove a member.

Configuration

MethodPathDescription
GET/configPublic, no-auth feature flags — which integrations are enabled (OAuth providers, billing, S3, SMTP, …).

Internal webhook endpoints

These endpoints receive events from the underlying email and billing infrastructure. You don't call them from your applications — they're listed for completeness for self-hosters.

MethodPath
POST/webhooks/sns
POST/webhooks/incoming/stripe

On this page