Skip to content
API reference · v1

Build on Polzy

Read surveys, responses, campaigns and results, create and move actions, and receive webhooks when something happens. Available on Team and up.

Base URL
https://api.polzy.ai/api/v1
Authentication
Bearer polzy_…
Rate limit
Per workspace, by plan: 60 to 300 a minute
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:

Open the OpenAPI file

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"
Create a key

Errors

Errors use HTTP status codes and a JSON body with a sentence in error and, where it helps, a machine-readable code.

400The request is not valid — a missing field, a wrong type, an unknown group_by, a limit outside 1–100 (refused, never cut down), a cursor this list did not give (INVALID_CURSOR), an until before since (INVALID_RANGE), a malformed Idempotency-Key (INVALID_IDEMPOTENCY_KEY), an action owner who cannot be assigned (OWNER_NOT_ASSIGNABLE).
401No key, or a key that is unknown, revoked or expired — or whose creator no longer has access: the admin who created it has left the workspace, been deactivated or is no longer an admin.
403The key lacks the scope (SCOPE_MISSING). The workspace has no API access, on its plan or in its settings (API_NOT_AVAILABLE), or is paused because it is over its plan (PLAN_HOLD), or is scheduled for deletion and read-only (WORKSPACE_DELETION_SCHEDULED). The account is suspended or cancelled (SUBSCRIPTION_SUSPENDED), or its trial has ended (TRIAL_EXPIRED). Or what the route does is not on the plan (CAPABILITY_NOT_ENTITLED) or is switched off for the workspace (WORKSPACE_FEATURE_OFF) — group_by on results needs Heatmaps, from the Business plan. An anonymous response from a group too small to hide in is refused too (GROUP_TOO_SMALL). An answer through a link open to anyone never is.
404Nothing with that id in this workspace.
409That webhook URL is already registered in this workspace (WEBHOOK_URL_TAKEN). Addresses are compared after parsing, so the host’s case and a default port make no difference. To change its events, remove the endpoint and register it again. A workspace has at most 25 webhooks (WEBHOOK_LIMIT_REACHED). An Idempotency-Key used for a different request is refused (IDEMPOTENCY_KEY_REUSED), and one whose first request is still running (IDEMPOTENCY_IN_PROGRESS).
429Too many requests this minute for the key, or for all of the workspace’s keys together (RATE_LIMITED), or more than 20 calls without a valid key from one address in a minute — such calls from it are then refused for 5 minutes (AUTH_RATE_LIMITED). Wait for the seconds in Retry-After.
500Something failed on our side. The body carries a reference to quote to support.
{
  "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.

text · long"Great team"
text · short"Nurse"
text · email"ada@example.com"
text · number42
text · comment"The rota changes too late."
single_select · list"a" · label "Alpha"
single_select · list"__other" · label "Something else"
single_select · dropdown"nl" · label "Netherlands"
single_select · yes_no"yes" · label "Yes"
multi_select · list["a","b"] · label ["Alpha","Beta"]
multi_select · buttons["a"] · label ["Alpha"]
picture_selection · single"p1" · label "Sea"
picture_selection · multiple["p1","p2"] · label ["Sea","Hills"]
rating · scale4
rating · csat5
rating · opinion_scale0
nps9
slider55
ranking["b","a"] · label ["Beta","Alpha"]
matrix · single{"r1":"c1","r2":"c1"}
matrix · multiple{"r1":["c1","c2"]}
date · date"2026-10-24"
date · time"09:30"
consent{"accepted":true,"text":"I agree","document_url":"https://example.com/privacy","accepted_at":"2026-10-24T10:00:00.000Z"}
schedule_meeting{"provider":"calendly","booked_here":true}
file_upload[{"name":"cv.pdf","size":1200,"type":"application/pdf"},{"name":"photo.png","size":null,"type":null}]
contact_info{"first_name":"Ada","last_name":"Lovelace","email":"ada@example.com","phone":"+31612345678","company":"Analytical"}
contact_info{"first_name":"Ada","email":"ada@example.com","custom_fields":{"session":"morning","workshops":["ai","data"],"vegetarian":true,"guests":"2"}}
address{"address_line1":"1 Canal Street","city":"Utrecht","zip":"3511","country":"NL"}
hidden"A-1001"
ai_interview"They left because the price rose and support was slow."

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.

translated_textThe answer’s words machine-translated into your organization’s language.
source_languageThe language the words were written in, as a language code.
translated_toThe language of translated_text: your organization’s default language. A translation into an earlier default is left out until it is redone.

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."
  }
}
data.idThe subject’s id — the response, campaign or action. Null for an anonymous response.
data.response_idThe response as GET /responses/:id reads it: resp_ and its id, sealed when anonymous.
data.survey_idThe survey it is about.
data.campaign_idThe campaign it came through, or null — null as well for an anonymous answer from a campaign with too few anonymous answers to hide among. On a round event, the campaign whose round it is.
data.completed_atWhen it was completed — the day alone for an anonymous response.
data.responseThe response object, as GET /responses/:id gives it — only to an endpoint with include_response.
data.response_withheldGROUP_TOO_SMALL in place of data.response, to an endpoint with include_response: an anonymous answer from fewer people than the workspace’s minimum group, held back as GET /responses/:id refuses it.
data.deleted_atWhen the response was deleted.
data.nameThe campaign’s name.
data.resumedTrue when the campaign was launched again after a pause.
data.launched_atWhen the campaign went live.
data.response_rateResponses per invitation sent, from 0 to 1.
data.roundThe round’s number in its campaign, from 1.
data.releaseWhen its results come out: live, on_close or manual.
data.opened_atWhen the round opened — its send.
data.closed_atWhen the round closed.
data.published_atWhen its results were published.
data.invitedInvitations the round sent, reminders not counted.
data.answeredCompleted answers to the round.
data.titleThe action’s title.
data.stageThe action’s stage.
data.dueThe action’s due date, or null.
data.sourceWhere the action came from: bank (a recommended action), finding, deep-dive, manual, or null for one raised by Polzy.
data.target_groupThe group the action is for: each a field of the workspace and one of its values. Empty for everybody.
data.webhook_idwebhook.test: the webhook it was sent to.
data.messagewebhook.test: a sentence saying it is a test.

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:

X-Polzy-TimestampThe Unix time, in seconds, the delivery was signed — new on every attempt.
X-Polzy-SignatureThe hex HMAC-SHA256 of "<timestamp>.<raw body>", with the webhook’s secret.
X-Polzy-Event-IdThe delivery’s id, the same on every attempt and every resend: remember it to handle each event once.
X-Polzy-EventThe event’s type, so you can route a delivery before parsing it.
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:

/.well-known/oauth-protected-resource/mcp
/.well-known/oauth-protected-resource
/.well-known/oauth-authorization-server

The permissions a person approves, each a line on the consent page. read is always included; the other two can be left out.

readSurveys, templates, the question bank, campaigns and analytics, with the privacy floor applied.
responses:readRespondents' comments and individual responses, capped and labelled as respondent-written.
drafts:writeCreate surveys as drafts and change surveys that are still drafts. Nothing is published or sent.

The tools, each listed to a client only when its connection holds the permission beside it:

searchSearch surveys and campaigns
fetchRead a survey or campaign
list_surveysList surveys
read_surveyRead survey
get_survey_analyticsRead survey results
list_survey_templatesList survey templates
search_question_bankSearch the question bank
get_bank_itemRead a question bank item
list_themesList themes
list_campaignsList campaigns
get_campaign_statsRead campaign figures
list_dimensionsList what feedback is grouped by
get_kpisRead headline figures
get_time_seriesRead trend over time
get_theme_scoresRead theme scores
get_enpsRead the recommendation score
get_participation_trendRead participation trend
compare_groupsCompare groups
search_responsesSearch responses
list_commentsList comments
create_surveyCreate survey
create_survey_from_templateCreate survey from template
add_questionAdd question
update_survey_elementUpdate survey element
modify_surveyEdit survey

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:

401No token: the WWW-Authenticate challenge says where to sign in.
401invalid_tokenA token that is expired, revoked, or not this server’s.
429temporarily_unavailablePast the plan’s requests a minute, for the connection or the workspace.
401invalid_tokenThe connection has ended, or the person who made it is no longer an admin of the workspace.
403access_deniedThe workspace has no AI assistant access, by plan or by its own switch, is paused over its plan, or its account is unpaid. The connection is kept.
403insufficient_scopeThe connection was approved without the permission this needs.
400A JSON-RPC batch: send one message per request.
Connect an assistant
GET/v1/surveysscope surveys:read

List surveys

The workspace’s surveys, newest first, with their state and how many completed responses each has.

Parameters
statusstring · query
draft, live, paused, closed or archived.
limitinteger · query
Up to 100. Defaults to 25.
starting_afterstring · query
The next_cursor of the previous page, unchanged. The last survey id of the page, which this list took before it had cursors, is read until the next release.
Errors
400A parameter is not valid — a limit outside 1–100, a date that is not ISO 8601, a value the field does not take. error names it.
400INVALID_CURSORstarting_after is not a cursor this list gave — changed, or from another list or workspace.
401No key, or one that is unknown, revoked or expired, or whose creator no longer has access.
403SCOPE_MISSINGThe key was not given this endpoint’s scope.
429RATE_LIMITEDThe key, or the workspace’s keys together, have used this minute’s requests. Retry-After says how many seconds to wait.
curl "https://api.polzy.ai/api/v1/surveys?status=live&limit=25" \
  -H "Authorization: Bearer $POLZY_KEY"
Response · 200
{
  "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/v1/surveys/{id}/resultsscope analytics:read

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.

Parameters
idstring · pathrequired
The survey’s id.
group_bystring · query
A field the workspace groups people by, such as department. Omit it for the overall score only. Grouping needs Heatmaps, from the Business plan.
fromdate · query
Only answers from this date on (ISO 8601).
todate · query
Only answers up to this date (ISO 8601).
Errors
400A parameter is not valid — a limit outside 1–100, a date that is not ISO 8601, a value the field does not take. error names it.
401No key, or one that is unknown, revoked or expired, or whose creator no longer has access.
403SCOPE_MISSINGThe key was not given this endpoint’s scope.
403CAPABILITY_NOT_ENTITLEDThe workspace’s plan does not include what this asks for — group_by needs Heatmaps.
404Nothing with that id in this workspace. Another workspace’s id is not found either.
429RATE_LIMITEDThe key, or the workspace’s keys together, have used this minute’s requests. Retry-After says how many seconds to wait.
curl "https://api.polzy.ai/api/v1/surveys/6512f0…/results?group_by=department" \
  -H "Authorization: Bearer $POLZY_KEY"
Response · 200
{
  "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
}
POST/v1/actionsscope actions:write

Create an action

Adds an action to the workspace’s board, owned by the member with that email.

Parameters
titlestring · bodyrequired
What needs to happen.
owneremail · bodyrequired
The email of a member of the workspace.
duedate · body
Due date (ISO 8601).
descriptionstring · body
More detail, up to 4,000 characters.
Idempotency-Keystring · header
Any string of 1 to 255 printable characters. The same key in the next 24 hours replays the first answer, marked Idempotent-Replayed: true, and the write is made once.
Errors
400A parameter is not valid — a limit outside 1–100, a date that is not ISO 8601, a value the field does not take. error names it.
400OWNER_NOT_ASSIGNABLEThe owner could not be assigned: use the email of an active member of this workspace. The answer is the same whoever the address belongs to.
400INVALID_IDEMPOTENCY_KEYThe Idempotency-Key is not 1 to 255 printable characters, or was sent twice.
401No key, or one that is unknown, revoked or expired, or whose creator no longer has access.
403SCOPE_MISSINGThe key was not given this endpoint’s scope.
409IDEMPOTENCY_KEY_REUSEDThis Idempotency-Key was used in the last 24 hours for a different request. Use a new key for a new request.
409IDEMPOTENCY_IN_PROGRESSA request with this Idempotency-Key is still running. Retry in a moment.
429RATE_LIMITEDThe key, or the workspace’s keys together, have used this minute’s requests. Retry-After says how many seconds to wait.
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"}'
Response · 201
{
  "id": "6abd1d…",
  "title": "Rewrite the handover checklist",
  "stage": "pending",
  "owner": "anouk@acme.com",
  "due": "2026-10-15T00:00:00.000Z"
}
GET/v1/webhooksscope webhooks:read

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.

Errors
401No key, or one that is unknown, revoked or expired, or whose creator no longer has access.
403SCOPE_MISSINGThe key was not given this endpoint’s scope.
429RATE_LIMITEDThe key, or the workspace’s keys together, have used this minute’s requests. Retry-After says how many seconds to wait.
curl "https://api.polzy.ai/api/v1/webhooks" \
  -H "Authorization: Bearer $POLZY_KEY"
Response · 200
{
  "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
}
POST/v1/webhooksscope webhooks:write

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.

Parameters
urlurl · bodyrequired
An HTTPS URL on the public internet.
eventsarray · bodyrequired
One or more of response.created, response.scored, response.deleted, response.translated, campaign.launched, campaign.finished, campaign.round_closed, campaign.round_published, action.created and action.completed.
include_responseboolean · body
true to send each response event with the response itself — answers, scores and, when named, the respondent. False when left out. true needs a key that also holds responses:read; without it, 403 SCOPE_MISSING.
campaign_idsarray · body
Only these campaigns' responses, launches and ends — up to 100, each this workspace’s. A response answered through the survey’s own link, without a campaign, is not sent; action events still are.
Errors
400A parameter is not valid — a limit outside 1–100, a date that is not ISO 8601, a value the field does not take. error names it.
400WEBHOOK_FILTER_INVALIDcampaign_ids holds something that is not an id, or more than 100.
400WEBHOOK_FILTER_UNKNOWNcampaign_ids names a campaign this workspace does not have.
400WEBHOOK_URL_INVALIDurl cannot receive webhooks: it is not a URL, not https, its host is not found, or it points to a private or internal network. error says which.
401No key, or one that is unknown, revoked or expired, or whose creator no longer has access.
403SCOPE_MISSINGThe key was not given this endpoint’s scope.
409WEBHOOK_URL_TAKENThat URL already receives this workspace’s webhooks.
409WEBHOOK_LIMIT_REACHEDThe workspace already has 25 webhooks, the most it can have. Remove one to add another.
429RATE_LIMITEDThe key, or the workspace’s keys together, have used this minute’s requests. Retry-After says how many seconds to wait.
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"]}'
Response · 201
{
  "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_••••••••"
}
PATCH/v1/webhooks/{id}scope webhooks:write

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.

Parameters
idstring · pathrequired
The webhook’s id.
eventsarray · body
One or more of response.created, response.scored, response.deleted, response.translated, campaign.launched, campaign.finished, campaign.round_closed, campaign.round_published, action.created and action.completed.
include_responseboolean · body
true to send each response event with the response itself, false to stop. true needs a key that also holds responses:read; without it, 403 SCOPE_MISSING.
campaign_idsarray · body
Only these campaigns' responses, launches and ends — up to 100, each this workspace’s. A response answered through the survey’s own link, without a campaign, is not sent; action events still are. An empty list receives every campaign’s again.
Idempotency-Keystring · header
Any string of 1 to 255 printable characters. The same key in the next 24 hours replays the first answer, marked Idempotent-Replayed: true, and the write is made once.
Errors
400A parameter is not valid — a limit outside 1–100, a date that is not ISO 8601, a value the field does not take. error names it.
400WEBHOOK_FILTER_INVALIDcampaign_ids holds something that is not an id, or more than 100.
400WEBHOOK_FILTER_UNKNOWNcampaign_ids names a campaign this workspace does not have.
400INVALID_IDEMPOTENCY_KEYThe Idempotency-Key is not 1 to 255 printable characters, or was sent twice.
401No key, or one that is unknown, revoked or expired, or whose creator no longer has access.
403SCOPE_MISSINGThe key was not given this endpoint’s scope.
404Nothing with that id in this workspace. Another workspace’s id is not found either.
409IDEMPOTENCY_KEY_REUSEDThis Idempotency-Key was used in the last 24 hours for a different request. Use a new key for a new request.
409IDEMPOTENCY_IN_PROGRESSA request with this Idempotency-Key is still running. Retry in a moment.
429RATE_LIMITEDThe key, or the workspace’s keys together, have used this minute’s requests. Retry-After says how many seconds to wait.
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…"]}'
Response · 200
{
  "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
}
POST/v1/webhooks/{id}/testscope webhooks:write

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.

Parameters
idstring · pathrequired
The webhook’s id.
Idempotency-Keystring · header
Any string of 1 to 255 printable characters. The same key in the next 24 hours replays the first answer, marked Idempotent-Replayed: true, and the write is made once.
Errors
400INVALID_IDEMPOTENCY_KEYThe Idempotency-Key is not 1 to 255 printable characters, or was sent twice.
401No key, or one that is unknown, revoked or expired, or whose creator no longer has access.
403SCOPE_MISSINGThe key was not given this endpoint’s scope.
404Nothing with that id in this workspace. Another workspace’s id is not found either.
409IDEMPOTENCY_KEY_REUSEDThis Idempotency-Key was used in the last 24 hours for a different request. Use a new key for a new request.
409IDEMPOTENCY_IN_PROGRESSA request with this Idempotency-Key is still running. Retry in a moment.
429RATE_LIMITEDThe key, or the workspace’s keys together, have used this minute’s requests. Retry-After says how many seconds to wait.
429WEBHOOK_MANUAL_SEND_LIMITThis webhook was sent 20 tests and resends in the last hour. Try again later.
curl -X POST "https://api.polzy.ai/api/v1/webhooks/6abd1d…/test" \
  -H "Authorization: Bearer $POLZY_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
Response · 202
{
  "event_id": "webhook.test:6abd1d…:1729760441000.9f2c41ab",
  "event": "webhook.test",
  "state": "pending"
}
DELETE/v1/webhooks/{id}scope webhooks:write

Remove a webhook

Stops deliveries to that endpoint. Deliveries already queued are dropped.

Parameters
idstring · pathrequired
The webhook’s id.
Errors
401No key, or one that is unknown, revoked or expired, or whose creator no longer has access.
403SCOPE_MISSINGThe key was not given this endpoint’s scope.
404Nothing with that id in this workspace. Another workspace’s id is not found either.
429RATE_LIMITEDThe key, or the workspace’s keys together, have used this minute’s requests. Retry-After says how many seconds to wait.
curl -X DELETE "https://api.polzy.ai/api/v1/webhooks/6abd1d…" \
  -H "Authorization: Bearer $POLZY_KEY"
Response · 204
No content.
GET/v1/surveys/{id}scope surveys:read

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.

Parameters
idstring · pathrequired
The survey’s id.
Errors
401No key, or one that is unknown, revoked or expired, or whose creator no longer has access.
403SCOPE_MISSINGThe key was not given this endpoint’s scope.
404Nothing with that id in this workspace. Another workspace’s id is not found either.
429RATE_LIMITEDThe key, or the workspace’s keys together, have used this minute’s requests. Retry-After says how many seconds to wait.
curl "https://api.polzy.ai/api/v1/surveys/6512f0…" \
  -H "Authorization: Bearer $POLZY_KEY"
Response · 200
{
  "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"
}
GET/v1/surveys/{id}/responsesscope responses:read

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.

Parameters
idstring · pathrequired
The survey’s id.
limitinteger · query
1 to 100; 25 when left out. A larger limit is refused with 400, never cut down.
starting_afterstring · query
The next_cursor of the previous page, unchanged. It is good for this list in this workspace only.
statusstring · query
completed (the default), in_progress or all.
sincedate · query
Completed on or after this instant (ISO 8601). An anonymous answer is matched by its day, on the workspace’s clock.
untildate · query
Completed on or before this instant (ISO 8601); an anonymous answer by its day. Before since is refused.
updated_sincedate · query
Changed on or after this instant (ISO 8601) — scored again, for instance; an anonymous answer by its day. What a sync reads to catch up.
Errors
400A parameter is not valid — a limit outside 1–100, a date that is not ISO 8601, a value the field does not take. error names it.
400INVALID_CURSORstarting_after is not a cursor this list gave — changed, or from another list or workspace.
400INVALID_RANGEuntil is before since.
401No key, or one that is unknown, revoked or expired, or whose creator no longer has access.
403SCOPE_MISSINGThe key was not given this endpoint’s scope.
404Nothing with that id in this workspace. Another workspace’s id is not found either.
429RATE_LIMITEDThe key, or the workspace’s keys together, have used this minute’s requests. Retry-After says how many seconds to wait.
curl "https://api.polzy.ai/api/v1/surveys/6512f0…/responses?since=2026-10-01&limit=100" \
  -H "Authorization: Bearer $POLZY_KEY"
Response · 200
{
  "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
}
GET/v1/campaignsscope campaigns:read

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.

Parameters
limitinteger · query
1 to 100; 25 when left out. A larger limit is refused with 400, never cut down.
starting_afterstring · query
The next_cursor of the previous page, unchanged. It is good for this list in this workspace only.
statusstring · query
draft, active, paused or completed.
Errors
400A parameter is not valid — a limit outside 1–100, a date that is not ISO 8601, a value the field does not take. error names it.
400INVALID_CURSORstarting_after is not a cursor this list gave — changed, or from another list or workspace.
401No key, or one that is unknown, revoked or expired, or whose creator no longer has access.
403SCOPE_MISSINGThe key was not given this endpoint’s scope.
429RATE_LIMITEDThe key, or the workspace’s keys together, have used this minute’s requests. Retry-After says how many seconds to wait.
curl "https://api.polzy.ai/api/v1/campaigns?status=active" \
  -H "Authorization: Bearer $POLZY_KEY"
Response · 200
{
  "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/v1/campaigns/{id}scope campaigns:read

Get a campaign

One campaign, as the list gives it.

Parameters
idstring · pathrequired
The campaign’s id.
Errors
401No key, or one that is unknown, revoked or expired, or whose creator no longer has access.
403SCOPE_MISSINGThe key was not given this endpoint’s scope.
404Nothing with that id in this workspace. Another workspace’s id is not found either.
429RATE_LIMITEDThe key, or the workspace’s keys together, have used this minute’s requests. Retry-After says how many seconds to wait.
curl "https://api.polzy.ai/api/v1/campaigns/6520aa…" \
  -H "Authorization: Bearer $POLZY_KEY"
Response · 200
{
  "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"
}
GET/v1/campaigns/{id}/responsesscope responses:read

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.

Parameters
idstring · pathrequired
The campaign’s id.
limitinteger · query
1 to 100; 25 when left out. A larger limit is refused with 400, never cut down.
starting_afterstring · query
The next_cursor of the previous page, unchanged. It is good for this list in this workspace only.
statusstring · query
completed (the default), in_progress or all.
sincedate · query
Completed on or after this instant (ISO 8601). An anonymous answer is matched by its day, on the workspace’s clock.
untildate · query
Completed on or before this instant (ISO 8601); an anonymous answer by its day. Before since is refused.
updated_sincedate · query
Changed on or after this instant (ISO 8601) — scored again, for instance; an anonymous answer by its day. What a sync reads to catch up.
Errors
400A parameter is not valid — a limit outside 1–100, a date that is not ISO 8601, a value the field does not take. error names it.
400INVALID_CURSORstarting_after is not a cursor this list gave — changed, or from another list or workspace.
400INVALID_RANGEuntil is before since.
401No key, or one that is unknown, revoked or expired, or whose creator no longer has access.
403SCOPE_MISSINGThe key was not given this endpoint’s scope.
404Nothing with that id in this workspace. Another workspace’s id is not found either.
429RATE_LIMITEDThe key, or the workspace’s keys together, have used this minute’s requests. Retry-After says how many seconds to wait.
curl "https://api.polzy.ai/api/v1/campaigns/6520aa…/responses?updated_since=2026-10-24T00:00:00Z" \
  -H "Authorization: Bearer $POLZY_KEY"
Response · 200
{
  "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/v1/responses/{id}scope responses:read

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.

Parameters
idstring · pathrequired
The response’s id, resp_… as the list or a webhook gave it.
Errors
401No key, or one that is unknown, revoked or expired, or whose creator no longer has access.
403SCOPE_MISSINGThe key was not given this endpoint’s scope.
403GROUP_TOO_SMALLAn anonymous answer from a group too small to hide in: too few people answered anonymously here.
404Nothing with that id in this workspace. Another workspace’s id is not found either.
429RATE_LIMITEDThe key, or the workspace’s keys together, have used this minute’s requests. Retry-After says how many seconds to wait.
curl "https://api.polzy.ai/api/v1/responses/resp_6721c9e0a4b1f2003d5e8a17" \
  -H "Authorization: Bearer $POLZY_KEY"
Response · 200
{
  "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"
  }
}
GET/v1/actionsscope actions:read

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.

Parameters
limitinteger · query
1 to 100; 25 when left out. A larger limit is refused with 400, never cut down.
starting_afterstring · query
The next_cursor of the previous page, unchanged. It is good for this list in this workspace only.
stagestring · query
pending, in_progress, waiting, completed or dismissed.
Errors
400A parameter is not valid — a limit outside 1–100, a date that is not ISO 8601, a value the field does not take. error names it.
400INVALID_CURSORstarting_after is not a cursor this list gave — changed, or from another list or workspace.
401No key, or one that is unknown, revoked or expired, or whose creator no longer has access.
403SCOPE_MISSINGThe key was not given this endpoint’s scope.
429RATE_LIMITEDThe key, or the workspace’s keys together, have used this minute’s requests. Retry-After says how many seconds to wait.
curl "https://api.polzy.ai/api/v1/actions?stage=in_progress" \
  -H "Authorization: Bearer $POLZY_KEY"
Response · 200
{
  "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…"
}
PATCH/v1/actions/{id}scope actions:write

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.

Parameters
idstring · pathrequired
The action’s id.
stagestring · bodyrequired
pending, in_progress, waiting, completed or dismissed.
Idempotency-Keystring · header
Any string of 1 to 255 printable characters. The same key in the next 24 hours replays the first answer, marked Idempotent-Replayed: true, and the write is made once.
Errors
400A parameter is not valid — a limit outside 1–100, a date that is not ISO 8601, a value the field does not take. error names it.
400INVALID_IDEMPOTENCY_KEYThe Idempotency-Key is not 1 to 255 printable characters, or was sent twice.
401No key, or one that is unknown, revoked or expired, or whose creator no longer has access.
403SCOPE_MISSINGThe key was not given this endpoint’s scope.
404Nothing with that id in this workspace. Another workspace’s id is not found either.
409IDEMPOTENCY_KEY_REUSEDThis Idempotency-Key was used in the last 24 hours for a different request. Use a new key for a new request.
409IDEMPOTENCY_IN_PROGRESSA request with this Idempotency-Key is still running. Retry in a moment.
429RATE_LIMITEDThe key, or the workspace’s keys together, have used this minute’s requests. Retry-After says how many seconds to wait.
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"}'
Response · 200
{
  "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"
}