Formzed API

    Developer documentation

    Formzed API

    Work with Formzed from your own code: manage forms, send and read responses, make prefilled links, read payments, ask AI about your responses, run AI Research, and get webhooks when something happens.

    What you can do

    One REST API with JSON in and out. Every resource has its own reference section.

    Three ways to connect

    Pick by where your code runs.

    1. Server API

    Runs in
    Your backend, scripts, Zapier, Make or n8n
    API key
    Yes. Keep it secret, on your server.
    Use it for
    Reading and writing forms, responses, payments and more from your own systems.

    2. Your own website form

    Runs in
    The visitor's browser, on your site
    API key
    No
    Use it for
    A form you design yourself, with no server code.

    3. Embed the hosted form

    Runs in
    An iframe on your page
    API key
    No
    Use it for
    The full Formzed form. Uploads, payments and bookings work.
    API keys are secret. A key can read and change your forms and responses. Never put one in browser JavaScript, a web page or a mobile app: anyone can read the page source. For forms on your website, use option 2 or 3. They need no key.
    Endpoints

    API v1 base URL (API key)

    https://api.formzed.com/v1

    Website forms (no key)

    POST/forms/submit

    Legacy submit (still works)

    POST/submit-response

    Build with AI

    Describe it. Your coding agent builds it.

    Claude Code and Codex read these docs and write the integration in your own project, with keys, errors and webhooks handled the right way. One command to start.

    Terminal · in your project folder
    $ claude "Read https://www.formzed.com/api-docs.md and add a Formzed API v1 integration to this project that [what it should do]. Keep the API key in the FORMZED_API_KEY environment variable and never in browser code. Handle errors by their code, retry RATE_LIMITED after Retry-After, and verify webhook signatures."

    Needs Claude Code installed. Replace [what it should do] with your goal before you run it.

    Getting started

    Quickstart

    Find a form and send your first response with the server API.

    1

    Create an API key

    In Dashboard → API, create a key and choose what it may do (for this quickstart: Read only plus Submit responses, or Full access). The full key is shown once: store it in an environment variable. Keys start with fz_.

    2

    Find the form and field ids

    GET /v1/forms lists your forms. GET /v1/forms/:id returns its fields: each id is an answer key. The form must be published to take responses.

    3

    Submit a response

    POST the answers to /v1/forms/:id/responses. A 201 reply with an id means the response is saved and the form's automations run.

    terminal — curl
    # 1. Your forms and their ids
    curl "https://api.formzed.com/v1/forms?status=published" \
      -H "X-API-Key: $FORMZED_API_KEY"
    
    # 2. One form's questions: use fields[].id as answer keys
    curl "https://api.formzed.com/v1/forms/FORM_ID" \
      -H "X-API-Key: $FORMZED_API_KEY"
    
    # 3. Submit a response
    curl -X POST "https://api.formzed.com/v1/forms/FORM_ID/responses" \
      -H "X-API-Key: $FORMZED_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{ "data": { "field-1712345678901": "Jane Cooper", "field-1712345678902": "jane@example.com" } }'
    Building a form on your website? Don't call the API from the browser. Use instead. It needs no key.

    Getting started

    Authentication and keys

    Every API v1 request needs a key, in the X-API-Key header or as a Bearer token. Create and manage keys in Dashboard → API.

    Request headers
    X-API-Key: fz_your_api_key
    
    # or, the same key as a Bearer token
    Authorization: Bearer fz_your_api_key
    Keep keys on your server. Store the key in an environment variable such as FORMZED_API_KEY and never commit it to a repository. Formzed stores only a hash of each key, so a lost key can't be shown again: rotate it. If a key leaks, turn it off in Dashboard → API right away.

    What a key can reach

    A key acts as the user who created it.

    • Forms: the owner's own forms and the team forms they can see in the dashboard. Other accounts' forms answer 404, as if they didn't exist.
    • Changes (editing a form, editing or deleting responses, erasure) need edit rights: the form's owner, the organization's owner or an admin, or a member of the form's workspace for shared forms. Team viewers can only read (403 FORBIDDEN). Only the owner can publish.
    • AI Research: studies in the workspaces the owner is in. Webhooks: the owner's own.
    • A key limited to one form can only use that form: it can't create or copy forms (KEY_FORM_RESTRICTED), can't use AI Research (KEY_RESTRICTED), and its webhooks stay on that form.
    • Plan, limits and AI credits are the owner's (for team plans, the organization's).

    Permissions (scopes)

    Each key has a set of permissions (scopes). A request without the needed one answers 403 INSUFFICIENT_SCOPE with required_scope. Keys made before API v1 have responses:write only.

    ScopeAllowsEndpoints
    responses:readRead responses and their uploaded files.GET /v1/forms/:id/responses, GET /v1/responses/:id
    responses:writeSubmit, import and edit responses.POST /v1/forms/:id/responses, POST /v1/forms/:id/responses/import, PATCH /v1/responses/:id, legacy POST /submit-response
    responses:deleteDelete responses and erase one person's data by email.DELETE /v1/responses/:id, POST /v1/erasure
    forms:readList forms, read their questions and prefilled links.GET /v1/forms, GET /v1/forms/:id, GET /v1/forms/:id/prefill-links
    forms:writeCreate, edit, publish and copy forms; create and delete prefilled links.POST /v1/forms, PATCH /v1/forms/:id, POST /v1/forms/:id/publish, POST /v1/forms/:id/duplicate, POST /v1/forms/:id/prefill-links, DELETE /v1/prefill-links/:token
    payments:readSee payments taken through your forms.GET /v1/payments, GET /v1/payments/:id
    aiAsk questions about responses and get summaries. Uses the key owner's AI credits.POST /v1/ai/ask, POST /v1/ai/summary
    interviews:readSee AI Research studies, reports, interviews and transcripts, and evaluation studies and their results.GET /v1/studies, GET /v1/studies/:id, GET /v1/studies/:id/report, GET /v1/studies/:id/interviews, GET /v1/interviews/:id, GET /v1/evaluations, GET /v1/evaluations/:id, GET /v1/evaluations/:id/summary, GET /v1/evaluations/:id/results
    interviews:writeCreate AI Research studies (as drafts); create evaluation studies, upload their files and items, and publish them.POST /v1/studies, POST /v1/evaluations, POST /v1/evaluations/:id/media, POST /v1/evaluations/:id/items, POST /v1/evaluations/:id/publish
    webhooksAdd, change, test and remove webhook endpoints.Every /v1/webhooks endpoint

    Presets

    Pick one when you create or edit a key.

    PresetScopesGood for
    Submit onlyresponses:writeSending responses from a server or a no-code tool. Can't read anything back.
    Read onlyresponses:read forms:read payments:read interviews:readReporting, exports and syncs. Can't change anything.
    Full accessAll ten scopesEverything, including deleting, AI and webhooks (Zapier and Make need this).
    CustomAny you pickExactly what one integration needs.

    Key settings

    Set these when you create a key; edit them later in Dashboard → API.

    SettingWhat it does
    NameA label so you know where the key is used.
    PermissionsThe scopes above.
    Form accessAll forms the owner can see, or one form.
    IP allowlistOptional. Exact IPv4 or IPv6 addresses, or IPv4 ranges in CIDR form (203.0.113.0/24). Other addresses get 403 IP_NOT_ALLOWED. Empty means any IP.
    ExpiryNever, 30 days, 90 days or 1 year. After it, the key gets 401 API_KEY_EXPIRED.
    Daily cap100 to 10,000 counted requests per day for this key. Resets at 00:00 UTC. When used up: 429 KEY_DAILY_LIMIT.

    Rotating a key

    Replace a key without downtime.

    1. 1

      Rotate in Dashboard → API

      Choose a grace period: 1 hour, 24 hours or 7 days. You get a new key with the same permissions, form access, IP allowlist, cap and expiry.
    2. 2

      Deploy the new key

      Both keys work during the grace period.
    3. 3

      The old key stops

      After the grace period the old key answers 401 API_KEY_ROTATED.

    Use one key per integration

    Usage is shown per key, and you can turn one off without breaking the others.

    Give each key only the scopes it needs

    A leaked Submit only key can't read or delete anything.

    Limit a key to one form when you can, and add an IP allowlist for fixed servers

    If that key leaks, it can only reach that form, from those addresses.

    Getting started

    Conventions

    The rules every endpoint follows.

    TopicRule
    Base URLhttps://api.formzed.com/v1
    FormatJSON in and out. Send Content-Type: application/json with a body (2 MB at most).
    TimesISO 8601. Times Formzed returns are UTC, like 2026-10-13T18:02:45.123456+00:00.
    IdsUUIDs, except field ids (like field-1712345678901) and prefilled link tokens.
    One item{ "data": { ... } }. Created items answer 201. Deleted items answer { "data": { "id": "...", "deleted": true } }.
    Lists{ "data": [ ... ], "next_cursor": "..." | null }, newest first. ?limit= 1 to 200 (default 50); pass next_cursor as ?cursor= for the next page.
    Errors{ "error": "<message>", "code": "<CODE>", ... } with an HTTP status. Branch on code.
    Request idEvery authenticated reply has an X-Request-Id header. Quote it when you contact support.
    RetriesSend an Idempotency-Key header with every POST: a retry with the same key gets the first answer back instead of creating a second item. See Retrying safely.
    CORSThe API answers browsers too (the playground below uses that), but keys must still stay on servers.

    Response headers

    Accounts with unlimited API use don't get the limit headers.

    HeaderMeaning
    X-Request-IdA unique id for this request.
    X-RateLimit-LimitRequests per minute per key on your plan.
    X-Monthly-LimitThis month's API requests: the plan's allowance plus unused API packs, for all keys.
    X-Monthly-RemainingAPI requests left this month after this one.
    Idempotent-Replayedtrue when this is the stored answer to an earlier request with the same Idempotency-Key.
    Retry-AfterSeconds to wait. Sent with RATE_LIMITED (60), KEY_DAILY_LIMIT (until 00:00 UTC) and MONTHLY_LIMIT (until the 1st).

    Paging through a list

    paginate.mjs — Node 18+
    // Every list endpoint pages the same way: follow next_cursor until it is null.
    async function allResponses(formId) {
      const all = [];
      let cursor = null;
      do {
        const url = new URL(`https://api.formzed.com/v1/forms/${formId}/responses`);
        url.searchParams.set("limit", "200");
        if (cursor) url.searchParams.set("cursor", cursor);
        const res = await fetch(url, { headers: { "X-API-Key": process.env.FORMZED_API_KEY } });
        const body = await res.json();
        if (!res.ok) throw new Error(`Formzed ${res.status} ${body.code}: ${body.error}`);
        all.push(...body.data);
        cursor = body.next_cursor;
      } while (cursor);
      return all;
    }

    Retrying safely: Idempotency-Key

    Zapier, Make and flaky networks retry requests. Add an Idempotency-Key header (any unique string up to 255 characters, like a UUID or your own order id) to a POST, and Formzed runs it once: a repeat with the same key and the same body within 24 hours gets the first answer back, with Idempotent-Replayed: true, and doesn't count as a new request.

    CaseWhat you get
    First request with a keyRuns normally. The answer is stored for 24 hours (server errors aren't, so you can retry those).
    Same key, same requestThe stored answer, same status and body, plus Idempotent-Replayed: true.
    Same key, different body or endpoint422 IDEMPOTENCY_KEY_REUSED: use a new key for each new request.
    Same key while the first is still running409 IDEMPOTENCY_IN_PROGRESS with Retry-After: 2.
    Key longer than 255 characters400 INVALID_IDEMPOTENCY_KEY.

    Keys belong to the API key that sent them, so two integrations can't collide. GET, PATCH and DELETE are already safe to repeat and ignore the header.

    Create a response once
    curl -X POST "https://api.formzed.com/v1/forms/6f1c2b9e-3d4a-4e5f-8a7b-1c2d3e4f5a6b/responses"   -H "X-API-Key: $FORMZED_API_KEY"   -H "Content-Type: application/json"   -H "Idempotency-Key: order-1001"   -d '{"data": {"full-name": "Ada Lovelace", "email": "ada@example.com"}}'
    
    # Sent again with the same key (a retry): the first answer comes back,
    # with "Idempotent-Replayed: true", and no second response is saved.

    API reference

    Forms

    Read forms and their questions, create and edit drafts, publish, and copy.

    The form object

    As returned by GET /v1/forms (list items) and every form endpoint (with fields).

    FieldTypeDescription
    iduuidThe form id.
    title, descriptionstringdescription may be null.
    statusstringpublished or draft.
    slug, urlstringThe custom link name (or null) and the public form address.
    edit_urlstringThe form in the Formzed builder, to change its design, logic and other settings (opens for someone signed in who can edit it).
    created_at, updated_at, published_atISO 8601published_at is null until the first publish.
    fieldsField[]Single form only. Each: { id, type, label, required, options?, description?, placeholder? }.
    draft_fieldsField[]Single form only, when the draft differs from the published version.

    List forms

    The forms the key can use, newest first: the key owner's own forms and the team forms they can see. A key limited to one form lists only that form.
    GET/v1/formsforms:read
    Query parameters
    • status
      stringpublished or draft. Leave out for both.
    • limit
      integerItems per page, 1 to 200. Default 50.
    • cursor
      stringThe next_cursor of the previous page.
    Request — cURL
    curl "https://api.formzed.com/v1/forms?status=published&limit=20" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": [
        {
          "id": "6f1c2b9e-3d4a-4e5f-8a7b-1c2d3e4f5a6b",
          "title": "Event sign-up",
          "description": "Register for the October meetup.",
          "status": "published",
          "slug": "event-sign-up",
          "url": "https://www.formzed.com/form/event-sign-up",
          "created_at": "2026-10-01T09:12:44.512345+00:00",
          "updated_at": "2026-10-02T16:03:10.118204+00:00",
          "published_at": "2026-10-02T16:03:10.118204+00:00"
        }
      ],
      "next_cursor": null
    }
    Errors:BAD_REQUESTplus the common key and limit errors.

    Get a form

    The form with its questions. fields is the published version (the draft if it was never published). When the draft has unpublished changes, draft_fields shows the draft too. Use the field ids as answer keys.
    GET/v1/forms/:idforms:read
    Request — cURL
    curl "https://api.formzed.com/v1/forms/FORM_ID" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": {
        "id": "6f1c2b9e-3d4a-4e5f-8a7b-1c2d3e4f5a6b",
        "title": "Event sign-up",
        "description": "Register for the October meetup.",
        "status": "published",
        "slug": "event-sign-up",
        "url": "https://www.formzed.com/form/event-sign-up",
        "created_at": "2026-10-01T09:12:44.512345+00:00",
        "updated_at": "2026-10-02T16:03:10.118204+00:00",
        "published_at": "2026-10-02T16:03:10.118204+00:00",
        "fields": [
          {
            "id": "field-1712345678901",
            "type": "text",
            "label": "Name",
            "required": true,
            "placeholder": "Jane Cooper"
          },
          {
            "id": "field-1712345678902",
            "type": "email",
            "label": "Email",
            "required": true
          },
          {
            "id": "field-1712345678903",
            "type": "select",
            "label": "Ticket",
            "required": false,
            "options": ["Standard", "VIP"]
          }
        ]
      }
    }
    Errors:FORM_NOT_FOUNDplus the common key and limit errors.

    Create a form

    Creates a draft form owned by the key's owner. Publish it to start taking responses.
    POST/v1/formsforms:write
    Request body (JSON)
    • titlerequired
      stringUp to 200 characters.
    • description
      string | nullUp to 5,000 characters.
    • fields
      Field[]The questions, in order. Up to 300. See the field properties below.

    Field properties

    Only these properties are accepted; others are dropped. Payment, appointment and scheduling settings and styling are set in the builder.

    PropertyTypeNotes
    idstringOptional. 1 to 64 letters, digits, - or _. Generated when left out (field-<timestamp><n>).
    typestringRequired. text, textarea, email, number, tel, date, select, radio, checkbox, image_choice, rating, conjoint, single_checkbox, terms, signature, file, image, image_upload, video_answer, address, appointment, scheduling, table, calculated, and the display blocks divider, statement, embed, video. Payment fields are added in the builder only.
    labelstringThe question. Required except for display blocks. Up to 1,000 characters.
    requiredbooleanDefault false.
    placeholder, descriptionstringUp to 300 and 2,000 characters.
    optionsstring[]Choice fields (select, radio, checkbox, image_choice): 1 to 200 unique options. Required for them.
    optionWeightsobjectChoice fields: option → points, for scores and calculated fields.
    imagesstring[]image_choice: one image URL per option.
    min, maxnumberLimits for number and similar fields.
    maxFileSize, allowedFileTypesnumber, string[]Upload fields: size in MB (1 to 50); any of pdf, docs, images, all.
    videoMaxDurationSecnumbervideo_answer: 15 to 300 seconds.
    embedUrl, videoUrl, videoCaptionstringembed and video blocks.
    termsContent, termsFormatstringterms: the text, and paragraph or list.
    tableColumnsobject[]table: up to 20 columns { id, name, type, options?, currencySymbol?, quantityColumnId?, priceColumnId? }; type is text, number, select, currency or line_total.
    calcobjectcalculated: { expression, precision?, blank?, min?, max?, bands?, hidden? }. hidden: true keeps the score from respondents. A sent calc replaces the saved one, except that a hidden score stays hidden when hidden is left out; send false to show it.
    conjointSettingsobjectconjoint (choice-based; publishing needs a paid AI Research plan): { attributes: [{ name, levels, price? }], tasks, concepts, none?, noneLabel? }. 2 to 6 attributes with 2 to 7 levels each, at most one marked as the price; 3 to 15 screens; 2 to 4 products a screen. Required for conjoint. Answers come back as { v, sig, picks }: the design version and the pick on each screen (-1 for None).
    conditionsobject[]Show the field only when these match: { fieldId, operator, value?, logic? }. Operators: equals, not_equals, contains, not_contains, greater_than, less_than, is_empty, is_not_empty. They must point at other fields of the form.
    Request — cURL
    curl -X POST "https://api.formzed.com/v1/forms" \
      -H "X-API-Key: $FORMZED_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "title": "Event sign-up",
        "description": "Register for the October meetup.",
        "fields": [
          {
            "type": "text",
            "label": "Name",
            "required": true
          },
          {
            "type": "email",
            "label": "Email",
            "required": true
          },
          {
            "type": "select",
            "label": "Ticket",
            "options": ["Standard", "VIP"]
          }
        ]
      }'
    Response — 201 Created
    {
      "data": {
        "id": "a7d3e9f1-2b4c-4d6e-8f0a-1b3c5d7e9f20",
        "title": "Event sign-up",
        "description": "Register for the October meetup.",
        "status": "draft",
        "slug": null,
        "url": "https://www.formzed.com/form/a7d3e9f1-2b4c-4d6e-8f0a-1b3c5d7e9f20",
        "created_at": "2026-10-14T10:15:02.331846+00:00",
        "updated_at": "2026-10-14T10:15:02.331846+00:00",
        "published_at": null,
        "fields": [
          {
            "id": "field-17604369023310",
            "type": "text",
            "label": "Name",
            "required": true
          },
          {
            "id": "field-17604369023311",
            "type": "email",
            "label": "Email",
            "required": true
          },
          {
            "id": "field-17604369023312",
            "type": "select",
            "label": "Ticket",
            "required": false,
            "options": ["Standard", "VIP"]
          }
        ]
      }
    }
    Errors:BAD_REQUESTKEY_FORM_RESTRICTEDPLAN_LIMITplus the common key and limit errors.

    Update a form's draft

    Changes the draft only. The live form keeps its published version until you publish again. Allowed for the form's owner, and for teammates who can edit it (owners and admins of the workspace; members for shared forms).
    PATCH/v1/forms/:idforms:write
    Request body (JSON)
    • title
      stringUp to 200 characters.
    • description
      string | nullUp to 5,000 characters.
    • fields
      Field[]Replaces the draft's whole question list, so send every field you want to keep. A field sent with the id and type of a saved field starts from the saved one: properties you leave out stay, null removes one, and builder-only settings (payment, styling) are kept. A form can have only one Payment question: a list that keeps more than one (forms made before that rule) is refused with VALIDATION_FAILED. Merge them in the builder, or leave the extra ones out to delete them.
    Request — cURL
    curl -X PATCH "https://api.formzed.com/v1/forms/FORM_ID" \
      -H "X-API-Key: $FORMZED_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "title": "Event sign-up (October)",
        "fields": [
          {
            "id": "field-1712345678901",
            "type": "text",
            "label": "Full name",
            "required": true
          },
          {
            "id": "field-1712345678902",
            "type": "email",
            "label": "Email",
            "required": true
          },
          {
            "id": "field-1712345678903",
            "type": "select",
            "label": "Ticket",
            "options": ["Standard", "VIP", "Student"]
          }
        ]
      }'
    Response — 200 OK
    {
      "data": {
        "id": "6f1c2b9e-3d4a-4e5f-8a7b-1c2d3e4f5a6b",
        "title": "Event sign-up (October)",
        "description": "Register for the October meetup.",
        "status": "published",
        "slug": "event-sign-up",
        "url": "https://www.formzed.com/form/event-sign-up",
        "created_at": "2026-10-01T09:12:44.512345+00:00",
        "updated_at": "2026-10-14T10:20:44.902113+00:00",
        "published_at": "2026-10-02T16:03:10.118204+00:00",
        "fields": [
          {
            "id": "field-1712345678901",
            "type": "text",
            "label": "Name",
            "required": true,
            "placeholder": "Jane Cooper"
          },
          {
            "id": "field-1712345678902",
            "type": "email",
            "label": "Email",
            "required": true
          },
          {
            "id": "field-1712345678903",
            "type": "select",
            "label": "Ticket",
            "required": false,
            "options": ["Standard", "VIP"]
          }
        ],
        "draft_fields": [
          {
            "id": "field-1712345678901",
            "type": "text",
            "label": "Full name",
            "required": true,
            "placeholder": "Jane Cooper"
          },
          {
            "id": "field-1712345678902",
            "type": "email",
            "label": "Email",
            "required": true
          },
          {
            "id": "field-1712345678903",
            "type": "select",
            "label": "Ticket",
            "required": false,
            "options": ["Standard", "VIP", "Student"]
          }
        ]
      }
    }
    Errors:BAD_REQUESTFORM_NOT_FOUNDFORBIDDENVALIDATION_FAILEDPLAN_LIMITplus the common key and limit errors.

    Publish a form

    Puts the current draft live as a new version. Only the form's owner can publish. The form needs at least one field, valid calculated fields, at most one Payment question, and, if it takes payments, a priced item and a connected Stripe account. No body.
    POST/v1/forms/:id/publishforms:write
    Request — cURL
    curl -X POST "https://api.formzed.com/v1/forms/FORM_ID/publish" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": {
        "id": "6f1c2b9e-3d4a-4e5f-8a7b-1c2d3e4f5a6b",
        "title": "Event sign-up",
        "description": "Register for the October meetup.",
        "status": "published",
        "slug": "event-sign-up",
        "url": "https://www.formzed.com/form/event-sign-up",
        "created_at": "2026-10-01T09:12:44.512345+00:00",
        "updated_at": "2026-10-02T16:03:10.118204+00:00",
        "published_at": "2026-10-14T10:22:05.117302+00:00",
        "fields": [
          {
            "id": "field-1712345678901",
            "type": "text",
            "label": "Name",
            "required": true,
            "placeholder": "Jane Cooper"
          },
          {
            "id": "field-1712345678902",
            "type": "email",
            "label": "Email",
            "required": true
          },
          {
            "id": "field-1712345678903",
            "type": "select",
            "label": "Ticket",
            "required": false,
            "options": ["Standard", "VIP"]
          }
        ]
      }
    }
    Errors:FORM_NOT_FOUNDFORBIDDENVALIDATION_FAILEDSTRIPE_NOT_CONNECTEDplus the common key and limit errors.

    Copy a form

    Creates a new draft "Copy of <title>" from the source form's draft and theme, owned by the key's owner. An older form with more than one Payment question has them merged into one in the copy; when they can't be merged safely, nothing is copied (VALIDATION_FAILED, with the reason). No body.
    POST/v1/forms/:id/duplicateforms:write
    Request — cURL
    curl -X POST "https://api.formzed.com/v1/forms/FORM_ID/duplicate" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 201 Created
    {
      "data": {
        "id": "d2e4f6a8-1b3c-4d5e-9f7a-2c4e6a8b0d1f",
        "title": "Copy of Event sign-up",
        "description": "Register for the October meetup.",
        "status": "draft",
        "slug": null,
        "url": "https://www.formzed.com/form/d2e4f6a8-1b3c-4d5e-9f7a-2c4e6a8b0d1f",
        "created_at": "2026-10-14T10:25:31.004417+00:00",
        "updated_at": "2026-10-14T10:25:31.004417+00:00",
        "published_at": null,
        "fields": [
          {
            "id": "field-1712345678901",
            "type": "text",
            "label": "Name",
            "required": true,
            "placeholder": "Jane Cooper"
          },
          {
            "id": "field-1712345678902",
            "type": "email",
            "label": "Email",
            "required": true
          },
          {
            "id": "field-1712345678903",
            "type": "select",
            "label": "Ticket",
            "required": false,
            "options": ["Standard", "VIP"]
          }
        ]
      }
    }
    Errors:FORM_NOT_FOUNDKEY_FORM_RESTRICTEDVALIDATION_FAILEDPLAN_LIMITplus the common key and limit errors.

    API reference

    Responses

    Submit, import, read, edit and delete responses, and erase one person's data.

    The response object

    FieldTypeDescription
    id, form_iduuidThe response and its form.
    submitted_atISO 8601When it was submitted (the original time for imports).
    is_draftbooleantrue for unfinished drafts (only with include_drafts=true).
    answersobjectAnswers keyed by field id. File answers are links that open for 24 hours.
    answers_by_labelobjectThe same answers keyed by question label. Address and appointment answers become an object of their parts; a repeated label gets the field id added.
    computedobjectCalculated fields: { "<field id>": { "value": 42, "band": "High" } }.
    sourcestringform (hosted form or your website form), api, or api_import.
    payment_statusstring | nullpending, paid, refunded, disputed, expired (checkout abandoned), failed (bank payment didn't go through), or null.
    qualityobjectThe response quality check: { checked, low_quality, flags: [{ kind, label, reason, field_id? }], seconds }. kind is speeder, bot, straight_line, gibberish or duplicate.
    excluded, excluded_atboolean, ISO 8601 | nullWhether the form's team excluded it from results, and when. Excluded responses are kept, never deleted.

    List a form's responses

    Submitted responses, newest first. Links to uploaded files are signed and open for 24 hours.
    GET/v1/forms/:id/responsesresponses:read
    Query parameters
    • since
      ISO 8601Only items with a submission time at or after this time.
    • until
      ISO 8601Only items with a submission time at or before this time.
    • include_drafts
      booleantrue also returns unfinished drafts (is_draft: true). Default false.
    • include_excluded
      booleantrue also returns responses the team excluded from results (excluded: true). Default false, like the app's exports.
    • limit
      integerItems per page, 1 to 200. Default 50.
    • cursor
      stringThe next_cursor of the previous page.
    Request — cURL
    curl "https://api.formzed.com/v1/forms/FORM_ID/responses?since=2026-10-01T00:00:00Z&limit=100" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": [
        {
          "id": "0b9c2f4e-7a1d-4c3b-9e8f-5d6a7b8c9d0e",
          "form_id": "6f1c2b9e-3d4a-4e5f-8a7b-1c2d3e4f5a6b",
          "submitted_at": "2026-10-13T18:02:45.123456+00:00",
          "is_draft": false,
          "answers": {
            "field-1712345678901": "Jane Cooper",
            "field-1712345678902": "jane@example.com",
            "field-1712345678903": "VIP"
          },
          "answers_by_label": {
            "Name": "Jane Cooper",
            "Email": "jane@example.com",
            "Ticket": "VIP"
          },
          "computed": {},
          "source": "form",
          "payment_status": null
        }
      ],
      "next_cursor": "MjAyNi0xMC0xM1QxODowMjo0NS4xMjM0NTYrMDA6MDB8MGI5YzJmNGUtN2ExZC00YzNiLTllOGYtNWQ2YTdiOGM5ZDBl"
    }
    Errors:BAD_REQUESTFORM_NOT_FOUNDplus the common key and limit errors.

    Get a response

    One response, in the same shape as the list.
    GET/v1/responses/:idresponses:read
    Request — cURL
    curl "https://api.formzed.com/v1/responses/RESPONSE_ID" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": {
        "id": "0b9c2f4e-7a1d-4c3b-9e8f-5d6a7b8c9d0e",
        "form_id": "6f1c2b9e-3d4a-4e5f-8a7b-1c2d3e4f5a6b",
        "submitted_at": "2026-10-13T18:02:45.123456+00:00",
        "is_draft": false,
        "answers": {
          "field-1712345678901": "Jane Cooper",
          "field-1712345678902": "jane@example.com",
          "field-1712345678903": "VIP"
        },
        "answers_by_label": {
          "Name": "Jane Cooper",
          "Email": "jane@example.com",
          "Ticket": "VIP"
        },
        "computed": {},
        "source": "form",
        "payment_status": null
      }
    }
    Errors:NOT_FOUNDplus the common key and limit errors.

    Submit a response

    Saves a response to a published form, checked exactly like the hosted form. It runs the form's automations, sends response.created webhooks and counts toward the form owner's monthly responses.
    POST/v1/forms/:id/responsesresponses:write
    Request body (JSON)
    • datarequired
      objectThe answers, keyed by field id (not the label). Required fields need an answer; fields hidden by conditional logic and keys that aren't field ids are dropped; calculated fields are worked out for you.

    Answer format

    Same rules as the hosted form.

    Field typeValue to send
    text, textarea, email, telString
    number, ratingNumber (rating 1 to 5)
    dateString, YYYY-MM-DD
    select, radio, image_choiceOne of the field's options, spelled exactly as in the form
    checkboxArray of the field's options
    single_checkbox, termstrue
    file, image, image_upload, video_answer, signatureA link to the file (https://…); a signature may also be a data:image/png;base64,… image. The API does not upload files.
    address, appointmentOne key per part, after the field id: <id>-street, -city, -state, -zip, -country; <id>-date, -time.
    calculatedDon't send. Formzed works it out and returns it in computed.
    paymentCan't be paid through the API. Use the hosted form.
    Request — cURL
    curl -X POST "https://api.formzed.com/v1/forms/FORM_ID/responses" \
      -H "X-API-Key: $FORMZED_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "data": {
          "field-1712345678901": "Jane Cooper",
          "field-1712345678902": "jane@example.com",
          "field-1712345678903": "VIP"
        }
      }'
    Response — 201 Created
    {
      "data": {
        "id": "0b9c2f4e-7a1d-4c3b-9e8f-5d6a7b8c9d0e",
        "computed": {}
      }
    }

    Import responses

    Saves up to 500 responses in one request, for example history from another tool. Each row is checked like a normal submission; rows that fail are reported and the rest are saved. The whole call counts as one API request, but every saved row counts toward the form owner's monthly responses (in the month you import it).
    POST/v1/forms/:id/responses/importresponses:write
    Request body (JSON)
    • responsesrequired
      object[]1 to 500 rows: { "data": {...}, "submitted_at"?: "<ISO date>" }. submitted_at keeps the original time and can't be in the future.
    • run_automations
      booleanDefault false: imported rows run no automations and send no webhooks. true treats each row like a new submission.
    • The form must be published.
    • If the monthly response limit is reached mid-import, the call stops and answers 403 RESPONSE_LIMIT with what was saved and stopped_at: the first row that wasn't imported.
    Request — cURL
    curl -X POST "https://api.formzed.com/v1/forms/FORM_ID/responses/import" \
      -H "X-API-Key: $FORMZED_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "responses": [
          {
            "data": {
              "field-1712345678901": "Ann Lee",
              "field-1712345678902": "ann@example.com"
            },
            "submitted_at": "2026-09-01T10:00:00Z"
          },
          {
            "data": {
              "field-1712345678901": "Bob Stone",
              "field-1712345678902": "bob@example.com"
            }
          },
          {
            "data": {
              "field-1712345678901": "Cy Park"
            }
          }
        ],
        "run_automations": false
      }'
    Response — 200 OK
    {
      "data": {
        "imported": 2,
        "ids": [
          "0b9c2f4e-7a1d-4c3b-9e8f-5d6a7b8c9d0e",
          "c4d5e6f7-8a9b-4c0d-9e1f-2a3b4c5d6e7f"
        ],
        "failed": [
          {
            "index": 2,
            "code": "VALIDATION_FAILED",
            "error": "Validation failed",
            "errors": [
              {
                "field_id": "field-1712345678902",
                "message": "\"Email\" is required"
              }
            ]
          }
        ]
      }
    }
    Errors:BAD_REQUESTFORM_NOT_FOUNDFORM_NOT_PUBLISHEDRESPONSE_LIMITplus the common key and limit errors.

    Edit a response

    Merges new answers into a submitted response, then checks the whole response again against the published form. Sends response.updated webhooks when answers change. Unfinished drafts can't be edited.
    PATCH/v1/responses/:idresponses:write
    Request body (JSON)
    • datarequired
      objectAnswers to change, keyed by field id. null clears an answer.
    Request — cURL
    curl -X PATCH "https://api.formzed.com/v1/responses/RESPONSE_ID" \
      -H "X-API-Key: $FORMZED_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "data": {
          "field-1712345678903": "Standard"
        }
      }'
    Response — 200 OK
    {
      "data": {
        "id": "0b9c2f4e-7a1d-4c3b-9e8f-5d6a7b8c9d0e",
        "form_id": "6f1c2b9e-3d4a-4e5f-8a7b-1c2d3e4f5a6b",
        "submitted_at": "2026-10-13T18:02:45.123456+00:00",
        "is_draft": false,
        "answers": {
          "field-1712345678901": "Jane Cooper",
          "field-1712345678902": "jane@example.com",
          "field-1712345678903": "Standard"
        },
        "answers_by_label": {
          "Name": "Jane Cooper",
          "Email": "jane@example.com",
          "Ticket": "Standard"
        },
        "computed": {},
        "source": "form",
        "payment_status": null
      }
    }
    Errors:BAD_REQUESTNOT_FOUNDFORBIDDENVALIDATION_FAILEDplus the common key and limit errors.

    Delete a response

    Deletes the response and its uploaded files. Sends response.deleted webhooks. This can't be undone.
    DELETE/v1/responses/:idresponses:delete
    Request — cURL
    curl -X DELETE "https://api.formzed.com/v1/responses/RESPONSE_ID" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": {
        "id": "0b9c2f4e-7a1d-4c3b-9e8f-5d6a7b8c9d0e",
        "deleted": true
      }
    }
    Errors:NOT_FOUNDFORBIDDENplus the common key and limit errors.

    Erase a person's data by email

    For privacy requests (GDPR, CCPA). On every form the key can change, deletes each response (submitted or draft) and prefilled link with an answer equal to this email (ignoring case and surrounding spaces), with their uploaded files, and removes the email from payments. This can't be undone.
    POST/v1/erasureresponses:delete
    Request body (JSON)
    • emailrequired
      stringThe email address to erase.
    Request — cURL
    curl -X POST "https://api.formzed.com/v1/erasure" \
      -H "X-API-Key: $FORMZED_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "email": "jane@example.com"
      }'
    Response — 200 OK
    {
      "data": {
        "deleted": 2,
        "response_ids": [
          "0b9c2f4e-7a1d-4c3b-9e8f-5d6a7b8c9d0e",
          "c4d5e6f7-8a9b-4c0d-9e1f-2a3b4c5d6e7f"
        ],
        "payments_redacted": 1,
        "prefill_links_deleted": 0
      }
    }
    Errors:BAD_REQUESTplus the common key and limit errors.

    API reference

    Payments

    Payments taken by your forms through Stripe. Read only.

    The payment object

    FieldTypeDescription
    id, form_id, response_iduuidresponse_id may be null.
    statusstringpending, paid or refunded.
    amount, discountnumberIn the currency's main unit (49.5 means 49.50).
    currencystringThree-letter code, like usd.
    modestringlive or test.
    itemsobject[]{ product_id, name, unit_amount, quantity, subtotal, file }; file is { name, size } for digital products, else null.
    coupon_code, payer_email, receipt_urlstring | nullThe coupon used, the payer's email and Stripe's receipt link.
    created_at, paid_atISO 8601paid_at is null until paid.

    List payments

    Payments taken by forms the key can use (Stripe Checkout after submit), newest first. Amounts are in the currency's main unit: 49 means $49.00.
    GET/v1/paymentspayments:read
    Query parameters
    • form_id
      uuidOnly this form's payments.
    • status
      stringpaid, pending, refunded, expired, failed or duplicate (a second payment for an already-paid response, being refunded).
    • mode
      stringlive or test (Stripe test mode).
    • since
      ISO 8601Only items with a creation time at or after this time.
    • until
      ISO 8601Only items with a creation time at or before this time.
    • limit
      integerItems per page, 1 to 200. Default 50.
    • cursor
      stringThe next_cursor of the previous page.
    Request — cURL
    curl "https://api.formzed.com/v1/payments?status=paid&mode=live&limit=50" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": [
        {
          "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
          "form_id": "6f1c2b9e-3d4a-4e5f-8a7b-1c2d3e4f5a6b",
          "response_id": "0b9c2f4e-7a1d-4c3b-9e8f-5d6a7b8c9d0e",
          "status": "paid",
          "amount": 49,
          "currency": "usd",
          "mode": "live",
          "items": [
            {
              "product_id": "vip",
              "name": "VIP ticket",
              "unit_amount": 49,
              "quantity": 1,
              "subtotal": 49,
              "file": null
            }
          ],
          "coupon_code": null,
          "discount": 0,
          "payer_email": "jane@example.com",
          "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoV",
          "created_at": "2026-10-13T18:02:51.004812+00:00",
          "paid_at": "2026-10-13T18:03:40.551093+00:00"
        }
      ],
      "next_cursor": null
    }
    Errors:BAD_REQUESTFORM_NOT_FOUNDplus the common key and limit errors.

    Get a payment

    One payment. Stripe ids and stored file paths are never returned.
    GET/v1/payments/:idpayments:read
    Request — cURL
    curl "https://api.formzed.com/v1/payments/PAYMENT_ID" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": {
        "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
        "form_id": "6f1c2b9e-3d4a-4e5f-8a7b-1c2d3e4f5a6b",
        "response_id": "0b9c2f4e-7a1d-4c3b-9e8f-5d6a7b8c9d0e",
        "status": "paid",
        "amount": 49,
        "currency": "usd",
        "mode": "live",
        "items": [
          {
            "product_id": "vip",
            "name": "VIP ticket",
            "unit_amount": 49,
            "quantity": 1,
            "subtotal": 49,
            "file": null
          }
        ],
        "coupon_code": null,
        "discount": 0,
        "payer_email": "jane@example.com",
        "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoV",
        "created_at": "2026-10-13T18:02:51.004812+00:00",
        "paid_at": "2026-10-13T18:03:40.551093+00:00"
      }
    }
    Errors:PAYMENT_NOT_FOUNDplus the common key and limit errors.

    API reference

    AI

    Ask questions about a form's responses and get summaries, powered by Claude.

    • Calls use the key owner's AI credits (1 credit is about 4,000 AI tokens, counted by what they cost: written tokens count 5x read ones). credits_used says how many. With no credits left: 402 CREDITS_EXHAUSTED.
    • The AI reads submitted responses (never drafts), newest first, up to about 120,000 characters. responses_considered is how many it read and responses_total how many are in the period.
    • Uploaded files appear to the AI by file name only. Respondent text is treated as data, never as instructions.
    • With no responses in the period you get a plain answer and credits_used: 0. Calls can take up to a minute: use a generous timeout.

    Ask a question about responses

    Answers a plain-language question from a form's submitted responses. The answer gives counts out of the responses it read and says so when the data doesn't cover the question.
    POST/v1/ai/askai
    Request body (JSON)
    • form_idrequired
      uuidThe form to ask about.
    • questionrequired
      stringUp to 2,000 characters.
    • since
      ISO 8601Only items with a submission time at or after this time.
    • until
      ISO 8601Only items with a submission time at or before this time.
    Request — cURL
    curl -X POST "https://api.formzed.com/v1/ai/ask" \
      -H "X-API-Key: $FORMZED_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "form_id": "FORM_ID",
        "question": "What do people say about the venue?",
        "since": "2026-10-01T00:00:00Z"
      }'
    Response — 200 OK
    {
      "data": {
        "answer": "Most people who mention the venue like it (14 of 52 responses): it was easy to reach and the room was big enough. 3 of 52 found it too warm.",
        "responses_considered": 52,
        "responses_total": 52,
        "credits_used": 1.284
      }
    }
    Errors:BAD_REQUESTFORM_NOT_FOUNDCREDITS_EXHAUSTEDAI_ERRORplus the common key and limit errors.

    Summarize responses

    A short summary and the most common themes, each with a count and an example quote copied from a response (empty when the quote couldn't be confirmed word for word).
    POST/v1/ai/summaryai
    Request body (JSON)
    • form_idrequired
      uuidThe form to summarize.
    • since
      ISO 8601Only items with a submission time at or after this time.
    • until
      ISO 8601Only items with a submission time at or before this time.
    Request — cURL
    curl -X POST "https://api.formzed.com/v1/ai/summary" \
      -H "X-API-Key: $FORMZED_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "form_id": "FORM_ID",
        "since": "2026-10-01T00:00:00Z"
      }'
    Response — 200 OK
    {
      "data": {
        "summary": "52 people signed up for the October meetup. Most liked the venue (14 of 52), and VIP tickets drew the most questions (9 of 52).",
        "themes": [
          {
            "name": "Venue praise",
            "count": 14,
            "example": "The venue was easy to reach"
          },
          {
            "name": "VIP ticket value",
            "count": 9,
            "example": "VIP felt expensive for what it included"
          }
        ],
        "responses_considered": 52,
        "responses_total": 52,
        "credits_used": 1.912
      }
    }
    Errors:BAD_REQUESTFORM_NOT_FOUNDCREDITS_EXHAUSTEDAI_ERRORplus the common key and limit errors.

    API reference

    AI Research

    Studies, interviews, transcripts and summaries from AI Research. This is a separate product from forms: it never touches form data.

    • Study status: draft, live, paused or finished. recruitment is own (your link, in public_url) or paid (Paid Research: invite only, no public link).
    • Participants' email, phone, CV and LinkedIn are never returned. Paid Research participants are never named (their names are removed from transcripts too); name answers from your own links are shortened to first name and last initial.
    • Keys limited to one form can't use these endpoints (403 KEY_RESTRICTED).

    List studies

    AI Research studies the key owner can open (their own, and those in the workspaces they're in), newest first, with interview counts.
    GET/v1/studiesinterviews:read
    Query parameters
    • limit
      integerItems per page, 1 to 200. Default 50.
    • cursor
      stringThe next_cursor of the previous page.
    Request — cURL
    curl "https://api.formzed.com/v1/studies" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": [
        {
          "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
          "title": "Onboarding interviews",
          "status": "live",
          "modes": ["chat", "voice"],
          "recruitment": "own",
          "public_url": "https://www.formzed.com/i/k7m2p9qa",
          "created_at": "2026-10-05T11:20:03.918274+00:00",
          "interviews": 18,
          "completed": 15
        }
      ],
      "next_cursor": null
    }
    Errors:BAD_REQUESTKEY_RESTRICTEDplus the common key and limit errors.

    Get a study

    The study with its interview guide and screener questions.
    GET/v1/studies/:idinterviews:read
    Request — cURL
    curl "https://api.formzed.com/v1/studies/STUDY_ID" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": {
        "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
        "title": "Onboarding interviews",
        "status": "live",
        "modes": ["chat", "voice"],
        "recruitment": "own",
        "public_url": "https://www.formzed.com/i/k7m2p9qa",
        "created_at": "2026-10-05T11:20:03.918274+00:00",
        "interviews": 18,
        "completed": 15,
        "idea": "Learn what slows new customers down in their first week.",
        "language": "en",
        "other_languages": ["es"],
        "max_minutes": 15,
        "updated_at": "2026-10-06T08:41:19.552108+00:00",
        "published_at": "2026-10-06T08:41:19.552108+00:00",
        "guide": {
          "opening": "Thanks for taking the time to talk with us.",
          "closing": "That's everything I wanted to ask. Thank you!",
          "questions": [
            {
              "id": "q1",
              "text": "Walk me through your first day with the product.",
              "goal": "Find early friction",
              "probes": ["What did you expect to happen?"]
            }
          ]
        },
        "screener": {
          "title": "A few quick questions",
          "description": "",
          "questions": [
            {
              "id": "s1",
              "type": "radio",
              "label": "How long have you used the product?",
              "required": true,
              "options": ["Under a month", "1-6 months", "Longer"]
            }
          ]
        }
      }
    }
    Errors:STUDY_NOT_FOUNDKEY_RESTRICTEDplus the common key and limit errors.

    Create a study

    Creates a draft study owned by the key's owner (15-minute interviews, ages 18 to 65). Review and publish it in the dashboard. Without questions, the AI drafts the guide and screener from the idea, which uses research AI credits (free accounts use their 100 monthly research AI credits).
    POST/v1/studiesinterviews:write
    Request body (JSON)
    • titlerequired
      stringUp to 200 characters.
    • idearequired
      stringWhat you want to learn, 10 to 4,000 characters.
    • questions
      string[]1 to 12 interview questions (up to 500 characters each). Leave out to let the AI write the guide.
    • modes
      string[]Any of chat, voice, voice_to_voice, video. Default ["chat"].
    • language
      stringThe interview language: one of en, es, pt, fr, de, it, nl, ja, ko, zh, hi, bn, ar, tr, id, ru, pl, uk, vi, th. A regional code such as pt-BR is stored as pt. Default en.
    • other_languages
      string[]More languages respondents can pick on the first screen, from the same list. The opening, questions and screener are translated for them. Default [].
    Request — cURL
    curl -X POST "https://api.formzed.com/v1/studies" \
      -H "X-API-Key: $FORMZED_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "title": "Onboarding interviews",
        "idea": "Learn what slows new customers down in their first week.",
        "questions": [
          "Walk me through your first day with the product.",
          "What almost made you give up?"
        ],
        "modes": ["chat", "voice"]
      }'
    Response — 201 Created
    {
      "data": {
        "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
        "title": "Onboarding interviews",
        "status": "draft",
        "modes": ["chat", "voice"],
        "recruitment": "own",
        "public_url": "https://www.formzed.com/i/k7m2p9qa",
        "created_at": "2026-10-14T10:40:12.338019+00:00",
        "interviews": 0,
        "completed": 0,
        "idea": "Learn what slows new customers down in their first week.",
        "language": "en",
        "max_minutes": 15,
        "updated_at": "2026-10-14T10:40:12.338019+00:00",
        "published_at": null,
        "guide": {
          "opening": "Thanks for taking the time to talk with us. There are no right or wrong answers, so just share your honest experience.",
          "closing": "That's everything I wanted to ask. Thank you so much for your time.",
          "questions": [
            {
              "id": "q1",
              "text": "Walk me through your first day with the product.",
              "goal": "",
              "probes": []
            },
            {
              "id": "q2",
              "text": "What almost made you give up?",
              "goal": "",
              "probes": []
            }
          ]
        },
        "screener": {
          "title": "",
          "description": "",
          "questions": []
        }
      }
    }

    List a study's interviews

    Interviews, newest first by start time. An interview that has been idle for 10 minutes counts as ended: completed with at least 3 answers, otherwise abandoned.
    GET/v1/studies/:id/interviewsinterviews:read
    Query parameters
    • status
      stringall (default), completed, active, abandoned or ended_by_owner.
    • since
      ISO 8601Only items with a start time at or after this time.
    • until
      ISO 8601Only items with a start time at or before this time.
    • limit
      integerItems per page, 1 to 200. Default 50.
    • cursor
      stringThe next_cursor of the previous page.
    • Privacy: participants' contact details are never returned. Emails and phone numbers typed in answers are replaced with [email removed] and [phone removed], name answers are shortened to first name and last initial, and contact questions are left out of screener_answers.
    • In studies with Collect name and email on, a participant can choose to share both on the consent step. Then participant_name and participant_email are what they typed and participant_consented_at is when they agreed; all three are null for everyone else, and for Paid Research. The transcript and summary stay cleaned either way.
    • summary is { headline, key_points, sentiment, notable_quotes }, or null until the AI has summarized the interview. Quotes keep the respondent's words; quotes not in English also have a translation.
    • language is the language the interview ran in: the one the respondent picked, or the one they switched to in a chat. It's null on interviews from before October 16, 2026, which ran in the study's language.
    Request — cURL
    curl "https://api.formzed.com/v1/studies/STUDY_ID/interviews?status=completed&limit=20" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": [
        {
          "id": "7e8f9a0b-1c2d-4e3f-9a4b-5c6d7e8f9a0b",
          "study_id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
          "respondent_no": 12,
          "participant_name": null,
          "participant_email": null,
          "participant_consented_at": null,
          "status": "completed",
          "mode": "chat",
          "language": "en",
          "started_at": "2026-10-12T15:04:11.204511+00:00",
          "ended_at": "2026-10-12T15:16:52.880312+00:00",
          "answer_count": 7,
          "summary": {
            "headline": "Setup was quick, but inviting teammates was confusing.",
            "key_points": [
              "Finished setup in under ten minutes",
              "Could not find where to invite teammates",
              "Would like a checklist on the first screen"
            ],
            "sentiment": "mixed",
            "notable_quotes": [
              {
                "quote": "I looked for the invite button for a good five minutes",
                "context": "Inviting teammates"
              }
            ]
          },
          "screener_answers": [
            {
              "label": "How long have you used the product?",
              "value": "1-6 months"
            },
            {
              "label": "First name",
              "value": "Sam K."
            }
          ]
        }
      ],
      "next_cursor": null
    }
    Errors:BAD_REQUESTSTUDY_NOT_FOUNDKEY_RESTRICTEDplus the common key and limit errors.

    Get a study's report

    The study's latest report: the summary, each theme with how many respondents expressed it and their quotes, notable quotes, sentiment, and MaxDiff and concept-test results. Theme counts were checked against each person's own words; scores, ratings and preferences were counted in code from what participants picked.
    GET/v1/studies/:id/reportinterviews:read
    • interviews_since_report: interviews with answers newer than the report (or kept or excluded after the quality check since). Update the report in Formzed to include them.
    • interviews_removed_since_report: interviews the report counted that were removed since (for example after Formzed's quality review). While it's above 0, interview_count and the theme counts leave them out, summary is a short note without figures, sentiment is all 0 and exercises is empty until the report is updated in Formzed.
    • Respondents appear by number only. In exercises, a MaxDiff item's score is (times picked most − times picked least) ÷ times shown, from −100 to 100; a concept test's preference says whether the preference is statistically significant.
    Request — cURL
    curl "https://api.formzed.com/v1/studies/STUDY_ID/report" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": {
        "study_id": "b3f1c2d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
        "report_updated_at": "2026-10-24T08:11:52.238+00:00",
        "interviews_since_report": 0,
        "interviews_removed_since_report": 0,
        "interview_count": 40,
        "summary": "Price is the main reason people cancel; most who stay value skipping a week.",
        "themes": [
          {
            "title": "Price feels too high for what's in the box",
            "description": "People compared the weekly price with buying the same ingredients.",
            "respondent_count": 24,
            "quotes": [
              {
                "respondent_no": 7,
                "quote": "For two of us it's more than our normal shop."
              }
            ]
          }
        ],
        "notable_quotes": [],
        "sentiment": {
          "positive": 9,
          "neutral": 6,
          "negative": 15,
          "mixed": 10
        },
        "exercises": [
          {
            "kind": "maxdiff",
            "question": 4,
            "question_text": "Which of these matter most to you?",
            "best_label": "Most important",
            "worst_label": "Least important",
            "respondents": 38,
            "items": [
              {
                "item": "Easy to skip a week",
                "shown": 114,
                "best": 52,
                "worst": 6,
                "score": 40
              }
            ]
          }
        ]
      }
    }
    Errors:STUDY_NOT_FOUNDREPORT_NOT_FOUNDKEY_RESTRICTEDplus the common key and limit errors.

    Get an interview

    One interview with its transcript (up to 1,000 turns). role is ai or respondent; question_index points into the guide.
    GET/v1/interviews/:idinterviews:read
    Request — cURL
    curl "https://api.formzed.com/v1/interviews/INTERVIEW_ID" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": {
        "id": "7e8f9a0b-1c2d-4e3f-9a4b-5c6d7e8f9a0b",
        "study_id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
        "respondent_no": 12,
        "participant_name": null,
        "participant_email": null,
        "participant_consented_at": null,
        "status": "completed",
        "mode": "chat",
        "language": "en",
        "started_at": "2026-10-12T15:04:11.204511+00:00",
        "ended_at": "2026-10-12T15:16:52.880312+00:00",
        "answer_count": 7,
        "summary": {
          "headline": "Setup was quick, but inviting teammates was confusing.",
          "key_points": [
            "Finished setup in under ten minutes",
            "Could not find where to invite teammates",
            "Would like a checklist on the first screen"
          ],
          "sentiment": "mixed",
          "notable_quotes": [
            {
              "quote": "I looked for the invite button for a good five minutes",
              "context": "Inviting teammates"
            }
          ]
        },
        "screener_answers": [
          {
            "label": "How long have you used the product?",
            "value": "1-6 months"
          },
          {
            "label": "First name",
            "value": "Sam K."
          }
        ],
        "transcript": [
          {
            "role": "ai",
            "text": "Walk me through your first day with the product.",
            "created_at": "2026-10-12T15:04:30.110298+00:00",
            "question_index": 0,
            "is_followup": false
          },
          {
            "role": "respondent",
            "text": "Setup was quick, but I looked for the invite button for a good five minutes.",
            "created_at": "2026-10-12T15:05:41.920113+00:00",
            "question_index": 0,
            "is_followup": false
          }
        ]
      }
    }
    Errors:INTERVIEW_NOT_FOUNDKEY_RESTRICTEDplus the common key and limit errors.

    API reference

    Evaluations

    Human evaluation of AI outputs: create a study, add items and files, publish, and download the ratings as training data. Part of AI Research.

    • The flow: POST /v1/evaluations, upload each file (media, then complete), add items, publish, share the link with your raters, then read results.
    • Each rater session counts as one interview of the AI Research plan, when the rater finishes all its items. Deleted items and studies still count toward their limits.
    • Results hold only counted work: finished sessions that passed the gold and speed checks (or that you kept), from raters you didn't exclude. Every figure is counted in code.
    • Evaluation studies aren't listed by /v1/studies, and their rater sessions aren't interviews. Keys limited to one form can't use these endpoints (403 KEY_RESTRICTED).

    List evaluations

    Evaluation studies the key owner can open (their own, and those in the workspaces they're in), newest first, with how many items are complete.
    GET/v1/evaluationsinterviews:read
    Query parameters
    • limit
      integerItems per page, 1 to 200. Default 50.
    • cursor
      stringThe next_cursor of the previous page.
    Request — cURL
    curl "https://api.formzed.com/v1/evaluations" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": [
        {
          "id": "8a1b2c3d-4e5f-4a6b-9c7d-8e9f0a1b2c3d",
          "title": "Support bot: v2 vs v1",
          "task": "pairwise",
          "status": "live",
          "link": "https://www.formzed.com/e/k7m2p9qa",
          "raters_per_item": 3,
          "items_per_session": 30,
          "items": 1200,
          "items_complete": 840,
          "sessions_completed": 96,
          "created_at": "2026-11-24T09:12:44.512345+00:00",
          "updated_at": "2026-11-24T09:30:10.118204+00:00"
        }
      ],
      "next_cursor": null
    }
    Errors:BAD_REQUESTKEY_RESTRICTEDplus the common key and limit errors.

    Create an evaluation

    Creates a draft evaluation study owned by the key's owner. Add files and items, then publish it; raters take part at its link. Each rater session counts as one interview of the AI Research plan when the rater finishes it.
    POST/v1/evaluationsinterviews:write
    Request body (JSON)
    • titlerequired
      stringUp to 200 characters.
    • taskrequired
      stringOne of pairwise, rubric, write_edit, task_success, media_label, translation_check, model_chat, agent_review, battle, prompt_write. task_success and agent_review (agent evaluation) are managed only: the request returns 403 MANAGED_ONLY with a link to send our team a brief.
    • instructions
      stringThe rater guide shown before every session (up to 20,000 characters).
    • raters_per_item
      integer3, 4 or 5. Default 3.
    • items_per_session
      integer1 to 50. The default depends on the task (30 for pairwise).
    • gold_per_session
      integer0 to 10 gold check items mixed into each session (fewer than items_per_session).
    • criteria
      object[]Rubric (required, 1 to 8) or chat scores: { id, label, description? }, ids like clarity.
    • labels
      object[]Media labels (1 to 50): { id, label }. With multi_label and moments (booleans).
    • allow_tie, reason_required
      booleanPairwise: whether raters may pick a tie, and must say why. Both default true.
    • write_mode, review_required
      string, booleanwrite or edit a draft; every answer gets a second check before export (default true).
    • categories, max_turns, content_warning
      object[], integer, stringChat with your model: rule-break categories, rater messages per chat (1 to 30), and the warning raters see first. The model endpoint is set in the dashboard.
    • languages
      string[]Language codes raters pick from (items are matched by their language), like fr or pt-BR.
    Request — cURL
    curl -X POST "https://api.formzed.com/v1/evaluations" \
      -H "X-API-Key: $FORMZED_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "title": "Support bot: v2 vs v1",
        "task": "pairwise",
        "raters_per_item": 3,
        "instructions": "Pick the answer a customer would find more helpful."
      }'
    Response — 201 Created
    {
      "data": {
        "id": "8a1b2c3d-4e5f-4a6b-9c7d-8e9f0a1b2c3d",
        "title": "Support bot: v2 vs v1",
        "task": "pairwise",
        "status": "draft",
        "link": "https://www.formzed.com/e/k7m2p9qa",
        "raters_per_item": 3,
        "items_per_session": 30,
        "items": 0,
        "items_complete": 0,
        "sessions_completed": 0,
        "created_at": "2026-11-24T09:12:44.512345+00:00",
        "updated_at": "2026-11-24T09:30:10.118204+00:00"
      }
    }
    Errors:BAD_REQUESTKEY_RESTRICTEDPLAN_LIMITplus the common key and limit errors.

    Get an evaluation

    The evaluation with its task, settings and progress.
    GET/v1/evaluations/:idinterviews:read
    Request — cURL
    curl "https://api.formzed.com/v1/evaluations/EVALUATION_ID" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": {
        "id": "8a1b2c3d-4e5f-4a6b-9c7d-8e9f0a1b2c3d",
        "title": "Support bot: v2 vs v1",
        "task": "pairwise",
        "status": "live",
        "link": "https://www.formzed.com/e/k7m2p9qa",
        "raters_per_item": 3,
        "items_per_session": 30,
        "items": 1200,
        "items_complete": 840,
        "sessions_completed": 96,
        "created_at": "2026-11-24T09:12:44.512345+00:00",
        "updated_at": "2026-11-24T09:30:10.118204+00:00"
      }
    }
    Errors:EVALUATION_NOT_FOUNDKEY_RESTRICTEDplus the common key and limit errors.

    Upload a file

    An upload slot for one image, audio or video file. PUT the file to upload.url with the headers given (within 2 hours), then call complete. Items then use it by its name.
    POST/v1/evaluations/:id/mediainterviews:write
    Request body (JSON)
    • namerequired
      stringThe file name items refer to (unique in the evaluation, up to 200 characters).
    • mimerequired
      stringpng, jpeg, webp, gif (10 MB); mpeg, mp4, wav, webm, ogg audio (100 MB); mp4, webm, quicktime video (200 MB).
    • bytesrequired
      integerThe file's size.
    • duration_ms
      integerAudio and video length (shown to raters; never used for billing).
    Request — cURL
    curl -X POST "https://api.formzed.com/v1/evaluations/EVALUATION_ID/media" \
      -H "X-API-Key: $FORMZED_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "name": "cat_07.png",
        "mime": "image/png",
        "bytes": 482113
      }'
    Response — 201 Created
    {
      "data": {
        "media_id": "4b5c6d7e-8f9a-4b0c-9d1e-2f3a4b5c6d7e",
        "name": "cat_07.png",
        "upload": {
          "method": "PUT",
          "url": "https://…/research-eval-media/…?token=…",
          "headers": {
            "Content-Type": "image/png"
          }
        },
        "expires_at": "2026-11-24T11:12:44.000Z"
      }
    }

    Finish an upload

    Checks the uploaded file (it must be there, and no bigger than declared or than its kind allows) and makes it usable in items. Media counts toward the plan's monthly media allowance and is never given back on delete.
    POST/v1/evaluations/:id/media/:media_id/completeinterviews:write
    Request — cURL
    curl -X POST "https://api.formzed.com/v1/evaluations/EVALUATION_ID/media/4b5c6d7e-8f9a-4b0c-9d1e-2f3a4b5c6d7e/complete" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": {
        "media_id": "4b5c6d7e-8f9a-4b0c-9d1e-2f3a4b5c6d7e",
        "status": "ready"
      }
    }
    Errors:EVALUATION_NOT_FOUNDMEDIA_NOT_FOUNDMEDIA_NOT_UPLOADEDFORBIDDENplus the common key and limit errors.

    Add items

    Up to 1,000 items (2 MB) a request, all or nothing: as JSONL with Content-Type: application/x-ndjson (one item a line, the same format as the dashboard's import), or JSON {"items": [...]}. A study holds 20,000 items, deleted ones included.
    POST/v1/evaluations/:id/itemsinterviews:write
    Request body (JSON)
    • id
      stringYour id for the item (unique in the evaluation). Exports use it as item_id.
    • prompt
      string | part[]Text, or parts: "text", {"type": "text", "text"} or {"type": "image" | "audio" | "video", "file": "name.ext"} (an uploaded file).
    • output_a, model_a, output_b, model_b
      string | part[], stringPairwise: the two outputs and their models (or outputs: [{model, content}]).
    • output, model, draft
      string | part[], string, stringRubric and translation checks: the one output. Write or fix: the draft.
    • task
      objectAgent tasks: { url, title, instructions?, steps? }.
    • language
      stringThe item's language (required for translation checks).
    • gold
      string | string[] | objectMakes it a gold check item: a/b/tie, labels, or scores.
    • meta
      objectUp to 20 columns of text or numbers, for breakdowns.
    Request — cURL
    curl -X POST "https://api.formzed.com/v1/evaluations/EVALUATION_ID/items" \
      -H "X-API-Key: $FORMZED_API_KEY" \
      -H "Content-Type: application/x-ndjson" \
      -H "Idempotency-Key: batch-0001" \
      --data-binary @items.jsonl
    Response — 201 Created
    {
      "data": {
        "added": 500,
        "first_seq": 701,
        "last_seq": 1200,
        "total_items": 1200
      }
    }

    Publish an evaluation

    Opens the evaluation's link to raters. Publishing again does nothing.
    POST/v1/evaluations/:id/publishinterviews:write
    Request — cURL
    curl -X POST "https://api.formzed.com/v1/evaluations/EVALUATION_ID/publish" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": {
        "id": "8a1b2c3d-4e5f-4a6b-9c7d-8e9f0a1b2c3d",
        "title": "Support bot: v2 vs v1",
        "task": "pairwise",
        "status": "live",
        "link": "https://www.formzed.com/e/k7m2p9qa",
        "raters_per_item": 3,
        "items_per_session": 30,
        "items": 1200,
        "items_complete": 840,
        "sessions_completed": 96,
        "created_at": "2026-11-24T09:12:44.512345+00:00",
        "updated_at": "2026-11-24T09:30:10.118204+00:00"
      }
    }
    Errors:EVALUATION_NOT_FOUNDFORBIDDENNOT_READYplus the common key and limit errors.

    Get the figures

    The figures of the dashboard's Results tab, computed in code from counted sessions only: totals, coverage_by_language, agreement (percent and Krippendorff's alpha) and the block of the study's task (for example pairwise: each model's win rate with a 95% interval and head-to-head); the other tasks' blocks are null.
    GET/v1/evaluations/:id/summaryinterviews:read
    Request — cURL
    curl "https://api.formzed.com/v1/evaluations/EVALUATION_ID/summary" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": {
        "id": "8a1b2c3d-4e5f-4a6b-9c7d-8e9f0a1b2c3d",
        "title": "Support bot: v2 vs v1",
        "status": "live",
        "results": {
          "task": "pairwise",
          "totals": {
            "items": 1200,
            "gold_items": 40,
            "items_complete": 840,
            "sessions_completed": 96,
            "sessions_counted": 92,
            "sessions_held": 3,
            "sessions_excluded": 1,
            "raters": 61,
            "judgments": 2520
          },
          "agreement": {
            "percent": 0.81,
            "alpha": 0.62,
            "metric": "nominal",
            "by_criterion": [],
            "by_label": []
          },
          "pairwise": {
            "models": [
              {
                "model": "v2",
                "comparisons": 2520,
                "wins": 1462,
                "losses": 806,
                "ties": 252,
                "win_rate": 0.63,
                "ci95": [0.62, 0.66]
              },
              {
                "model": "v1",
                "comparisons": 2520,
                "wins": 806,
                "losses": 1462,
                "ties": 252,
                "win_rate": 0.37,
                "ci95": [0.34, 0.38]
              }
            ],
            "head_to_head": [
              {
                "a": "v2",
                "b": "v1",
                "a_wins": 1462,
                "b_wins": 806,
                "ties": 252
              }
            ],
            "first_position_share": 0.51
          },
          "rubric": null
        }
      }
    }
    Errors:EVALUATION_NOT_FOUNDKEY_RESTRICTEDplus the common key and limit errors.

    Get results

    A dataset as a file, 5,000 rows a page (or limit): the body is the text itself (application/x-ndjson or text/csv), with X-Next-Cursor when there's more. Only counted sessions' ratings (finished, passed the quality checks or kept by you, raters not excluded).
    GET/v1/evaluations/:id/resultsinterviews:read
    Query parameters
    • format
      stringjsonl or csv. Default: JSONL when the dataset comes as JSONL (labels come as CSV).
    • dataset
      stringpreference (pairwise, JSONL), ideal (write or fix, JSONL), labels (media, CSV) or full (every rating, CSV or JSONL). Default: the task's first.
    • min_agreement
      number0 to 1: only items whose raters agree at least this much.
    • include_held
      booleanAlso sessions held for review. Default false.
    • per
      stringPreference: rating (default, ties left out) or item (the majority pick).
    • limit
      integer1 to 5,000 rows a page. Default 5000.
    • cursor
      stringThe previous page's X-Next-Cursor.
    • Raters appear as numbers only ("rater": 7): no names, contacts or devices. item_id is your id, or item-<seq>.
    • New ratings between two pages answer 409 RESULTS_CHANGED: start again without a cursor, so the file is one consistent set.
    • CSV cells that start like a formula get a leading apostrophe, so spreadsheets keep them as text.
    Request — cURL
    curl "https://api.formzed.com/v1/evaluations/EVALUATION_ID/results?format=jsonl&dataset=preference&min_agreement=0.67" \
      -H "X-API-Key: $FORMZED_API_KEY" \
      -D headers.txt -o preference.jsonl
    Response — 200 OK (application/x-ndjson)
    {"prompt":"Summarise this email","chosen":"…","rejected":"…","reason":"Keeps the refund date.","item_id":"p1","chosen_model":"v2","rejected_model":"v1","agreement":1,"rater":3}
    {"prompt":"Summarise this email","chosen":"…","rejected":"…","reason":"Shorter and correct.","item_id":"p1","chosen_model":"v2","rejected_model":"v1","agreement":1,"rater":8}
    Errors:BAD_REQUESTEVALUATION_NOT_FOUNDKEY_RESTRICTEDRESULTS_CHANGEDplus the common key and limit errors.

    API reference

    Webhooks

    Manage the endpoints Formzed sends events to. You can do the same in Dashboard → API → Webhooks. For the events, payloads and signatures, see Webhook events.

    The webhook object

    FieldTypeDescription
    iduuidThe webhook id.
    urlstringWhere events are POSTed.
    eventsstring[]The events it receives.
    form_iduuid | nullOnly this form's events, or null for every form.
    descriptionstring | nullYour note.
    is_activebooleanfalse when you or Formzed turned it off.
    disabled_reasonstring | nullWhy Formzed turned it off: 50 failures in a row, or the plan no longer includes the API.
    consecutive_failuresintegerFailed attempts in a row.
    last_delivery_at, last_statusISO 8601, integerThe last attempt and its HTTP status (null when there was no answer).
    created_at, updated_atISO 8601
    secretstringOnly when created: whsec_..., the signing secret.

    List webhooks

    The key owner's webhook endpoints, newest first. A key limited to one form sees only that form's webhooks. The signing secret is only returned when a webhook is created (it is also shown in Dashboard → API → Webhooks).
    GET/v1/webhookswebhooks
    Query parameters
    • limit
      integerItems per page, 1 to 200. Default 50.
    • cursor
      stringThe next_cursor of the previous page.
    Request — cURL
    curl "https://api.formzed.com/v1/webhooks" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": [
        {
          "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
          "url": "https://hooks.example.com/formzed",
          "events": ["response.created", "payment.succeeded"],
          "form_id": "6f1c2b9e-3d4a-4e5f-8a7b-1c2d3e4f5a6b",
          "description": "CRM sync",
          "is_active": true,
          "disabled_reason": null,
          "consecutive_failures": 0,
          "last_delivery_at": "2026-10-13T18:03:12.441902+00:00",
          "last_status": 200,
          "created_at": "2026-10-03T08:00:00.120934+00:00",
          "updated_at": "2026-10-03T08:00:00.120934+00:00"
        }
      ],
      "next_cursor": null
    }
    Errors:BAD_REQUESTplus the common key and limit errors.

    Create a webhook

    Adds an endpoint that Formzed POSTs events to. The reply includes secret (whsec_...): store it to verify signatures. Up to 20 webhooks per account.
    POST/v1/webhookswebhooks
    Request body (JSON)
    • urlrequired
      stringA public https URL, up to 2,000 characters. No private or local addresses, no user name or password.
    • eventsrequired
      string[]One or more of response.created, response.updated, response.deleted, payment.succeeded, payment.refunded, interview.completed.
    • form_id
      uuid | nullOnly this form's events. Leave out or null for every form the key owner can see. interview.completed needs no form_id. A one-form key always uses its form.
    • description
      stringYour own note, up to 200 characters.
    Request — cURL
    curl -X POST "https://api.formzed.com/v1/webhooks" \
      -H "X-API-Key: $FORMZED_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "url": "https://hooks.example.com/formzed",
        "events": ["response.created", "payment.succeeded"],
        "form_id": "FORM_ID",
        "description": "CRM sync"
      }'
    Response — 201 Created
    {
      "data": {
        "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
        "url": "https://hooks.example.com/formzed",
        "events": ["response.created", "payment.succeeded"],
        "form_id": "6f1c2b9e-3d4a-4e5f-8a7b-1c2d3e4f5a6b",
        "description": "CRM sync",
        "is_active": true,
        "disabled_reason": null,
        "consecutive_failures": 0,
        "last_delivery_at": null,
        "last_status": null,
        "created_at": "2026-10-03T08:00:00.120934+00:00",
        "updated_at": "2026-10-03T08:00:00.120934+00:00",
        "secret": "whsec_0123456789abcdef0123456789abcdef0123456789abcdef"
      }
    }
    Errors:BAD_REQUESTINVALID_URLFORM_NOT_FOUNDWEBHOOK_LIMITplus the common key and limit errors.

    Get a webhook

    One webhook. disabled_reason says why Formzed turned it off, if it did.
    GET/v1/webhooks/:idwebhooks
    Request — cURL
    curl "https://api.formzed.com/v1/webhooks/WEBHOOK_ID" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": {
        "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
        "url": "https://hooks.example.com/formzed",
        "events": ["response.created", "payment.succeeded"],
        "form_id": "6f1c2b9e-3d4a-4e5f-8a7b-1c2d3e4f5a6b",
        "description": "CRM sync",
        "is_active": true,
        "disabled_reason": null,
        "consecutive_failures": 0,
        "last_delivery_at": "2026-10-13T18:03:12.441902+00:00",
        "last_status": 200,
        "created_at": "2026-10-03T08:00:00.120934+00:00",
        "updated_at": "2026-10-03T08:00:00.120934+00:00"
      }
    }
    Errors:WEBHOOK_NOT_FOUNDplus the common key and limit errors.

    Update a webhook

    Send only what changes. Changing the URL resets the failure count; turning a webhook back on also clears its disabled_reason.
    PATCH/v1/webhooks/:idwebhooks
    Request body (JSON)
    • url
      stringA new public https URL.
    • events
      string[]Replaces the event list.
    • form_id
      uuid | nullA form, or null for every form.
    • description
      string | nullUp to 200 characters.
    • is_active
      booleanfalse pauses deliveries; true turns the webhook back on.
    Request — cURL
    curl -X PATCH "https://api.formzed.com/v1/webhooks/WEBHOOK_ID" \
      -H "X-API-Key: $FORMZED_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "events": ["response.created", "response.updated"],
        "is_active": true
      }'
    Response — 200 OK
    {
      "data": {
        "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
        "url": "https://hooks.example.com/formzed",
        "events": ["response.created", "response.updated"],
        "form_id": "6f1c2b9e-3d4a-4e5f-8a7b-1c2d3e4f5a6b",
        "description": "CRM sync",
        "is_active": true,
        "disabled_reason": null,
        "consecutive_failures": 0,
        "last_delivery_at": "2026-10-13T18:03:12.441902+00:00",
        "last_status": 200,
        "created_at": "2026-10-03T08:00:00.120934+00:00",
        "updated_at": "2026-10-14T10:50:00.731208+00:00"
      }
    }
    Errors:BAD_REQUESTINVALID_URLFORM_NOT_FOUNDWEBHOOK_NOT_FOUNDplus the common key and limit errors.

    Delete a webhook

    Removes the webhook and its delivery log.
    DELETE/v1/webhooks/:idwebhooks
    Request — cURL
    curl -X DELETE "https://api.formzed.com/v1/webhooks/WEBHOOK_ID" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": {
        "id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
        "deleted": true
      }
    }
    Errors:WEBHOOK_NOT_FOUNDplus the common key and limit errors.

    Send a test event

    Queues a webhook.test delivery. It is sent within about a minute; check it with the deliveries endpoint. No body.
    POST/v1/webhooks/:id/testwebhooks
    Request — cURL
    curl -X POST "https://api.formzed.com/v1/webhooks/WEBHOOK_ID/test" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 201 Created
    {
      "data": {
        "id": "9c8d7e6f-5a4b-4c3d-8e2f-1a0b9c8d7e6f",
        "webhook_id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
        "event": "webhook.test",
        "event_id": "cc33dd44-ee55-4f66-8a77-112233445566",
        "status": "pending",
        "attempts": 0,
        "next_attempt_at": "2026-10-14T09:30:00.004821+00:00",
        "response_status": null,
        "last_error": null,
        "created_at": "2026-10-14T09:30:00.004821+00:00",
        "delivered_at": null,
        "payload": {
          "id": "cc33dd44-ee55-4f66-8a77-112233445566",
          "type": "webhook.test",
          "created_at": "2026-10-14T09:30:00.000Z",
          "data": {
            "message": "This is a test event from Formzed.",
            "webhook_id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e"
          }
        }
      }
    }
    Errors:WEBHOOK_NOT_FOUNDWEBHOOK_DISABLEDplus the common key and limit errors.

    List deliveries

    The webhook's delivery log, newest first, with the exact payload. Finished deliveries are kept for 30 days.
    GET/v1/webhooks/:id/deliverieswebhooks
    Query parameters
    • status
      stringpending (waiting or retrying), delivered or failed.
    • limit
      integerItems per page, 1 to 200. Default 50.
    • cursor
      stringThe next_cursor of the previous page.
    Request — cURL
    curl "https://api.formzed.com/v1/webhooks/WEBHOOK_ID/deliveries?status=failed" \
      -H "X-API-Key: $FORMZED_API_KEY"
    Response — 200 OK
    {
      "data": [
        {
          "id": "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a",
          "webhook_id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
          "event": "response.created",
          "event_id": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",
          "status": "delivered",
          "attempts": 1,
          "next_attempt_at": null,
          "response_status": 200,
          "last_error": null,
          "created_at": "2026-10-13T18:02:45.130412+00:00",
          "delivered_at": "2026-10-13T18:03:12.441902+00:00",
          "payload": {
            "id": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",
            "type": "response.created",
            "created_at": "2026-10-13T18:02:45.130Z",
            "data": {
              "id": "0b9c2f4e-7a1d-4c3b-9e8f-5d6a7b8c9d0e",
              "form_id": "6f1c2b9e-3d4a-4e5f-8a7b-1c2d3e4f5a6b",
              "form_title": "Event sign-up",
              "submitted_at": "2026-10-13T18:02:45.123456+00:00",
              "answers": {
                "field-1712345678901": "Jane Cooper",
                "field-1712345678902": "jane@example.com",
                "field-1712345678903": "VIP"
              },
              "computed": {},
              "source": "form",
              "payment_status": null
            }
          }
        }
      ],
      "next_cursor": null
    }
    Errors:BAD_REQUESTWEBHOOK_NOT_FOUNDplus the common key and limit errors.

    API reference

    Legacy submit endpoint

    The original endpoint still works for existing integrations. It does the same as POST /v1/forms/:id/responses, with the form id in the body. New integrations should use API v1.

    POST/submit-responseresponses:write
    Request body (JSON)
    • form_idrequired
      uuidID of a published form.
    • datarequired
      objectThe answers, keyed by field id. Same rules as API v1.
    Request — cURL
    curl -X POST "https://api.formzed.com/submit-response" \
      -H "X-API-Key: $FORMZED_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "form_id": "FORM_ID",
        "data": {
          "field-1712345678901": "Jane Cooper",
          "field-1712345678902": "jane@example.com"
        }
      }'
    Response — 200 OK
    {
      "success": true,
      "response_id": "0b9c2f4e-7a1d-4c3b-9e8f-5d6a7b8c9d0e",
      "message": "Response submitted successfully"
    }
    • Success is 200 with success, response_id and message (API v1 answers 201 { "data": { "id", "computed" } }).
    • A key limited to another form gets 403 FORM_NOT_ALLOWED; a form the key can't see gets 404 FORM_NOT_FOUND. Other errors, limits and headers are the same as API v1.
    • It needs the responses:write scope, which every key made before API v1 has.

    Guides

    Webhook events

    Formzed POSTs a signed JSON event to your URL when something happens, so you don't have to poll.

    Set it up

    1. 1

      Add an endpoint

      In Dashboard → API → Webhooks, or with POST /v1/webhooks. Pick the events and, optionally, one form. The URL must be public https.
    2. 2

      Store the signing secret

      It starts with whsec_. Keep it on your server, like an API key.
    3. 3

      Verify each request

      Check the Formzed-Signature header (code below) and reject anything that doesn't match.
    4. 4

      Answer 2xx within 10 seconds

      Do slow work after replying. Anything else, including redirects, counts as a failure and is retried.

    Events

    Every event has the same envelope: { id, type, created_at, data }.

    EventWhendata
    response.createdA response is submitted: hosted form, your own website form, or the API. Also when an unfinished draft is submitted. Not sent for imports with run_automations: false.id, form_id, form_title, submitted_at, answers, computed, source, payment_status
    response.updatedThe answers of a submitted response change, for example with PATCH /v1/responses/:id.Same fields as response.created.
    response.deletedA submitted response is deleted: in the dashboard, with the API, or by an erasure request.Ids only: id, form_id, form_title, deleted_at. Earlier deliveries that carried its answers are removed from the log.
    payment.succeededA payment's status becomes paid.id, form_id, response_id, status, amount, currency, mode, items, coupon_code, discount, payer_email, receipt_url, created_at, paid_at (same as GET /v1/payments)
    payment.refundedA payment's status becomes refunded.Same fields as payment.succeeded.
    interview.completedAn AI interview finishes: it reached the end of the guide, or has at least 3 answers. Only sent to webhooks without a form_id.id, study_id, study_title, status, mode, started_at, ended_at, answer_count, summary, participant_name, participant_email, participant_consented_at. The last three are set only when the participant chose to share their name and email (studies with Collect name and email on), otherwise null. No screener answers, and contact details typed in the interview are removed.
    webhook.testYou click Send test in the dashboard, or call POST /v1/webhooks/:id/test.message, webhook_id
    • A webhook with a form_id gets that form's events. Without one, it gets events for every form its owner can see: their own and their team's shared forms (private teammates' forms only for organization owners and admins).
    • interview.completed goes only to webhooks without a form_id, for studies of the owner and their workspaces. It's sent once per interview, as soon as the AI summary is saved (so summary is included), or within about 10 minutes of the interview ending or going idle if no summary is written.
    • File links in response events are signed and open for 7 days.
    • Imports sent with run_automations: false send no webhooks.
    • Webhook deliveries don't count as API requests.

    Example payloads

    response.created
    {
      "id": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",
      "type": "response.created",
      "created_at": "2026-10-13T18:02:45.130Z",
      "data": {
        "id": "0b9c2f4e-7a1d-4c3b-9e8f-5d6a7b8c9d0e",
        "form_id": "6f1c2b9e-3d4a-4e5f-8a7b-1c2d3e4f5a6b",
        "form_title": "Event sign-up",
        "submitted_at": "2026-10-13T18:02:45.123456+00:00",
        "answers": {
          "field-1712345678901": "Jane Cooper",
          "field-1712345678902": "jane@example.com",
          "field-1712345678903": "VIP"
        },
        "computed": {},
        "source": "form",
        "payment_status": null
      }
    }

    Request headers

    Formzed sends these headers with every delivery.

    Delivery request
    POST /formzed-webhook HTTP/1.1
    Content-Type: application/json
    User-Agent: Formzed-Webhooks/1.0
    Formzed-Event: response.created
    Formzed-Delivery: 2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a
    Formzed-Signature: t=1760378565,v1=5d1f0c3b8e2a7d9f4c6b1a0e3d5f7a9c2b4e6d8f0a1c3e5b7d9f1a3c5e7b9d0f
    HeaderValue
    Formzed-EventThe event type.
    Formzed-DeliveryThe delivery id. The same on every retry.
    Formzed-Signaturet=<unix seconds>,v1=<hex>: HMAC-SHA256 of `${t}.${rawBody}` with the webhook's secret.

    Verify the signature

    Use the raw request body exactly as received, and reject signatures older than a few minutes.

    webhook.mjs — Express
    import crypto from "node:crypto";
    import express from "express";
    
    // Formzed-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">
    function verifyFormzed(rawBody, header, secret, toleranceSec = 300) {
      const parts = Object.fromEntries(
        String(header || "").split(",").map((kv) => {
          const i = kv.indexOf("=");
          return [kv.slice(0, i).trim(), kv.slice(i + 1).trim()];
        }),
      );
      const t = Number(parts.t);
      if (!t || !parts.v1 || Math.abs(Date.now() / 1000 - t) > toleranceSec) return false;
      const expected = crypto.createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
      const a = Buffer.from(expected);
      const b = Buffer.from(parts.v1);
      return a.length === b.length && crypto.timingSafeEqual(a, b);
    }
    
    const app = express();
    
    // Keep the raw body: re-serialized JSON won't match the signature.
    app.post("/formzed-webhook", express.raw({ type: "application/json" }), (req, res) => {
      const raw = req.body.toString("utf8");
      if (!verifyFormzed(raw, req.get("Formzed-Signature"), process.env.FORMZED_WEBHOOK_SECRET)) {
        return res.status(400).send("Bad signature");
      }
      const event = JSON.parse(raw);
      res.sendStatus(200); // answer within 10 seconds, then do the work
      handleEvent(event); // deliveries can repeat: skip event.id values you've already handled
    });

    Retries and failures

    • Events are sent within about a minute. Each webhook gets its events oldest first.
    • A delivery that doesn't get a 2xx is retried after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours: 8 attempts in total, then it is marked failed.
    • A delivery can arrive more than once. Use the event id (or the Formzed-Delivery header) to skip duplicates. The body of a retried response event can differ slightly, because file links are signed again.
    • After 50 failed attempts in a row, Formzed turns the webhook off and sets disabled_reason. Fix the endpoint, then turn it back on (dashboard, or PATCH with is_active: true).
    • If the owner's plan no longer includes the API, webhooks are paused with a reason and their pending deliveries are marked failed.
    • Delivered and failed deliveries are kept for 30 days. When a response is deleted, earlier deliveries that carried its answers are removed too.

    Testing

    • Click Send test next to the webhook in Dashboard → API → Webhooks, or call POST /v1/webhooks/:id/test. You get a webhook.test event.
    • See each attempt, its HTTP status and error, and the exact payload in the dashboard or with GET /v1/webhooks/:id/deliveries. The dashboard can retry a delivery.
    • To test locally, expose your server with a tunnel (for example ngrok or cloudflared): webhook URLs must be public https.

    Guides

    Errors

    Every error returns JSON with a readable error message and a stable code. Branch on the code, not on the message text.

    403 — application/json
    {
      "error": "This key doesn't have the \"forms:write\" permission. Edit the key in Dashboard → API.",
      "code": "INSUFFICIENT_SCOPE",
      "required_scope": "forms:write"
    }

    Extra fields

    • errors: a list of problems, each { field_id, message } (form field checks also add index). The legacy submit endpoint and the website-form endpoint use fieldId instead, as they always have.
    • limit: with KEY_DAILY_LIMIT, RATE_LIMITED and MONTHLY_LIMIT (a number), and PLAN_LIMIT (forms, questions or studies).
    • required_scope: with INSUFFICIENT_SCOPE.
    • imported, ids, failed, stopped_at: with RESPONSE_LIMIT during an import.
    • BAD_REQUEST400

      The request is malformed: body isn't a JSON object, a field is missing or has the wrong type, a date or cursor is invalid. Field problems come in errors.

      Fix the request. The message says what's wrong.

    • INVALID_URL400

      The webhook URL isn't a public https address (private, local, has a user name or password, or doesn't parse).

      Use a public https URL.

    • MISSING_API_KEY401

      No key was sent.

      Send X-API-Key: fz_... or Authorization: Bearer fz_....

    • INVALID_API_KEY401

      The key is wrong, deleted or turned off.

      Check for typos and spaces. Turn the key back on, or create a new one.

    • API_KEY_EXPIRED401

      The key's expiry date has passed.

      Create a new key.

    • API_KEY_ROTATED401

      The key was rotated and its grace period has ended.

      Use the new key.

    • SSO_REQUIRED401

      The key's owner must sign in with their company's single sign-on, and the key (or app connection) was made before that began.

      Sign in to Formzed with single sign-on and create a new key, or connect the app again.

    • CREDITS_EXHAUSTED402

      No AI credits left this month, or too few for this request (a call needs room for its prompt and answer). For POST /v1/studies without questions: research AI credits.

      Wait for the 1st, upgrade, or add a credit pack.

    • TRIAL_LIMIT402

      No longer sent: free accounts now have 100 research AI credits a month, and running out returns CREDITS_EXHAUSTED.

      Send questions, or upgrade to a research plan.

    • IP_NOT_ALLOWED403

      The request came from an IP address that isn't on the key's allowlist.

      Add the IP or range to the key in Dashboard → API, or call from an allowed server.

    • PLAN_FEATURE403

      The key owner's plan has no API access (Free, Team Free).

      Upgrade to a paid plan.

    • INSUFFICIENT_SCOPE403

      The key doesn't have the permission this endpoint needs. required_scope names it.

      Edit the key's permissions in Dashboard → API, or use another key.

    • KEY_FORM_RESTRICTED403

      A key limited to one form can't create or copy forms.

      Use a key with access to all forms.

    • KEY_RESTRICTED403

      A key limited to one form can't use AI Research.

      Use a key with access to all forms.

    • FORBIDDEN403

      The key's owner can see this form but can't change it (team viewer), or isn't its owner (only the owner can publish).

      Use a key that belongs to the form's owner or an editor.

    • FORM_NOT_ALLOWED403

      Legacy /submit-response only: the key is limited to another form.

      Use a key for this form, or an all-forms key.

    • FORM_NOT_PUBLISHED403

      The form isn't published, so it can't take responses or imports.

      Publish it (POST /v1/forms/:id/publish, or in the builder).

    • RESPONSE_LIMIT403

      The form owner's monthly responses are used up (plan plus response packs).

      The owner can upgrade or buy a response pack. Imports tell you which rows were saved.

    • PLAN_LIMIT403

      The plan's number of forms, or questions per form, is reached, or (POST /v1/studies) the free AI Research plan's 3 studies. Deleted forms and studies still count. limit is forms, questions or studies.

      Upgrade the form plan, or choose an AI Research plan for unlimited studies.

    • WEBHOOK_LIMIT403

      The account already has 20 webhooks.

      Delete one you no longer use.

    • ITEM_LIMIT403

      An evaluation holds 20,000 items, deleted ones included; POST /v1/evaluations/:id/items would go over. limit is items.

      Start a new evaluation for more items.

    • MEDIA_LIMIT403

      The file is over this month's media allowance (the plan's recording GB, or 1 GB of evaluation media on plans without recordings), or the evaluation already has 10,000 files.

      Upgrade the plan, upload smaller files, or wait for the next month.

    • NOT_FOUND404

      No endpoint at this path, or the response or prefilled link doesn't exist or isn't reachable with this key.

      Check the path and the id.

    • FORM_NOT_FOUND404

      No form with this id that this key can use. Other accounts' forms, and forms outside a one-form key, look the same.

      Check the id with GET /v1/forms.

    • PAYMENT_NOT_FOUND404

      No payment with this id on a form this key can use.

      Check the id with GET /v1/payments.

    • STUDY_NOT_FOUND404

      No study with this id that the key owner can see.

      Check the id with GET /v1/studies.

    • EVALUATION_NOT_FOUND404

      No evaluation study with this id that the key owner can see (interview studies' ids answer this too).

      Check the id with GET /v1/evaluations.

    • MEDIA_NOT_FOUND404

      No file with this id in this evaluation.

      Use the media_id from POST /v1/evaluations/:id/media.

    • REPORT_NOT_FOUND404

      The study has no report yet.

      Create it on the study's Report tab in Formzed.

    • INTERVIEW_NOT_FOUND404

      No interview with this id in a study the key owner can see.

      List interviews with GET /v1/studies/:id/interviews.

    • WEBHOOK_NOT_FOUND404

      No webhook with this id belongs to the key owner (or to the key's form).

      Check the id with GET /v1/webhooks.

    • METHOD_NOT_ALLOWED405

      The path exists, but not with this HTTP method.

      Check the method in this reference.

    • WEBHOOK_DISABLED409

      The webhook is turned off, so it can't send a test.

      Turn it on first: PATCH with {"is_active": true}.

    • MEDIA_NOT_UPLOADED409

      The file isn't in its upload slot, or is bigger than declared, than its kind allows or than the month's media allowance.

      Ask for a new slot and upload the file again.

    • RESULTS_CHANGED409

      New ratings or decisions came in between two pages of GET /v1/evaluations/:id/results.

      Start again without a cursor, so the file is one consistent set.

    • VALIDATION_FAILED422

      Answers break the form's rules, or the form can't be published yet. errors lists each problem.

      Fix each item in errors and send again.

    • STRIPE_NOT_CONNECTED422

      The form takes payments, but its owner hasn't connected Stripe.

      Connect Stripe in Dashboard → Settings → Payments, then publish.

    • NOT_READY422

      The evaluation can't go live yet. problems lists why (no items, no criteria or labels, a chat model endpoint not connected, too few gold items).

      Fix each problem, then publish again.

    • KEY_DAILY_LIMIT429

      This key's own daily cap is used up.

      Wait for 00:00 UTC (see Retry-After), or raise the key's cap.

    • RATE_LIMITED429

      Too many requests this minute for your plan (per key).

      Wait Retry-After seconds (60), then retry.

    • UPLOAD_RATE_LIMITED429

      Over 400 evaluation upload slots in the last hour for this person (the dashboard's uploads included).

      Wait, then ask for slots again.

    • MONTHLY_LIMIT429

      The plan's API requests for this month, plus any API packs, are used up.

      Add an API pack, upgrade, or wait for the 1st, 00:00 UTC (see Retry-After).

    • SERVER_ERROR500

      Something failed on Formzed's side.

      Retry with backoff. For POST requests, check first whether the item was created.

    • AI_ERROR502

      The AI model failed, declined, or returned nothing usable. No credits are charged for a failed call that returned nothing.

      Retry after a short wait, or rephrase the question.

    • LIMITS_UNAVAILABLE503

      Formzed couldn't check the plan's limits just now, so nothing was done. Submitting a response is never refused for this.

      Retry after a few seconds (see Retry-After).

    Retrying

    Wait for the Retry-After header, then try again. Give up after a few tries.

    retry.mjs — Node 18+
    // RATE_LIMITED clears within a minute: wait Retry-After, then try again.
    // KEY_DAILY_LIMIT and MONTHLY_LIMIT last until the next day or month: don't loop on them.
    // A 5xx is only retried for GET and DELETE, which can't create anything twice.
    async function withRetry(method, url, init = {}, maxTries = 3) {
      for (let attempt = 1; ; attempt++) {
        const res = await fetch(url, { ...init, method });
        if (res.ok) return res.json();
        const body = await res.json().catch(() => ({}));
        const retryable =
          body.code === "RATE_LIMITED" || (res.status >= 500 && (method === "GET" || method === "DELETE"));
        if (!retryable || attempt >= maxTries) {
          throw new Error(`Formzed ${res.status} ${body.code}: ${body.error}`);
        }
        const seconds = Number(res.headers.get("Retry-After")) || 2 ** attempt;
        await new Promise((resolve) => setTimeout(resolve, seconds * 1000));
      }
    }

    Guides

    Limits and pricing

    The API is included in paid plans. Need more requests than your plan has? Add an API pack.

    PlanAPIRequests / monthPer minute, per keyPrice
    FreeNot included––Free
    StarterIncluded5,00060$35/mo
    ProIncluded25,000120$39/mo
    GrowthIncluded100,000300$110/mo
    Team ProIncluded10,000 per seat120$25/mo per seat
    Team GrowthIncluded40,000 per seat300$75/mo per seat
    Team ScaleIncluded100,000 per seat600$125/mo per seat

    API packs

    One-time purchases. They never expire and are used only after the month's allowance runs out.

    PackExtra API requestsPrice
    10,00010,000$10
    50,00050,000$40
    250,000250,000$150

    The workspace owner buys packs in Dashboard → API (Buy more requests) or on the Billing page.

    Limits at a glance

    LimitApplies toResetsWhen reached
    Per minuteEach key. The number depends on your plan.Every minute429 RATE_LIMITED
    Monthly API requestsAll keys on the account plus API packs. Team plans share one pool.Each billing month (the plan's renewal date; the 1st, 00:00 UTC, on Free)429 MONTHLY_LIMIT
    Daily capOne key, 100 to 10,000. You set it on the key.Every day, 00:00 UTC429 KEY_DAILY_LIMIT
    Monthly responsesThe form owner's plan, from every source, plus response packs.Each billing month403 RESPONSE_LIMIT
    Forms, questions per formThe plan's limits, for created and copied forms. Deleted forms still count.–403 PLAN_LIMIT
    Studies3 in total without an AI Research plan, deleted ones included. Plans: unlimited.–403 PLAN_LIMIT
    AI creditsThe key owner's monthly AI credits plus credit packs.Each billing month402 CREDITS_EXHAUSTED
    Webhooks20 per account.–403 WEBHOOK_LIMIT
    SizesBody 2 MB; 500 rows per import; 200 items per page; 300 fields per form.–400 BAD_REQUEST

    How requests are counted

    • Every request made with a valid key counts toward the monthly API requests and the key's daily cap, including requests that fail (for example VALIDATION_FAILED or FORM_NOT_FOUND).
    • These don't count: requests without a valid key, API_KEY_EXPIRED, API_KEY_ROTATED, SSO_REQUIRED, IP_NOT_ALLOWED, PLAN_FEATURE, INSUFFICIENT_SCOPE, requests stopped by a limit (KEY_DAILY_LIMIT, RATE_LIMITED, MONTHLY_LIMIT), and unknown paths or methods.
    • An import counts as one request, but every saved row counts toward the monthly responses.
    • Monthly responses count by when Formzed received a response, so imported history counts in the month you import it.
    • Formzed emails the account owner at 80% and 100% of the month's API requests.
    • Webhook deliveries and your own website form (no key) don't use API requests.
    • Usage, errors and response times per key are in Dashboard → API.

    Guides

    MCP server

    Connect claude.ai, ChatGPT, Claude Code, Cursor or another MCP client to Formzed, so it can read your AI Research studies, reports, interviews and forms, answer questions about them, create studies and forms, and run evaluation studies from start to finish.

    • Server URL: https://api.formzed.com/mcp (Streamable HTTP).
    • claude.ai and ChatGPT: in claude.ai, Settings → Connectors → Add custom connector; in ChatGPT, chatgpt.com/plugins → + → Add custom MCP server with OAuth. Paste that URL, sign in with Formzed, choose what the app may do and click Allow; nothing to copy. Manage or disconnect apps in Dashboard → API → Connected apps.
    • Claude Code, Cursor and others: also sign in with Formzed, or send a Formzed API key in Authorization: Bearer fz_... (it gets the key's permissions, IP allowlist and limits).
    • It can never delete anything. Write tools create drafts, edit form drafts, add evaluation items and files, and publish forms and evaluation studies, only with the permission you allowed. Each tool call is one API request, counted and logged like any other.
    • Evaluation studies (people rating AI outputs): create_evaluation → add_evaluation_items (files first, if items show any) → publish_evaluation → share the rater link with your raters, or order paid raters for the study in Formzed → get_evaluation_results → export_evaluation_data (preference pairs as JSONL of prompt, chosen, rejected and reason, ready for DPO or reward models).
    • Counts come from Formzed's checked reports (get_study_report), so the AI quotes them instead of counting transcripts itself.
    • Make a key in Dashboard → API with the read permissions you want to share: interviews:read for AI Research and evaluation studies (interviews:write to create and publish them), forms:read and responses:read for forms. Tools the key can't use aren't shown.
    Terminal
    claude mcp add --transport http formzed https://api.formzed.com/mcp \
      --header "Authorization: Bearer $FORMZED_API_KEY"

    Tools

    ToolPermissionWhat it returns
    searchforms:read or interviews:readForms and studies whose titles match the words you give (ChatGPT's deep research uses it).
    fetchforms:read or interviews:readOne search result: a form with its questions and newest responses, or a study with its setup and report.
    list_studiesinterviews:readYour studies, with status and interview counts.
    get_studyinterviews:readA study's goal, interview guide and screener.
    get_study_reportinterviews:readThe latest report: themes with checked counts and quotes, sentiment, MaxDiff and concept-test results, and how many interviews are newer.
    list_interviewsinterviews:readA study's interviews with each one's AI summary and screener answers.
    get_interviewinterviews:readOne interview's full transcript.
    list_formsforms:readYour forms, with status and response counts.
    get_formforms:readA form's questions.
    list_responsesresponses:readA form's responses with their answers.
    create_studyinterviews:writeA draft study from your questions, or AI-drafted from the idea (uses research credits).
    create_formforms:writeA draft form with its questions, with its public link and its builder link.
    update_formforms:writeChanges a form's draft (title, description, questions).
    publish_formforms:writePuts a form's draft live. The AI is told to confirm with you first.
    duplicate_formforms:writeA draft copy of a form.
    list_evaluationsinterviews:readYour evaluation studies, with task, status, rater link and progress.
    get_evaluationinterviews:readOne evaluation study and its progress.
    get_evaluation_resultsinterviews:readThe figures, counted in code: agreement, win rates, scores, labels.
    export_evaluation_datainterviews:readA page of ratings as training data (preference, ideal, labels or full), with next_cursor.
    create_evaluationinterviews:writeA draft evaluation study: title, task and settings.
    add_evaluation_itemsinterviews:writeUp to 1,000 items a call, in the same shape as the items endpoint.
    create_evaluation_media_uploadinterviews:writeAn upload URL for one image, audio or video file.
    complete_evaluation_media_uploadinterviews:writeChecks an uploaded file and makes it usable in items.
    publish_evaluationinterviews:writeOpens the study to raters at its link. The AI is told to confirm with you first.

    Use Formzed in ChatGPT and Gemini

    • ChatGPT: open chatgpt.com/plugins, press +, choose Add custom MCP server, paste https://api.formzed.com/mcp and pick OAuth. Sign in with Formzed and press Allow. Ask things like "What did people say about pricing in my latest study?". Custom servers depend on your ChatGPT plan and your workspace admin's settings.
    • Gemini CLI: install the Formzed extension, start gemini and run /mcp auth formzed. A browser opens on the Formzed sign-in.
    • Antigravity CLI: add the server to mcp_config.json as below; it opens the Formzed sign-in the first time a tool runs.
    • Gemini Enterprise: your Google Cloud admin adds a custom MCP server with an OAuth client registered for it (below): authorization URL https://www.formzed.com/oauth/authorize, token URL https://api.formzed.com/oauth/token, scopes such as forms:read responses:read interviews:read, and Enable PKCE Support turned on.
    • Every tool says whether it only reads or changes something, so ChatGPT and Gemini ask before a change. Nothing can be deleted.
    Terminal
    gemini extensions install https://github.com/formzed/formzed-gemini-extension
    gemini
    /mcp auth formzed

    Sign in with Formzed (OAuth)

    • Standard OAuth 2.1 for MCP: metadata at https://api.formzed.com/.well-known/oauth-protected-resource/mcp and /.well-known/oauth-authorization-server, dynamic client registration at /oauth/register, PKCE (S256) required.
    • Access tokens last 1 hour and refresh tokens 30 days; a refresh token works once (using an old one again ends the sign-in). Tokens only work on the MCP server, not the REST API.
    • A connection has your plan's API access and limits. Disconnecting stops its tokens at once; connecting again revokes the old ones.
    Respondents' words are data. Interview and form text is written by your respondents. Formzed tells the AI to treat it as data, never as instructions, and never returns participants' contact details.

    Guides

    Libraries and no-code

    Official client libraries and no-code apps for API v1.

    Preview: not installable yet. The JavaScript and Python libraries aren't on npm or PyPI yet, so the install commands and code below won't run today; they show what's coming. The Zapier and Make apps are in review. Until they're out, call the REST API directly (every other example on this page works as is), or use your tool's HTTP step with a Formzed webhook.

    JavaScript / TypeScript

    @formzed/sdk · coming soon

    Node 18+, Deno, Bun and edge runtimes; no dependencies; full types. Retries rate limits and server errors, pages for you, and verifies webhook signatures. Refuses to run in a browser.

    Python

    formzed · coming soon

    Python 3.9+, one dependency (requests). Same features: retries, page iterators and webhook signature checks. Objects are plain dicts with the API's field names.

    @formzed/sdk · not on npm yet
    // PREVIEW: @formzed/sdk isn't on npm yet, so "npm install @formzed/sdk" fails today.
    // This is how it will look at release. Until then, use the REST examples on this page.
    import { Formzed } from "@formzed/sdk";
    
    const formzed = new Formzed({ apiKey: process.env.FORMZED_API_KEY });
    
    const { data: forms } = await formzed.forms.list({ status: "published" });
    const form = await formzed.forms.get(forms[0].id);
    
    const created = await formzed.responses.create(form.id, {
      [form.fields[0].id]: "Ada Lovelace",
    });
    
    for await (const response of formzed.responses.iterate(form.id, { since: "2026-10-01T00:00:00Z" })) {
      console.log(response.submitted_at, response.answers_by_label);
    }
    AppStatusTriggersActions and searches
    ZapierIn review, coming soonNew response, New payment, Interview completed (instant, through Formzed webhooks)Create a response, Create a prefilled link, Find a response by email
    MakeIn review, coming soonWatch new responses, Watch payments, Watch completed interviews (instant)Create, update or delete a response; get a response; create a prefilled link; get, list or create forms; list responses, payments or interviews; make an API call
    WordPressPlugin in review, coming soonNone (it shows forms, it doesn't use the API)A Formzed block and the shortcode [formzed id="your-form" type="standard|popup|slider"], with the same options as the embed code. No API key.

    Until then: the HTTP step

    Webhooks by Zapier, Make's HTTP module or n8n's HTTP Request node. Store the key in the tool's connection or secret settings.

    SettingValue
    MethodPOST
    URLhttps://api.formzed.com/v1/forms/YOUR_FORM_ID/responses
    HeaderContent-Type: application/json
    HeaderX-API-Key: your key
    Body (JSON){"data": {"field-1712345678901": "..."}}

    To start a Zap or scenario when something happens in Formzed, point a Formzed webhook at the tool's "catch hook" URL.

    Guides

    Versioning and changelog

    How the API changes, how much notice you get, and what changed.

    RuleWhat it means for you
    v1 is stableEverything under https://api.formzed.com/v1 keeps working as documented. Breaking changes only ever come in a new version (/v2), never in v1.
    Additive changes any timeNew endpoints, new optional parameters, new fields in replies, new webhook event types and new error codes can appear without notice. Ignore fields you don't know and branch on code, not on the message text.
    Deprecation noticeBefore anything is removed or a version retired, it's announced here and by email to account owners at least 6 months ahead, and its replies carry Deprecation and Sunset headers with the date.
    Old addressesThe earlier *.supabase.co/functions/v1/… URLs still work and won't be switched off without the same notice. Use https://api.formzed.com for anything new.

    Planned for v2

    Things we know differ today. They stay as they are in v1 and line up in v2.

    • One body shape everywhere: data and field_id. The website form endpoint already accepts data and returns field_id next to fieldId.
    • 201 for every create (the website form and legacy endpoints answer 200 today).
    • One body limit (2 MB) on every endpoint; the website form endpoint allows 1 MB today.
    • The legacy submit endpoint retired in favour of POST /v1/forms/{id}/responses.

    Changelog

    DateChange
    2026-11-24Evaluations (AI Training): /v1/evaluations to create evaluation studies, upload files and items, publish, and download results as JSONL or CSV (X-Next-Cursor pages). /v1/studies lists interview studies only.
    2026-10-19New address: https://api.formzed.com (the old URLs still work). Idempotency-Key on every POST. Website forms: a spam-trap field, a list of allowed websites per form (ORIGIN_NOT_ALLOWED), data accepted for answers, and field_id plus code: VALIDATION_FAILED in 422 replies.
    2026-10-14API v1 launched: forms, responses, prefilled links, payments, AI, AI Research and webhooks, with scoped keys, IP allowlists and key rotation.

    Website forms

    Your own website form

    Keep your own HTML form and send answers to Formzed straight from the visitor's browser. No API key needed.

    Safe to call from a web page. This endpoint is public (no key) and answers browsers on any website, unless you limit the form to your own sites (below). Answers are checked exactly like the hosted form: required fields and allowed options.

    Set it up

    1. 1

      Publish the form in Formzed

      Only published forms accept responses.
    2. 2

      Get the ready-made HTML

      In Forms, open ⋯ → Embed → "Your own HTML form". It's a plain HTML version of your form. Each input's name is a field id.
    3. 3

      Paste it into your site

      Style it however you like. Responses appear in your Formzed dashboard.
    POST/forms/submit
    Request body
    • form_idrequired
      string (uuid)ID of a published form.
    • answersrequired
      objectField id → answer. Same format as data in the server API, and data works here too.
    • _hp
      stringThe spam trap: a hidden input people never fill in (as in the HTML below), sent inside answers or next to it. When it isn't empty the reply looks normal, but nothing is saved or counted.
    contact.html
    <form id="contact">
      <input name="field-1712345678901" placeholder="Name" required>
      <input name="field-1712345678902" type="email" placeholder="Email" required>
      <textarea name="field-1712345678904" placeholder="Message"></textarea>
      <!-- Spam trap: hidden from people, bots fill it in. Keep it empty. -->
      <div style="position:absolute;left:-10000px" aria-hidden="true">
        <input type="text" name="_hp" tabindex="-1" autocomplete="off">
      </div>
      <button type="submit">Send</button>
      <p id="status" role="status"></p>
    </form>
    
    <script>
    // No API key here: this endpoint is public.
    document.getElementById("contact").addEventListener("submit", async (event) => {
      event.preventDefault();
      const form = event.target;
      const status = document.getElementById("status");
      const answers = Object.fromEntries(new FormData(form));
      status.textContent = "Sending...";
      const res = await fetch("https://api.formzed.com/forms/submit", {
        method: "POST",
        headers: { "Content-Type": "application/json" },
        body: JSON.stringify({ form_id: "YOUR_FORM_ID", answers }),
      });
      const result = await res.json().catch(() => ({}));
      if (res.ok) {
        status.textContent = "Thanks! Your response was sent.";
        form.reset();
      } else {
        status.textContent = result.errors?.[0]?.message || result.error || "Something went wrong.";
      }
    });
    </script>

    Responses

    HTTPBodyMeaning
    200{"id": "<response uuid>", "computed": {...}}Saved. computed holds calculated field results (empty when the form has none).
    400{"error": "Invalid form_id"}The body isn't JSON, or form_id isn't a UUID.
    403{"error": "...", "code": "RESPONSE_LIMIT"}The form owner's monthly responses are used up.
    403{"error": "...", "code": "ORIGIN_NOT_ALLOWED"}The form only accepts responses from its allowed websites, and this page isn't one.
    404{"error": "Form not found"}No such form, or it isn't published.
    413{"error": "Request too large"}The body is over 1 MB.
    422{"error": "Validation failed", "code": "VALIDATION_FAILED", "errors": [{"field_id", "fieldId", "message"}]}Show each message next to its field. field_id and fieldId hold the same value.
    429{"error": "...", "code": "RATE_LIMITED"}More than 100 submissions in an hour from one connection to one form.
    500{"error": "..."}Try again later.

    Stopping spam

    ProtectionHow
    Spam trapKeep the hidden _hp input from the ready-made HTML. Bots that fill it in get a normal-looking reply, and nothing is saved, counted toward your responses or sent to automations.
    Allowed websitesIn Forms, ⋯ → Embed → "Your own HTML form" → Allowed websites. Browsers on any other site get ORIGIN_NOT_ALLOWED. Formzed's own pages and custom form domains always work.
    Rate limit100 submissions an hour from one connection to one form.

    Allowed websites stop other sites' pages; a script outside a browser can still send requests, which the spam trap and the rate limit catch. For the strongest protection, embed the hosted form.

    • It doesn't use API requests. Each submission counts toward the form owner's monthly responses, runs the form's automations and sends response.created webhooks, like the hosted form.
    • File uploads, payments and bookings need the hosted form. .

    Website forms

    Embed the hosted form

    Put the Formzed form itself on your page with an iframe. Everything works, including file uploads, payments and bookings.

    1. 1

      Publish the form

      Only published forms can be embedded.
    2. 2

      Copy the embed code

      In Forms, open ⋯ → Embed. The "Embed Widget" tab has the iframe code and a live preview.
    3. 3

      Paste it into your page's HTML

      Changes you publish in Formzed show up in the embed automatically.
    embed.html
    <iframe
      src="https://www.formzed.com/form/YOUR_FORM_SLUG?embed=true"
      width="100%"
      height="600"
      frameborder="0"
      title="Contact form"
      style="border: none; border-radius: 8px;">
    </iframe>
    AttributeExampleNotes
    srchttps://www.formzed.com/form/contact-form-abc123?embed=trueYour form's slug or ID, plus ?embed=true for a layout made for iframes. Add &prefill=<token> to fill in answers from a prefilled link.
    width100%Fills the container. A pixel width such as 800 also works.
    height600In pixels. Use a taller value for long forms.
    titleContact formRead out by screen readers.

    Tools

    Playground

    Send a real request to any API v1 endpoint with your key and see the raw response.

    GET/v1/forms
    This runs in your own browser on formzed.com. Your key goes only to the Formzed API and is not stored. Requests are real: writes save data, deletes can't be undone, AI calls use credits, and every request counts toward your limits.

    No key yet? Create one.

    Fills in the method, path and body. Edit them freely.

    Puts the form's ID in the path.

    Request details
    Method:
    GET
    URL:
    https://api.formzed.com/v1/forms
    Headers:
    X-API-Key: [your key]

    Tools

    Help

    Stuck on an integration? We can help.

    Check the error code first, then the FAQ. If you're still stuck, contact us with the code, the X-Request-Id, the time of the request and the key name (never the key itself).