MessagePipedocs
Concepts

API keys

Authenticate the Send API. Provision, scope, rotate, revoke.

API keys authenticate every call to the Send API. They are project-scoped, so a key issued for Staging cannot send through Production.

Shape

mp_live_8C4E2A1F0D8C4E2A1F0D8C4E2A1F0D8C
└── mode ──┘└──────── 32-char base32 secret ──────┘
  • mp_live_: production traffic. Counts toward billable credits.
  • mp_test_: sandbox traffic. Free, capped, never delivers to real recipients.

The full secret is shown exactly once at creation. MessagePipe stores only an Argon2id hash; the secret cannot be recovered.

Scopes

ScopeWhat it permits
send:emailCall POST /v1/email/send and /send-bulk.
send:smsCall POST /v1/sms/send and /send-bulk.
send:pushCall POST /v1/push/send and /send-bulk.
send:chatCall POST /v1/chat/send and /send-bulk.
sends:readRead send history (GET /v1/sends, GET /v1/sends/{id}).
templates:readRead templates via the Send API.
analytics:readRead analytics.
contacts:read, contacts:write, consent:write, contacts:eraseContacts and consent. contacts:erase is irreversible.
suppressions:read, suppressions:writeRead and manage suppressions.
campaigns:read, campaigns:writeRead campaigns; create, edit, pause and cancel them. See Campaigns.
campaigns:sendStart, resume and test-send campaigns. Spends credits.
segments:read, segments:writeSegments. See Segments.
content:read, content:writeCampaign templates, layouts, previews and content checks.
audience:readRead brands, topics, consent statements, settings and tracking-domain status.
audience:adminChange brands and sender domains, topics, consent statements, sending rules and tracking domains.
imports:read, imports:writeContact imports. See Imports.
forms:read, forms:writeSignup forms. See Forms.
credits:readRead the credit balance and ledger. See Credits.

The scopes that spend credits or change who can be mailed (campaigns:send, audience:admin, imports:write, contacts:erase) are never pre-selected: a key has one only when someone ticks it. A write scope does not give its read scope. audience:admin routes act as a workspace admin, so the key must have been created by a workspace owner or admin. Account-level actions (sign-in, members, billing, key management, provider credentials) are not available to a key at all.

A key may carry any combination. Minimum-privilege is good hygiene: a server that only sends email needs only send:email. Bulk sends use the same send:<channel> scope as single sends; there is no separate bulk scope.

Rotation

Rotation issues a new secret and puts the old one into a 14-day grace window. Both keys work until the window closes, so you can deploy the new secret with zero downtime. Cancel a rotation by revoking either the old or new key.

Authorization header

Authorization: Bearer mp_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx