Creating a key
Open the profile menu → API Access → Create new API key. Pick the permissions it needs, then copy the key — it starts withmpi_ and is shown once.
Permissions
Keys are scoped. A key only carries the permissions you granted it. On most routes a call outside them is answered401, exactly as an invalid key would
be — so when a key that works elsewhere gets a 401, check its permissions
before you replace it. The scraper routes (/api/scrape*) and published
endpoints (/v1/e/…) say so explicitly with a 403 instead.
A key is also held to its owner’s role. It
never does more than that role allows, whatever permissions it carries, and
narrowing the role narrows the key. A call the role doesn’t allow returns 403
with code: "permission_denied", the area and, when an action is missing, the
action; error says why. Once the owner leaves a workspace, their keys no
longer reach it.
A new key starts with every permission ticked, so it works with any integration
— Zapier, n8n, MCP — out of the box. Untick what the key will never need before
you create it.
How permissions map to routes
Reading a validation job is a read; starting one spends credits — which is why
a bare
write key cannot run up a validation bill.
Keys issued before the permission catalogue existed are honoured with their
original access, so upgrading did not break anyone’s live integration. Keys
created today get exactly the permissions you pick.
Rate limits
Requests are limited per workspace, by its plan. Every key and OAuth token acting in the workspace draws from the same budget, so adding keys adds no capacity.
A change of plan applies from the next request. You can also hold a single key
below its plan’s limit in its settings, so one integration cannot use up what
the others need.
Every response to a key or OAuth token carries
X-RateLimit-Limit,
X-RateLimit-Remaining and X-RateLimit-Reset (seconds until the one-minute
window resets). Going over returns 429 with a Retry-After header:
scope is key when the key’s own limit was reached and workspace when the
plan’s was.
Usage limits
Each key can carry spend limits per day, week or month (UTC) for AI credits, crawls and email validations. They count the agent runs, lead searches, scrapes and validation jobs that key starts. Once a limit is reached, starting more returns429 with
code: "api_key_limit" and resets_at. An agent run already going stops at its
next step with error: "api_key_limit", keeping every lead it saved. Your
workspace’s credits still apply on top: a usage limit can only lower what a key
may spend.
Set both kinds of limit when you create a key, or later from the key’s panel
under Developers → API keys.
Rotating and revoking
Revoke a key the moment it might be exposed. Revocation is immediate: in-flight requests fail, and every future call with that key is rejected. To rotate without downtime: create the new key, deploy it, confirm traffic has moved, then revoke the old one.Keeping keys safe
Server-side only
Server-side only
Never ship a ManyPI key in frontend JavaScript, a mobile binary or anything
a user can open. Proxy through your own backend.
One key per integration
One key per integration
Separate keys per system means you can revoke one without taking the others
down, and the usage log tells you which system did what.
Least privilege
Least privilege
A reporting dashboard needs
read. It does not need outreach:send.Environment variables
Environment variables
Keep keys in your secret manager or environment, never in the repository.
Add
.env to .gitignore before the first commit, not after.OAuth instead of keys
MCP clients that support OAuth 2.1 can connect with no key at all: the client registers itself, you approve it in the browser, and it acts as you until you revoke it. Review and revoke connected apps in Settings → Connected apps. Revoking kills that client’s sessions and invalidates its tokens immediately.MCP authentication
How the OAuth handshake works and when to prefer it over a key.
