Skip to content

Create and manage API keys

Give your own systems access to Polzy's API: create a key with only the scopes it needs, then rotate, revoke or delete it — and know whose access it carries.

Polzy team7 min readUpdated 11 Nov 2026Team and up
On this page
  1. 1Before you start
  2. 2Create a key
  3. 3Use a key
  4. 4Whose access a key carries
  5. 5Your keys
  6. 6Rotate a key
  7. 7Revoke, delete and expiry
  8. 8What the Owner is told
  9. 9Limits
  10. 10Troubleshooting
  11. 11Good to know

An API key lets one of your own systems use Polzy's REST API: list surveys, read results by theme and group, create actions, and register webhooks. Each key belongs to one workspace, can do only what its scopes allow, and carries the access of the admin who made it.

API access is on Team and up, and only workspace admins can create and manage keys, under Settings → API. The workspace must also have API access switched on under Settings → General → What this workspace does.

Before you start

  • Decide what the key is for, and name it after that — the system that will use it, such as "Data warehouse".
  • Decide which scopes it needs. A key's scopes cannot be changed afterwards; for different scopes, make a new key.
  • Have a secret manager ready, such as your cloud provider's or your CI's, to keep the key in. Never put a key in source code or a browser.
  • Make the key yourself only if you will stay an admin of this workspace: a key stops working when the admin who made it loses access (see Whose access a key carries).

Create a key

  1. Open Settings → API.
  2. Choose Create key. Generate a key opens.
  3. Enter a Key name.
  4. Under Scopes, tick what the key may do (see below). The count at the bottom says how many of the scopes you chose.
  5. Under Expires, choose Never, 30 days, 90 days, 1 year or Custom date, and for a custom date pick it under Custom expiration date. Rate limit beside it shows how many requests a minute the key may make on your plan.
  6. Choose Generate key.
  7. Copy the key from Your new key and store it. This is the only time it is shown: Polzy keeps only a fingerprint of it, so a lost key cannot be read back — revoke it and make another.
Generate a key: its name, the scopes grouped by what they reach, when it expires and the plan's rate limit.
ScopeLets the key
surveys:readList surveys and read their questions.
analytics:readRead results by theme and group, above the minimum group size.
responses:readRead individual responses and their answers, held to the anonymity rules.
campaigns:readList campaigns and their progress.
actions:readList actions, their owners and stages.
actions:writeCreate actions and move them between stages.
webhooks:readList webhooks.
webhooks:writeRegister, list and remove webhooks.

Results through the API follow the same privacy floor as in the app: a group below your workspace's minimum group size is hidden, never sent.

Use a key

Send the key in the Authorization header of every request:

curl "https://api.polzy.ai/api/v1/surveys?status=live" \
  -H "Authorization: Bearer polzy_…"

The API reference lists every endpoint, its scope and its answers, with examples in curl, Node.js and Python.

The same API is described in an OpenAPI 3.1 file at /help/api/openapi.json — Open the OpenAPI file in the reference opens it. Import it into a tool such as Postman, or into a code generator, to have every endpoint with its parameters and scope, and every webhook event, ready to use. The file is in English.

Whose access a key carries

A key acts as the admin who created it — or, after a rotation, the admin who rotated it. An action created through the API is theirs.

The key stops working the moment that admin leaves the workspace, is deactivated or is no longer an admin. The API then answers 401 with That API key is not valid any more: the admin who created it no longer has access. So before an admin leaves, have an admin who is staying create replacements for their keys.

A key also stops working, without being revoked, while your plan or the workspace no longer includes API access, while your organization's account is unpaid, and while the workspace is paused for being over its plan.

Your keys

The list under API keys shows every key of the workspace:

  • Name and key. The key's name, and the first characters of the key, which you can copy to find where it is used. Expired or Revoked beside the name says a key no longer works.
  • Scopes. The first two, and how many more.
  • Created and Last used. Last used is updated at most once a minute; Never means the key has not been used yet.
The API keys list: each key's name, the start of the key, its scopes, when it was made and last used, and its actions.

Rotate a key

Rotating replaces a key without an outage.

  1. Choose Rotate on the key.
  2. Confirm with Rotate in Rotate this key?
  3. Copy the new key from Your new key, and put it everywhere the old one is used.

The new key has the same name and scopes, and the same lifetime as the old one, counted from the rotation; a key that never expired still never does. The old key keeps working for 24 hours — or until its own expiry, if that comes sooner — so you have time to swap it. Until then the list marks it Replaced · stops working with the date and time, beside its replacement of the same name. A key is rotated only once; after that, rotate its replacement.

Revoke, delete and expiry

  • Revoke. Stops a key at once. Anything still using it starts failing, and a revoked key cannot be brought back. Webhooks the key registered are switched off with it; rotating a key keeps them.
  • Delete. Shown on a revoked or expired key: takes it off the list. On Enterprise, the audit log keeps who created, rotated, revoked and deleted each key.
  • Expiry. A key past its expiry date is refused by the API at once, and shows as Expired on the list within about ten minutes.

In a support session opened with Open as admin, keys can be seen but not created, rotated, revoked or deleted.

What the Owner is told

The organization's Owner hears about the keys they did not make themselves, once each, in a banner on the Dashboard and on Settings → API, and in their My feed. Other admins are not told.

  • A new key. … created the API key …, for a key someone else created in the last 7 days — or how many were created that week — with Review API keys: A key reaches this workspace’s data through the API for as long as it works.
  • A key nobody uses. The API key … has not been used for 90 days, for a key that still works: A key nobody uses still works. Revoke it if nothing needs it any more.

Limits

Each workspace may make a number of requests a minute, set by your plan — all its keys together, so a second key adds none: 60 on Team, 120 on Business and 300 on Enterprise. Rate limit in Generate a key shows yours. Past it, the API answers 429 with Rate limit reached and a Retry-After header; wait that many seconds and try again. Every answer carries X-RateLimit-Limit and X-RateLimit-Remaining, so your system can slow down before it gets there.

Troubleshooting

What you seeWhyWhat to do
401 Send an API key as "Authorization: Bearer polzy_…".The header is missing or not in that form.Send Authorization: Bearer followed by the whole key.
401 That API key is not valid. It may have been revoked or expired.The key was revoked, has expired, or was mistyped.Check the list under Settings → API; make a new key if needed.
401 That API key is not valid any more: the admin who created it no longer has access.Its admin left the workspace, was deactivated or is no longer an admin.Have a current admin create a new key.
403 This key does not have the … scope.The key was made without the scope this endpoint needs.Make a new key with that scope.
403 API access is not available on this workspace.The plan does not include API access, or the workspace switched it off.Switch on API access, or change plan.
429 Rate limit reachedThe key went over its requests a minute.Wait for Retry-After, and spread requests out.
429 Too many requests with an invalid API key from this address.Too many calls with a wrong key from one address.Fix the key, then wait a minute.

Good to know

  • One workspace per key. A key reaches only the workspace it was made in. For another workspace, make a key there.
  • Webhooks. To be told when something happens instead of asking, add an endpoint under Settings → API → Webhooks — see Webhooks.
  • People data comes in another way. Keys cannot add or change people. To keep people in sync from your own system, use the Custom API source.
Was this helpful?
Still stuck?

Signed-in members can ask Polzy or message the team from Support. How fast we reply depends on your plan.