Build on Polzy
Read surveys, responses, campaigns and results, create and move actions, and receive webhooks when something happens. Available on Team and up.
On this page
Overview
A REST API over HTTPS that speaks JSON. Every request is made with an API key and acts on that key’s workspace only. These are the endpoints:
- GET/surveys— List surveys
- GET/surveys/{id}/results— Get results
- POST/actions— Create an action
- GET/webhooks— List webhooks
- POST/webhooks— Register a webhook
- PATCH/webhooks/{id}— Change a webhook
- POST/webhooks/{id}/test— Send a test
- DELETE/webhooks/{id}— Remove a webhook
- GET/surveys/{id}— Get a survey
- GET/surveys/{id}/responses— List a survey’s responses
- GET/campaigns— List campaigns
- GET/campaigns/{id}— Get a campaign
- GET/campaigns/{id}/responses— List a campaign’s responses
- GET/responses/{id}— Get a response
- GET/actions— List actions
- PATCH/actions/{id}— Move an action
Authentication
Send your key in the Authorization header as a bearer token. An admin creates keys in Settings → API; each key belongs to one workspace and is shown once.
A key only reaches what its scopes allow: surveys:read, responses:read, campaigns:read, analytics:read, actions:read, actions:write, webhooks:read and webhooks:write, which includes webhooks:read. Reading responses, campaigns and actions are scopes of their own, given to no key made before they existed. A missing scope answers 403.
curl "https://api.polzy.ai/api/v1/surveys" \ -H "Authorization: Bearer $POLZY_KEY"
Errors
Errors use HTTP status codes and a JSON body with a sentence in error and, where it helps, a machine-readable code.
{
"error": "This key does not have the actions:write scope.",
"statusCode": 403,
"code": "SCOPE_MISSING",
"scope": "actions:write"
}Rate limits
A workspace may make a number of requests a minute set by the plan — all its keys together, so a second key adds none: 60 on Team, 120 on Business and 300 on Enterprise.
Once a key is recognised, every answer says where it stands — for the key or for the workspace’s keys together, whichever has less left: RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (seconds until the minute starts again), and the older X-RateLimit-Limit and X-RateLimit-Remaining. A refused call counts too and carries them — a missing scope or feature, a workspace that is paused, suspended, out of trial or without API access, a key whose admin no longer has access. A plan without a cap is held to 6000 a minute. A call without a valid key, or with an expired one, carries none of them. Past the limit the answer is 429 with Retry-After in seconds.
A list is a page: limit from 1 to 100 (25 by default; a larger one is refused with 400, never cut down), has_more, and next_cursor to pass as starting_after for the next page — GET /surveys too, which until the next release still reads the last survey id of the page, answered with a Deprecation header. Pages run newest first by id, so a walk to the end neither repeats nor skips anything that existed when it began. A page of responses stops early, with has_more, once it holds 4 MB, and always holds at least one. GET /webhooks lists all of a workspace’s webhooks: it can have 25. An answer longer than 10,000 characters is cut there and marked truncated: true.
Send an Idempotency-Key header with POST /actions and PATCH /actions/:id to retry safely: the same key from the same API key within 24 hours replays the first answer, marked Idempotent-Replayed: true, and the write is made once. The same key with a different request is 409 IDEMPOTENCY_KEY_REUSED; while the first is still running, 409 IDEMPOTENCY_IN_PROGRESS. A request that failed keeps nothing and can be sent again under its key.
Answer values
Each answer’s value takes the shape of its question’s type and variant, as below: the same in a page, in GET /responses/:id, in a webhook’s data.response and in the drawer’s Export JSON. A choice is told by its key, with its words in label. An answer withheld for safety review has value null and withheld: true. An answer to a question removed from the survey is not in the response; restore the question and it is there again. A team question asked once per value of the workspace’s group field has one answer per value, each with the same question_id and the value in group. On an anonymous response the group is given only where its writer is in that group alone and the group has at least the workspace’s minimum group size; otherwise the answer comes without group and with group_held: true. A comment somebody wrote beside a question’s answer is an answer of its own, with variant comment and comment_on, the question_id of the question it is about, whose title is its question; it may come without an answer beside it. An answer to an AI follow-up has variant follow_up. An answer its writer marked “Only admins can read this” is never given outside Polzy: not in a page, not in GET /responses/:id, not in a webhook and not to a connector. Nor is what the AI read from it: on a response that holds one, ai.sentiment is null and score.themes keeps only the themes scored from the answers’ own figures; score.overall, worked out from those figures alone, is still given.
An open answer — a comment, an AI interview’s summary — given in another language than your organization’s is machine-translated where translation is on. Once it is, the answer also carries the fields below; until then, and on every other answer, they are absent, so a reader that does not know them reads the object as before. language on the response says which language it was given in. On an anonymous response from too few people to hide among, language is null and source_language is left out.
Webhooks
Register an HTTPS endpoint and Polzy posts a JSON event to it when something happens — one event per delivery, as { id, type, created_at, data }.
A response event carries the response itself in data.response — answers, scores, AI reading and, when it was named, the respondent — only to an endpoint registered with include_response: true, which a key may ask for only if it also holds responses:read; an endpoint is registered without it unless you say so, and every endpoint registered before 3 November 2026 starts without it. Otherwise it carries ids, and GET /responses/:response_id reads the response with responses:read. An anonymous answer is told by a sealed response_id and its day, never by an id or a time that would date it, and it is held to the workspace’s minimum group as GET /responses/:id is: while too few people have answered anonymously to hide among, data.response is left out and data.response_withheld says GROUP_TOO_SMALL. An answer through a link open to anyone is never withheld: Polzy never knows who gave it. Only a campaign’s or a members-only link’s anonymous answers wait for the floor, each campaign on its own. An answer withheld for safety review arrives with value null and withheld: true. campaign_ids narrows an endpoint to those campaigns' responses, launches and ends: a response answered through the survey’s own link, without a campaign, is not sent to a narrowed endpoint, while action events, which belong to no campaign, are always sent to an endpoint that subscribed to them. An endpoint is narrowed by campaign only; survey_ids is refused with 400, and every event still carries its survey_id. Events can arrive out of order: order them by created_at.
response.createdA response was completed and its written answers read for safety. Sent before scoring.
{
"id": "response.created:6721c9e0a4b1f2003d5e8a17:6abd1e…",
"type": "response.created",
"created_at": "2026-10-24T08:20:41.000Z",
"data": {
"id": "6721c9e0a4b1f2003d5e8a17",
"response_id": "resp_6721c9e0a4b1f2003d5e8a17",
"survey_id": "6512f0…",
"campaign_id": "6520aa…",
"completed_at": "2026-10-24T08:20:30.000Z",
"response": {
"object": "response",
"id": "resp_6721c9e0a4b1f2003d5e8a17",
"survey": {
"id": "6512f0…",
"title": "Q3 pulse — Operations"
},
"campaign": {
"id": "6520aa…",
"name": "Q3 pulse"
},
"round": 4,
"status": "completed",
"started_at": "2026-10-24T08:15:00.000Z",
"completed_at": "2026-10-24T08:20:30.000Z",
"duration_seconds": 330,
"language": "nl",
"respondent": {
"id": "65f0…a9",
"email": "ada@example.com",
"name": "Ada Lovelace",
"external_id": "E-7"
},
"answers": [
{
"question_id": "q1",
"question": "Recommend us?",
"type": "nps",
"variant": null,
"value": 9,
"label": null,
"withheld": false
},
{
"question_id": "q2",
"question": "Would you return?",
"type": "single_select",
"variant": "yes_no",
"value": "yes",
"label": "Yes",
"withheld": false
},
{
"question_id": "q3",
"question": "Pick any",
"type": "multi_select",
"variant": "list",
"value": [
"a",
"b"
],
"label": [
"Alpha",
"Beta"
],
"withheld": false
},
{
"question_id": "q4",
"question": "Tell us more",
"type": "text",
"variant": "long",
"value": null,
"label": null,
"withheld": true
}
],
"hidden_fields": {
"order": "A-1001"
},
"score": {
"overall": 72,
"themes": [
{
"key": "65f0…f1",
"name": "Growth & learning",
"score": 81
}
]
},
"ai": {
"status": "pending",
"sentiment": null
}
}
}
}response.scoredA response’s AI reading was saved, with its scores. Only where AI scoring is on.
{
"id": "response.scored:6721c9e0a4b1f2003d5e8a17:6abd1e…",
"type": "response.scored",
"created_at": "2026-10-24T08:20:41.000Z",
"data": {
"id": "6721c9e0a4b1f2003d5e8a17",
"response_id": "resp_6721c9e0a4b1f2003d5e8a17",
"survey_id": "6512f0…",
"campaign_id": "6520aa…",
"completed_at": "2026-10-24T08:20:30.000Z",
"response": {
"object": "response",
"id": "resp_6721c9e0a4b1f2003d5e8a17",
"survey": {
"id": "6512f0…",
"title": "Q3 pulse — Operations"
},
"campaign": {
"id": "6520aa…",
"name": "Q3 pulse"
},
"round": 4,
"status": "completed",
"started_at": "2026-10-24T08:15:00.000Z",
"completed_at": "2026-10-24T08:20:30.000Z",
"duration_seconds": 330,
"language": "nl",
"respondent": {
"id": "65f0…a9",
"email": "ada@example.com",
"name": "Ada Lovelace",
"external_id": "E-7"
},
"answers": [
{
"question_id": "q1",
"question": "Recommend us?",
"type": "nps",
"variant": null,
"value": 9,
"label": null,
"withheld": false
},
{
"question_id": "q2",
"question": "Would you return?",
"type": "single_select",
"variant": "yes_no",
"value": "yes",
"label": "Yes",
"withheld": false
},
{
"question_id": "q3",
"question": "Pick any",
"type": "multi_select",
"variant": "list",
"value": [
"a",
"b"
],
"label": [
"Alpha",
"Beta"
],
"withheld": false
},
{
"question_id": "q4",
"question": "Tell us more",
"type": "text",
"variant": "long",
"value": null,
"label": null,
"withheld": true
}
],
"hidden_fields": {
"order": "A-1001"
},
"score": {
"overall": 72,
"themes": [
{
"key": "65f0…f1",
"name": "Growth & learning",
"score": 81
}
]
},
"ai": {
"status": "scored",
"sentiment": "positive"
}
}
}
}response.deletedA response was deleted, by an admin or by the person who gave it. Ids only.
{
"id": "response.deleted:6721c9e0a4b1f2003d5e8a17:6abd1e…",
"type": "response.deleted",
"created_at": "2026-10-24T08:20:41.000Z",
"data": {
"id": "6721c9e0a4b1f2003d5e8a17",
"response_id": "resp_6721c9e0a4b1f2003d5e8a17",
"survey_id": "6512f0…",
"campaign_id": "6520aa…",
"deleted_at": "2026-10-25T10:02:00.000Z"
}
}response.translatedA response’s open answers were machine-translated into your organization’s language, with the translations on each answer. Sent once per response, and only to an endpoint that ticks it.
{
"id": "response.translated:6721c9e0a4b1f2003d5e8a17:6abd1e…",
"type": "response.translated",
"created_at": "2026-10-24T08:20:41.000Z",
"data": {
"id": "6721c9e0a4b1f2003d5e8a17",
"response_id": "resp_6721c9e0a4b1f2003d5e8a17",
"survey_id": "6512f0…",
"campaign_id": "6520aa…",
"completed_at": "2026-10-24T08:20:30.000Z",
"response": {
"object": "response",
"id": "resp_6721c9e0a4b1f2003d5e8a17",
"survey": {
"id": "6512f0…",
"title": "Q3 pulse — Operations"
},
"campaign": {
"id": "6520aa…",
"name": "Q3 pulse"
},
"round": 4,
"status": "completed",
"started_at": "2026-10-24T08:15:00.000Z",
"completed_at": "2026-10-24T08:20:30.000Z",
"duration_seconds": 330,
"language": "fr",
"respondent": {
"id": "65f0…a9",
"email": "ada@example.com",
"name": "Ada Lovelace",
"external_id": "E-7"
},
"answers": [
{
"question_id": "q1",
"question": "Recommend us?",
"type": "nps",
"variant": null,
"value": 9,
"label": null,
"withheld": false
},
{
"question_id": "q4",
"question": "Tell us more",
"type": "text",
"variant": "long",
"value": "Trop de réunions le lundi matin.",
"label": null,
"withheld": false,
"translated_text": "Too many meetings on Monday mornings.",
"source_language": "fr",
"translated_to": "en"
}
],
"hidden_fields": {
"order": "A-1001"
},
"score": {
"overall": 72,
"themes": [
{
"key": "65f0…f1",
"name": "Growth & learning",
"score": 81
}
]
},
"ai": {
"status": "scored",
"sentiment": "positive"
}
}
}
}campaign.launchedA campaign went live — launched, or launched again after a pause.
{
"id": "campaign.launched:6520aa…:1727766000000:6abd1e…",
"type": "campaign.launched",
"created_at": "2026-10-24T08:20:41.000Z",
"data": {
"id": "6520aa…",
"name": "Q3 pulse",
"survey_id": "6512f0…",
"resumed": false,
"launched_at": "2026-10-01T07:00:00.000Z"
}
}campaign.finishedA campaign closed, with its response rate.
{
"id": "campaign.finished:6520aa…:6abd1e…",
"type": "campaign.finished",
"created_at": "2026-10-24T08:20:41.000Z",
"data": {
"id": "6520aa…",
"name": "Q3 pulse",
"response_rate": 0.7
}
}campaign.round_closedA round of a campaign that keeps rounds closed, with who answered it.
{
"id": "campaign.round_closed:6520aa…:4:6abd1e…",
"type": "campaign.round_closed",
"created_at": "2026-10-24T08:20:41.000Z",
"data": {
"campaign_id": "6520aa…",
"name": "Weekly pulse",
"round": 4,
"release": "manual",
"opened_at": "2026-10-26T08:00:00.000Z",
"closed_at": "2026-11-02T08:00:00.000Z",
"invited": 120,
"answered": 83
}
}campaign.round_publishedA round’s results were published — by an admin, or by themselves as the round closed.
{
"id": "campaign.round_published:6520aa…:4:6abd1e…",
"type": "campaign.round_published",
"created_at": "2026-10-24T08:20:41.000Z",
"data": {
"campaign_id": "6520aa…",
"name": "Weekly pulse",
"round": 4,
"release": "manual",
"opened_at": "2026-10-26T08:00:00.000Z",
"closed_at": "2026-11-02T08:00:00.000Z",
"published_at": "2026-11-03T09:15:00.000Z",
"invited": 120,
"answered": 83
}
}action.createdAn action was created.
{
"id": "action.created:6abd1d…:6abd1e…",
"type": "action.created",
"created_at": "2026-10-24T08:20:41.000Z",
"data": {
"id": "6abd1d…",
"title": "Rewrite the handover checklist",
"stage": "pending",
"due": "2026-11-15T00:00:00.000Z",
"source": "bank",
"target_group": [
{
"field": "department",
"value": "operations"
}
]
}
}action.completedAn action was completed.
{
"id": "action.completed:6abd1d…:6abd1e…",
"type": "action.completed",
"created_at": "2026-10-24T08:20:41.000Z",
"data": {
"id": "6abd1d…",
"title": "Rewrite the handover checklist",
"stage": "completed",
"due": "2026-11-15T00:00:00.000Z",
"source": "bank",
"target_group": [
{
"field": "department",
"value": "operations"
}
]
}
}webhook.testSent by Send test, or POST /webhooks/:id/test. Nothing else sends it.
{
"id": "webhook.test:6abd1d…:6abd1e…",
"type": "webhook.test",
"created_at": "2026-10-24T08:20:41.000Z",
"data": {
"webhook_id": "6abd1d…",
"message": "A test delivery from Polzy. Answer with any 2xx within 10 seconds."
}
}Each delivery is signed. X-Polzy-Timestamp holds the Unix time, and X-Polzy-Signature the hex HMAC-SHA256 of "<timestamp>.<raw body>", made with the secret you received when you registered the webhook. Check both before trusting the event. Calls you send to Polzy use the same scheme: the Custom API connector accepts only signed calls, and a workflow’s trigger URL checks a signature when one is sent — it refuses unsigned calls only once the trigger is set to accept signed calls only:
import crypto from 'node:crypto';
// X-Polzy-Timestamp: 1727700000
// X-Polzy-Signature: 5f2c… (hex HMAC-SHA256 of "<timestamp>.<raw body>")
// X-Polzy-Event-Id: response.created:6abd1d…:6abd1e… (the same on every retry)
function verify(secret, rawBody, headers) {
const timestamp = headers['x-polzy-timestamp'];
const signature = headers['x-polzy-signature'] ?? '';
if (!/^\d+$/.test(timestamp ?? '') || Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false;
const expected = crypto.createHmac('sha256', secret).update(`${timestamp}.${rawBody}`).digest('hex');
return signature.length === expected.length && crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected));
}import hashlib, hmac, time
def verify(secret: str, raw_body: bytes, headers) -> bool:
timestamp = headers.get("X-Polzy-Timestamp", "")
signature = headers.get("X-Polzy-Signature", "")
if not timestamp.isdigit() or abs(time.time() - int(timestamp)) > 300:
return False
expected = hmac.new(secret.encode(), f"{timestamp}.".encode() + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(signature, expected)Answer with any 2xx within 10 seconds; the body of your answer is not read, and an address gets 3 of those seconds to take the connection. No answer, a 408, a 429 or a 5xx is tried again — after 30 seconds, 2 minutes, 10 minutes, half an hour, 1, 3 and 6 hours, then every 12 hours — until three days after the first attempt, each attempt under Settings → API → Webhooks. Any other 4xx, or a redirect (never followed), is not tried again. X-Polzy-Event-Id is the same on every attempt, so a retry can be recognised. An endpoint is sent at most two deliveries at once; after five failures in a row its deliveries wait, untried, and one is let through every 5 minutes to try it — once one succeeds, the rest follow. A delivery that waits spends none of its attempts. A response event is sent once: a rescore does not send it again.
An endpoint that fails every attempt for three days is switched off, and the workspace’s admins are told by email. Nothing is queued for it while it is off. Switch it back on under Settings → API → Webhooks, and send what it missed again from its deliveries. An endpoint registered with an API key is switched off when that key is revoked or deleted — not when it is rotated — and stays off: register it again with a new key.
Send test, or POST /webhooks/:id/test, sends webhook.test once. Send again, on a delivery in the log, sends it once more under the same event id — a response event with the response as it is now, and not at all if it was deleted since. Together, at most 20 per endpoint per hour.
AI assistants (MCP)
Polzy is also an MCP server, so AI assistants such as Claude and ChatGPT can read results and draft surveys for the admin who connects them. It is a door of its own, not an API key: a person signs in to Polzy and approves the assistant, which then acts as that person, in one workspace, within what they allowed. It speaks Streamable HTTP, one JSON-RPC message per request, and is in English; its tools carry titles in the person’s language.
https://mcp.polzy.ai/mcp
Sign-in is OAuth 2.1 with PKCE (S256) and public clients only. A request without a token is answered 401 with a WWW-Authenticate challenge that names the protected resource document; from it a client finds the authorization server’s metadata, then registers by a Client ID Metadata Document or by dynamic registration. Access tokens last an hour and refresh tokens rotate on every use. The documents, on the server’s host:
The permissions a person approves, each a line on the consent page. read is always included; the other two can be left out.
The tools, each listed to a client only when its connection holds the permission beside it:
A write is refused unless it makes a new draft or changes a draft of the connection’s own workspace. AI scoring is never switched on from a connection; AI follow-up questions and AI interviews may be drafted, and the answer says they use AI credits once a person publishes the survey.
Every read goes through the same checks as the app: the person’s role and scope, and the workspace’s minimum group size. A withheld figure is null, never zero, and is listed in withheldFigures with the minimum group size and the reason.
Each connection may make the requests a minute the plan gives the API, and all the workspace’s connections together the same; past either, 429 with Retry-After. Refusals come in OAuth’s shape, error and error_description:
List surveys
The workspace’s surveys, newest first, with their state and how many completed responses each has.
curl "https://api.polzy.ai/api/v1/surveys?status=live&limit=25" \ -H "Authorization: Bearer $POLZY_KEY"
{
"data": [
{
"id": "6512f0…",
"name": "Q3 pulse — Operations",
"status": "live",
"responses": 284,
"created_at": "2026-07-01T09:00:00.000Z",
"updated_at": "2026-09-28T16:12:04.000Z"
}
],
"has_more": true,
"next_cursor": "c1.ZW5jOnYxOkx3…"
}Get results
Each theme’s score out of 10, overall and, with group_by, per group. Groups below the minimum group size are left out and counted in hidden_groups. When one is hidden, the smallest group shown can be left out and counted too.
curl "https://api.polzy.ai/api/v1/surveys/6512f0…/results?group_by=department" \ -H "Authorization: Bearer $POLZY_KEY"
{
"survey": { "id": "6512f0…", "name": "Q3 pulse — Operations" },
"group_by": "department",
"min_group_size": 3,
"themes": [
{ "theme": "Workload", "score": 6.1, "responses": 212,
"groups": { "Operations": 4.8, "Product": 6.9 } }
],
"hidden_groups": 3
}Create an action
Adds an action to the workspace’s board, owned by the member with that email.
curl -X POST "https://api.polzy.ai/api/v1/actions" \
-H "Authorization: Bearer $POLZY_KEY" \
-H "Idempotency-Key: 4f9c2d1e-handover" \
-H "Content-Type: application/json" \
-d '{"title":"Rewrite the handover checklist","owner":"anouk@acme.com","due":"2026-10-15"}'{
"id": "6abd1d…",
"title": "Rewrite the handover checklist",
"stage": "pending",
"owner": "anouk@acme.com",
"due": "2026-10-15T00:00:00.000Z"
}List webhooks
The workspace’s webhooks, with each one’s events, whether it is sent responses, what it is narrowed to, whether it is switched on and why not (disabled_reason: failing, manual, or key_revoked once the key that registered it was revoked), whether it waits for the organization owner because the admin who added it left (needs_owner_review), its last delivery and how many have failed in a row. All of them, newest first: a workspace has at most 25, and the list holds up to 100, with has_more.
curl "https://api.polzy.ai/api/v1/webhooks" \ -H "Authorization: Bearer $POLZY_KEY"
{
"data": [
{
"id": "6abd1d…",
"url": "https://hooks.acme.com/polzy",
"source": "api",
"integration_id": null,
"events": [
"response.created"
],
"include_response": true,
"campaign_ids": [],
"enabled": true,
"disabled_at": null,
"disabled_reason": null,
"needs_owner_review": false,
"owner_review_since": null,
"created_at": "2026-09-01T09:00:00.000Z",
"last_delivery_at": "2026-10-24T08:20:41.000Z",
"last_status": 200,
"failures": 0,
"secret_hint": "a91f",
"secret_rotated_at": null
}
],
"has_more": false
}Register a webhook
Subscribes an HTTPS endpoint to events, optionally narrowed to some campaigns (survey_ids is no longer accepted and is refused with 400). Response events carry the response itself unless include_response is false. The signing secret is in the answer once; store it, it is not shown again. A URL the workspace already sends to is refused with 409 WEBHOOK_URL_TAKEN. A workspace has at most 25; one more is refused with 409 WEBHOOK_LIMIT_REACHED.
curl -X POST "https://api.polzy.ai/api/v1/webhooks" \
-H "Authorization: Bearer $POLZY_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://hooks.acme.com/polzy","events":["response.created","campaign.finished"]}'{
"id": "6abd1d…",
"url": "https://hooks.acme.com/polzy",
"source": "api",
"integration_id": null,
"events": [
"response.created",
"campaign.finished"
],
"include_response": false,
"campaign_ids": [],
"enabled": true,
"disabled_at": null,
"disabled_reason": null,
"needs_owner_review": false,
"owner_review_since": null,
"created_at": "2026-09-01T09:00:00.000Z",
"last_delivery_at": "2026-10-24T08:20:41.000Z",
"last_status": 200,
"failures": 0,
"secret_hint": "a91f",
"secret_rotated_at": null,
"secret": "whsec_••••••••"
}Change a webhook
Changes a webhook’s events, whether response events carry the response, and the campaigns it is narrowed to — what is left out stays as it was; an empty list receives everything again. survey_ids is no longer accepted and is refused with 400. Its address and secret stay. Only a webhook registered through a key or under Settings → API → Webhooks is found here: a Zapier or n8n connection’s destination is changed on its connection.
curl -X PATCH "https://api.polzy.ai/api/v1/webhooks/6abd1d…" \
-H "Authorization: Bearer $POLZY_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"events":["response.created"],"campaign_ids":["6520aa…"]}'{
"id": "6abd1d…",
"url": "https://hooks.acme.com/polzy",
"source": "api",
"integration_id": null,
"events": [
"response.created"
],
"include_response": true,
"campaign_ids": [
"6520aa…"
],
"enabled": true,
"disabled_at": null,
"disabled_reason": null,
"needs_owner_review": false,
"owner_review_since": null,
"created_at": "2026-09-01T09:00:00.000Z",
"last_delivery_at": "2026-10-24T08:20:41.000Z",
"last_status": 200,
"failures": 0,
"secret_hint": "a91f",
"secret_rotated_at": null
}Send a test
Sends webhook.test to the webhook once, signed like any delivery, even while it is switched off. It is queued (202) and lands in the webhook’s delivery log. At most 20 tests and resends per webhook per hour; the same Idempotency-Key sends it once.
curl -X POST "https://api.polzy.ai/api/v1/webhooks/6abd1d…/test" \ -H "Authorization: Bearer $POLZY_KEY" \ -H "Idempotency-Key: $(uuidgen)"
{
"event_id": "webhook.test:6abd1d…:1729760441000.9f2c41ab",
"event": "webhook.test",
"state": "pending"
}Remove a webhook
Stops deliveries to that endpoint. Deliveries already queued are dropped.
curl -X DELETE "https://api.polzy.ai/api/v1/webhooks/6abd1d…" \ -H "Authorization: Bearer $POLZY_KEY"
No content.
Get a survey
One survey with its questions as a respondent meets them, and the keys their answers carry — never its scoring, its logic or the AI’s instructions. Content such as headings and images is left out; at most 500 questions, with truncated: true past that.
curl "https://api.polzy.ai/api/v1/surveys/6512f0…" \ -H "Authorization: Bearer $POLZY_KEY"
{
"object": "survey",
"id": "6512f0…",
"name": "Q3 pulse — Operations",
"description": null,
"status": "live",
"anonymous": false,
"responses": 284,
"questions": [
{
"id": "q1",
"type": "nps",
"variant": null,
"title": "Recommend us?",
"description": null,
"required": true,
"theme_id": null,
"scale": {
"min": 0,
"max": 10
}
},
{
"id": "q2",
"type": "single_select",
"variant": "list",
"title": "Pick one",
"description": null,
"required": false,
"theme_id": "65f0…f1",
"choices": [
{
"key": "a",
"label": "Alpha"
},
{
"key": "b",
"label": "Beta"
}
],
"allows_other": false
}
],
"created_at": "2026-07-01T09:00:00.000Z",
"updated_at": "2026-09-28T16:12:04.000Z"
}List a survey’s responses
The survey’s responses, newest first, each as one response object: typed answers, hidden fields, scores and the AI’s status. An anonymous response names nobody and gives only its day; an answer withheld for safety review has no value and withheld: true. When the anonymous answers asked for come from fewer people than the workspace’s minimum group, they are left out and withheld_anonymous is true — never how many, which would tell whose an answer was. An anonymous response from a campaign with too few anonymous answers of its own is listed without its campaign and language. Each read is recorded in the audit log, without the answers. A response in a round whose results are not out yet is left out until the round is published.
curl "https://api.polzy.ai/api/v1/surveys/6512f0…/responses?since=2026-10-01&limit=100" \ -H "Authorization: Bearer $POLZY_KEY"
{
"data": [
{
"object": "response",
"id": "resp_6721c9e0a4b1f2003d5e8a17",
"survey": {
"id": "6512f0…",
"title": "Q3 pulse — Operations"
},
"campaign": {
"id": "6520aa…",
"name": "Q3 pulse"
},
"round": 4,
"status": "completed",
"started_at": "2026-10-24T08:15:00.000Z",
"completed_at": "2026-10-24T08:20:30.000Z",
"duration_seconds": 330,
"language": "nl",
"respondent": {
"id": "65f0…a9",
"email": "ada@example.com",
"name": "Ada Lovelace",
"external_id": "E-7"
},
"answers": [
{
"question_id": "q1",
"question": "Recommend us?",
"type": "nps",
"variant": null,
"value": 9,
"label": null,
"withheld": false
},
{
"question_id": "q2",
"question": "Would you return?",
"type": "single_select",
"variant": "yes_no",
"value": "yes",
"label": "Yes",
"withheld": false
},
{
"question_id": "q3",
"question": "Pick any",
"type": "multi_select",
"variant": "list",
"value": [
"a",
"b"
],
"label": [
"Alpha",
"Beta"
],
"withheld": false
},
{
"question_id": "q4",
"question": "Tell us more",
"type": "text",
"variant": "long",
"value": null,
"label": null,
"withheld": true
}
],
"hidden_fields": {
"order": "A-1001"
},
"score": {
"overall": 72,
"themes": [
{
"key": "65f0…f1",
"name": "Growth & learning",
"score": 81
}
]
},
"ai": {
"status": "scored",
"sentiment": "positive"
}
}
],
"has_more": true,
"next_cursor": "c1.ZW5jOnYxOkx3…",
"withheld_anonymous": false
}List campaigns
The workspace’s campaigns, newest first: their survey, state, dates, whether they take answers now and whether the plan holds them, and how many were invited and answered.
curl "https://api.polzy.ai/api/v1/campaigns?status=active" \ -H "Authorization: Bearer $POLZY_KEY"
{
"data": [
{
"object": "campaign",
"id": "6520aa…",
"name": "Q3 pulse",
"description": null,
"survey": {
"id": "6512f0…",
"title": "Q3 pulse — Operations"
},
"status": "active",
"purpose": "wellbeing",
"anonymous": true,
"accepting_responses": true,
"on_hold": false,
"starts_at": "2026-10-01T07:00:00.000Z",
"ends_at": "2026-10-31T17:00:00.000Z",
"max_responses": null,
"invited": 240,
"responses": 168,
"completed_at": null,
"created_at": "2026-09-20T10:00:00.000Z",
"updated_at": "2026-10-24T08:20:30.000Z"
}
],
"has_more": true,
"next_cursor": "c1.ZW5jOnYxOkx3…"
}Get a campaign
One campaign, as the list gives it.
curl "https://api.polzy.ai/api/v1/campaigns/6520aa…" \ -H "Authorization: Bearer $POLZY_KEY"
{
"object": "campaign",
"id": "6520aa…",
"name": "Q3 pulse",
"description": null,
"survey": {
"id": "6512f0…",
"title": "Q3 pulse — Operations"
},
"status": "active",
"purpose": "wellbeing",
"anonymous": true,
"accepting_responses": true,
"on_hold": false,
"starts_at": "2026-10-01T07:00:00.000Z",
"ends_at": "2026-10-31T17:00:00.000Z",
"max_responses": null,
"invited": 240,
"responses": 168,
"completed_at": null,
"created_at": "2026-09-20T10:00:00.000Z",
"updated_at": "2026-10-24T08:20:30.000Z"
}List a campaign’s responses
The responses given through one campaign, as a survey’s list gives them. The minimum group is judged on the campaign’s own anonymous answers. A response in a round whose results are not out yet is left out until the round is published.
curl "https://api.polzy.ai/api/v1/campaigns/6520aa…/responses?updated_since=2026-10-24T00:00:00Z" \ -H "Authorization: Bearer $POLZY_KEY"
{
"data": [
{
"object": "response",
"id": "resp_q3Vt0Yk2mB8xWc1nL5hR9sPz4eJ7uA6dGfH0iKoT2wXyN3bQvEc_9w",
"survey": {
"id": "6512f0…",
"title": "Q3 pulse — Operations"
},
"campaign": {
"id": "6520aa…",
"name": "Q3 pulse"
},
"round": 4,
"status": "completed",
"started_at": "2026-10-24",
"completed_at": "2026-10-24",
"duration_seconds": null,
"language": "nl",
"respondent": null,
"answers": [
{
"question_id": "q1",
"question": "Recommend us?",
"type": "nps",
"variant": null,
"value": 9,
"label": null,
"withheld": false
},
{
"question_id": "q2",
"question": "Would you return?",
"type": "single_select",
"variant": "yes_no",
"value": "yes",
"label": "Yes",
"withheld": false
},
{
"question_id": "q3",
"question": "Pick any",
"type": "multi_select",
"variant": "list",
"value": [
"a",
"b"
],
"label": [
"Alpha",
"Beta"
],
"withheld": false
},
{
"question_id": "q4",
"question": "Tell us more",
"type": "text",
"variant": "long",
"value": null,
"label": null,
"withheld": true
}
],
"hidden_fields": {},
"score": {
"overall": 72,
"themes": [
{
"key": "65f0…f1",
"name": "Growth & learning",
"score": 81
}
]
},
"ai": {
"status": "scored",
"sentiment": "positive"
}
}
],
"has_more": true,
"next_cursor": "c1.ZW5jOnYxOkx3…",
"withheld_anonymous": false
}Get a response
One response object by its id (resp_…). An anonymous response has an id of its own that carries no time, and is answered only where its survey’s — or campaign’s — anonymous answers come from enough people to hide among. Its answers are to the questions the survey asks now: an answer to a question removed since is left out, and comes back if the question is restored. A response in a round whose results are not out yet is answered with 404 until the round is published. A response to a survey that registers whoever answers as a contact names that contact as its respondent once the contact is made, moments after it is completed.
curl "https://api.polzy.ai/api/v1/responses/resp_6721c9e0a4b1f2003d5e8a17" \ -H "Authorization: Bearer $POLZY_KEY"
{
"object": "response",
"id": "resp_6721c9e0a4b1f2003d5e8a17",
"survey": {
"id": "6512f0…",
"title": "Q3 pulse — Operations"
},
"campaign": {
"id": "6520aa…",
"name": "Q3 pulse"
},
"round": 4,
"status": "completed",
"started_at": "2026-10-24T08:15:00.000Z",
"completed_at": "2026-10-24T08:20:30.000Z",
"duration_seconds": 330,
"language": "nl",
"respondent": {
"id": "65f0…a9",
"email": "ada@example.com",
"name": "Ada Lovelace",
"external_id": "E-7"
},
"answers": [
{
"question_id": "q1",
"question": "Recommend us?",
"type": "nps",
"variant": null,
"value": 9,
"label": null,
"withheld": false
},
{
"question_id": "q2",
"question": "Would you return?",
"type": "single_select",
"variant": "yes_no",
"value": "yes",
"label": "Yes",
"withheld": false
},
{
"question_id": "q3",
"question": "Pick any",
"type": "multi_select",
"variant": "list",
"value": [
"a",
"b"
],
"label": [
"Alpha",
"Beta"
],
"withheld": false
},
{
"question_id": "q4",
"question": "Tell us more",
"type": "text",
"variant": "long",
"value": null,
"label": null,
"withheld": true
}
],
"hidden_fields": {
"order": "A-1001"
},
"score": {
"overall": 72,
"themes": [
{
"key": "65f0…f1",
"name": "Growth & learning",
"score": 81
}
]
},
"ai": {
"status": "scored",
"sentiment": "positive"
}
}List actions
The workspace’s actions, newest first, with their owner, stage and due date, the theme and group they are for, the baseline taken when they were written and their impact since: impact.value is the theme’s score in the group now minus the baseline (0–100), given only once both cleared the minimum group and are at least medium reliability — until then impact.state is too_early, with why. null where an action has no theme. An action raised from a safety signal is its assignee’s and reviewers' alone and is never listed.
curl "https://api.polzy.ai/api/v1/actions?stage=in_progress" \ -H "Authorization: Bearer $POLZY_KEY"
{
"data": [
{
"object": "action",
"id": "6abd1d…",
"title": "Rewrite the handover checklist",
"description": null,
"stage": "in_progress",
"priority": "medium",
"owner": "anouk@acme.com",
"due": "2026-11-15T00:00:00.000Z",
"completed_at": null,
"created_at": "2026-10-02T09:00:00.000Z",
"updated_at": "2026-10-24T11:40:00.000Z",
"theme_id": "6512f7…",
"target_group": [
{
"field": "department",
"value": "operations"
}
],
"baseline": {
"score": 58.4,
"people": 31,
"measured_at": "2026-10-02T09:00:00.000Z",
"window_days": 90
},
"impact": {
"state": "measured",
"value": 6.1,
"baseline": 58.4,
"current": 64.5,
"people": 27,
"reliability": "medium"
}
}
],
"has_more": true,
"next_cursor": "c1.ZW5jOnYxOkx3…"
}Move an action
Moves an action to another stage, as the board does: completing it dates it and announces action.completed. The move is made as the admin who created the key.
curl -X PATCH "https://api.polzy.ai/api/v1/actions/6abd1d…" \
-H "Authorization: Bearer $POLZY_KEY" \
-H "Idempotency-Key: 7b1e-close-handover" \
-H "Content-Type: application/json" \
-d '{"stage":"completed"}'{
"id": "6abd1d…",
"title": "Rewrite the handover checklist",
"stage": "completed",
"owner": "anouk@acme.com",
"due": "2026-11-15T00:00:00.000Z",
"completed_at": "2026-10-24T11:40:00.000Z"
}