{"openapi":"3.1.0","info":{"title":"whatayarn API","version":"1","description":"Read and write the forms, polls, quizzes and boards of one whatayarn account, with their responses, posts, insights, webhooks and folders.\n\nSend an API key from the Account page as `Authorization: Bearer <key>`. A Read only key can make `GET` requests; a Full access key can make any. Each key may make 120 requests a minute.\n\nRequests and responses are JSON, in camelCase, with ISO 8601 timestamps in UTC. A list is `{ \"data\": [...], \"hasMore\": boolean, \"nextCursor\": string | null }`: while `hasMore` is true, send `nextCursor` back as `cursor` for the next page, with `limit` from 1 to 100 (20 by default). Every response has a `Request-Id` header, and responses to a valid key carry `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset` (seconds). An error is `{ \"error\": { \"code\", \"message\", \"issues\"?, \"feature\"?, \"requestId\" } }`, with these codes: `unauthorized`, `read_only_key`, `plan_required`, `forbidden`, `not_found`, `method_not_allowed`, `wrong_kind`, `conflict`, `validation_failed`, `body_too_large`, `rate_limited`, `internal_error`, `unavailable`.\n\nEach operation carries `x-whatayarn-access` (the key access it needs, `read` or `write`), `x-whatayarn-kinds` (the form kinds it serves, when not every kind) and `x-whatayarn-requires` (the Creator features it always needs, when any)."},"servers":[{"url":"https://whatayarn.com/api/v1"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"Account"},{"name":"Forms"},{"name":"Responses"},{"name":"Posts"},{"name":"Comments"},{"name":"Updates"},{"name":"Subscribers"},{"name":"Insights"},{"name":"Webhooks"},{"name":"Deliveries"},{"name":"Folders"}],"paths":{"/me":{"get":{"operationId":"getMe","summary":"Get the account and key making the request.","description":"`plan` is the account's plan, `free` or `creator`. `key` is the name and access level of the key that sent the request: `read` for a Read only key, `write` for Full access.","tags":["Account"],"security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"plan":{"type":"string","enum":["free","creator"]},"key":{"type":"object","properties":{"name":{"type":"string"},"access":{"type":"string","enum":["read","write"]}},"required":["name","access"],"additionalProperties":false}},"required":["id","email","plan","key"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read"}},"/forms":{"get":{"operationId":"listForms","summary":"List the account's forms, polls, quizzes and boards.","description":"Newest first, without their documents. Filter by `kind` (`form`, `poll`, `quiz` or `board`) and by `status`, the state the forms list shows: `live`, `paused`, `scheduled`, `closed`, `unpublishedChanges`, `draft` (no questions yet) or `incomplete` (people can't submit). A board is live as it saves, so it is never `draft`, `incomplete` or `unpublishedChanges`, and its `responseCount` is null. Archived forms are included, with `archived: true`. Classic pages are not listed.","tags":["Forms"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":1024}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["form","poll","quiz","board"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["live","paused","scheduled","closed","unpublishedChanges","draft","incomplete"]}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/FormSummary"}},"hasMore":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","hasMore","nextCursor"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read"},"post":{"operationId":"createForm","summary":"Create a form, poll, quiz or board.","description":"Like the editor's first save, a new form is live at once: its first version is published as it is created. The kind is the document's `kind` (absent for a plain form, or `poll`, `quiz` or `board`); a board gets the default statuses and fields unless `document.board` sets them. `document` is the stored form document, the same format `GET /forms/{id}` returns. IDs belong to the server: block, option, rule and calculated field IDs may be left out, and any you send are local names that the server replaces with its own, rewriting every reference to them (logic, page routes, piping, redirect URL tokens, results questions). A reference to an ID the document doesn't hold is refused with `validation_failed` and its path. Images must already be whatayarn uploads. `folderId` files it in one of the account's folders; leave it out, or send null or `unfiled`, for the default folder. `settings` holds what the form's Settings tab saves. Removing branding, collecting partial submissions, deleting old responses, scheduled opening and closing, a response limit, one response per browser (free on a poll) and a custom link (`slug`) need Creator, and a Free account is refused with `plan_required` naming the feature. `closed: true` closes the form now and `closed: false` reopens it, on every plan. Settings apply straight away, without publishing. A setting sent with the value it already has is left alone. Passwords aren't covered yet. Creating the form and applying its settings is all or nothing: if a setting is refused, nothing is created. Returns the new form, with its draft.","tags":["Forms"],"security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":200},"document":{"$ref":"#/components/schemas/FormDocumentInput"},"folderId":{"anyOf":[{"type":"string","minLength":1,"maxLength":32},{"type":"null"}]},"settings":{"type":"object","properties":{"acceptingResponses":{"type":"boolean"},"closed":{"type":"boolean"},"showBranding":{"type":"boolean"},"showProgressBar":{"type":"boolean"},"showSubmitAnother":{"type":"boolean"},"collectPartialSubmissions":{"type":"boolean"},"notifyNewResponses":{"type":"boolean"},"saveProgress":{"type":"boolean"},"responseRetentionDays":{"anyOf":[{"type":"number","enum":[7,30,90,180,365,730]},{"type":"null"}]},"opensAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"closesAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"responseLimit":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000000},{"type":"null"}]},"oneResponsePerBrowser":{"type":"boolean"},"searchIndexing":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"slug":{"type":"string","maxLength":100},"share":{"type":"object","properties":{"title":{"anyOf":[{"type":"string","maxLength":70},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}]}},"additionalProperties":false}},"additionalProperties":false}},"required":["title"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Form"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/BodyTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write"}},"/forms/{id}":{"get":{"operationId":"getForm","summary":"Get a form, with its settings and document.","description":"Returns the draft by default, or the version respondents see with `?version=live`; `title`, `kind` and `document` follow the version, everything else is the form's. Send `revision` back with any change to the content or a publish. A board has no separate live version: its saved document is what visitors see, so both versions return it, and its `publishedAt` is when it first went live.","tags":["Forms"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"version","in":"query","required":false,"schema":{"default":"draft","type":"string","enum":["draft","live"]}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Form"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read"},"patch":{"operationId":"updateForm","summary":"Change a form's content, settings or place, or publish it.","description":"Send any of `title`, `document`, `settings`, `folderId` (null or `unfiled` for the default folder), `pinned`, `archived` and `publish`. A change to `title` or `document`, or `publish: true`, must carry the `revision` you last read; if the form has changed since (in the editor, say), the request is refused with `conflict` before anything changes. Content is saved as a private draft; `publish: true` then publishes it, or publishes the saved draft when no content is sent. `document` is the stored form document, the same format `GET /forms/{id}` returns. IDs belong to the server: block, option, rule and calculated field IDs may be left out, and any you send are local names that the server replaces with its own, rewriting every reference to them (logic, page routes, piping, redirect URL tokens, results questions). A reference to an ID the document doesn't hold is refused with `validation_failed` and its path. Images must already be whatayarn uploads. An ID the saved draft already has is kept, so a question stays the same question and keeps its answers; send back the IDs `GET /forms/{id}` returned. `settings` holds what the form's Settings tab saves. Removing branding, collecting partial submissions, deleting old responses, scheduled opening and closing, a response limit, one response per browser (free on a poll) and a custom link (`slug`) need Creator, and a Free account is refused with `plan_required` naming the feature. `closed: true` closes the form now and `closed: false` reopens it, on every plan. Settings apply straight away, without publishing. A setting sent with the value it already has is left alone. Passwords aren't covered yet.\n\nThe change is all or nothing. It is applied in this order: content, settings, folder, archive, pin, publish. If any part is refused (a Creator setting on a Free account, say, or a publish the form isn't ready for), nothing changes: the error is that part's, and the form stays exactly as it was.\n\nA board goes live as it saves: a board's `document` is what visitors see once this returns, and `publish` does nothing for it. Returns the form after the change, with its draft.","tags":["Forms"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"title":{"type":"string","maxLength":200},"document":{"$ref":"#/components/schemas/FormDocumentInput"},"settings":{"type":"object","properties":{"acceptingResponses":{"type":"boolean"},"closed":{"type":"boolean"},"showBranding":{"type":"boolean"},"showProgressBar":{"type":"boolean"},"showSubmitAnother":{"type":"boolean"},"collectPartialSubmissions":{"type":"boolean"},"notifyNewResponses":{"type":"boolean"},"saveProgress":{"type":"boolean"},"responseRetentionDays":{"anyOf":[{"type":"number","enum":[7,30,90,180,365,730]},{"type":"null"}]},"opensAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"closesAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"responseLimit":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000000},{"type":"null"}]},"oneResponsePerBrowser":{"type":"boolean"},"searchIndexing":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"slug":{"type":"string","maxLength":100},"share":{"type":"object","properties":{"title":{"anyOf":[{"type":"string","maxLength":70},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}]}},"additionalProperties":false}},"additionalProperties":false},"folderId":{"anyOf":[{"type":"string","minLength":1,"maxLength":32},{"type":"null"}]},"pinned":{"type":"boolean"},"archived":{"type":"boolean"},"publish":{"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Form"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/BodyTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write"},"delete":{"operationId":"deleteForm","summary":"Delete a form and everything in it.","description":"Deletes the form with its versions, responses, files and recordings, or a board with its posts, comments, updates and subscribers. It can't be undone.","tags":["Forms"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResult"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write"}},"/forms/{id}/questions":{"get":{"operationId":"listFormQuestions","summary":"List the questions a form asks.","description":"In form order, from the live version by default or the draft with `?version=draft`. Each question's `id` is the `key` a response's fields carry, and `name` is the label responses use. Choice and ranking questions list their `options`, and matrix questions their `rows` and `columns`. A board has no questions and answers `wrong_kind`.","tags":["Forms"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"version","in":"query","required":false,"schema":{"default":"live","type":"string","enum":["draft","live"]}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/FormQuestion"}},"hasMore":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","hasMore","nextCursor"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read","x-whatayarn-kinds":["form","poll","quiz"]}},"/forms/{id}/responses":{"get":{"operationId":"listResponses","summary":"List a form's responses, newest first.","description":"Lists the responses to a form, poll or quiz, newest first, as the Responses table does.\n\n`status` picks `completed` responses (the default), `partial` responses people left unfinished, or `all`. Partial responses are stored only while a form collects them, which needs Creator (`partialSubmissions`); any already stored are listed on every plan.\n\n`since` and `until` are ISO 8601 timestamps with a time zone. They filter on when a response arrived: when it was submitted, or a partial's latest answer. `since` is inclusive and `until` is exclusive, and both are compared in UTC to the millisecond.\n\n`search` finds words anywhere in the typed answers, ignoring case, as the Responses table's search does.\n\nEach response has the same `fields` as a webhook event's `data.fields`: every question of the version it answered, in order, then calculated fields, AI columns (`ai.<id>`), and the Responses table's Source (`source.<key>`) and Journey (`journey.<key>`) columns. Unanswered and skipped questions are null. Files and recordings are links that accept this API key. A partial response has `submittedAt: null`, a Stopped at field (`journey.stoppedAt`), and null for recordings, files and signatures, which are only sent when someone submits.","tags":["Responses"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":1024}},{"name":"status","in":"query","required":false,"schema":{"default":"completed","type":"string","enum":["all","completed","partial"]}},{"name":"since","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"until","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Response"}},"hasMore":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","hasMore","nextCursor"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read","x-whatayarn-kinds":["form","poll","quiz"]}},"/forms/{id}/responses/{responseId}":{"get":{"operationId":"getResponse","summary":"Get one response, completed or partial.","description":"Each response has the same `fields` as a webhook event's `data.fields`: every question of the version it answered, in order, then calculated fields, AI columns (`ai.<id>`), and the Responses table's Source (`source.<key>`) and Journey (`journey.<key>`) columns. Unanswered and skipped questions are null. Files and recordings are links that accept this API key. A partial response has `submittedAt: null`, a Stopped at field (`journey.stoppedAt`), and null for recordings, files and signatures, which are only sent when someone submits.","tags":["Responses"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"responseId","in":"path","required":true,"description":"The response's ID.","schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read","x-whatayarn-kinds":["form","poll","quiz"]},"delete":{"operationId":"deleteResponse","summary":"Delete a response, with its recordings and files.","description":"Deletes a completed or partial response for good, with its recordings, files and journey, as deleting it in the Responses table does. It still counts towards the plan's response allowance.","tags":["Responses"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"responseId","in":"path","required":true,"description":"The response's ID.","schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResult"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write","x-whatayarn-kinds":["form","poll","quiz"]}},"/forms/{id}/summary":{"get":{"operationId":"getFormSummary","summary":"Get a summary of a form's answers.","description":"The Summary tab's report on every completed response: for each question and calculated field, how many answered and what they said, then each AI column's answers.\n\nEach question has a `kind` that decides its other properties: `choice`, `scale`, `number`, `date`, `time`, `ranking`, `matrix`, `text`, `voice` or `file`. Its `key` matches the field's `key` in a response. `share` is a percentage from 0 to 100. Questions follow the live version of the form.","tags":["Responses"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerSummary"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read","x-whatayarn-kinds":["form","poll","quiz"]}},"/forms/{id}/posts":{"get":{"operationId":"listBoardPosts","summary":"List a board's posts.","description":"Every post on the board, as in the Posts tab: posts waiting for review included, archived posts left out unless `archived` is `true` or `any`. Filter by status IDs, tags (any of them match) and search words (all of them must match the title or details). Sort `newest` (the default) or `upvotes`; pinned posts are not moved to the top.","tags":["Posts"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":1024}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"sort","in":"query","required":false,"schema":{"default":"newest","type":"string","enum":["newest","upvotes"]}},{"name":"pending","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}},{"name":"archived","in":"query","required":false,"schema":{"default":"false","type":"string","enum":["true","false","any"]}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BoardPost"}},"hasMore":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","hasMore","nextCursor"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read","x-whatayarn-kinds":["board"]},"post":{"operationId":"createBoardPost","summary":"Add a post to a board as the team.","description":"Adds a post as the owner does with New post: from the team, never waiting for review, at the top of the board's order. `statusId` must be one of the board's statuses (the first when left out), `tags` the board's tags and `fields` its fields, by ID. Images in `details` must already be uploads on this board.","tags":["Posts"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":140},"details":{"type":"string","maxLength":5000},"statusId":{"type":"string","minLength":1,"maxLength":40},"tags":{"maxItems":3,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}},"fields":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}}},"required":["title"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoardPost"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/BodyTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write","x-whatayarn-kinds":["board"]}},"/forms/{id}/posts/{postId}":{"get":{"operationId":"getBoardPost","summary":"Get one post on a board.","description":"The post as the owner sees it in the Posts tab.","tags":["Posts"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"postId","in":"path","required":true,"description":"The post's ID.","schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoardPost"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read","x-whatayarn-kinds":["board"]},"patch":{"operationId":"updateBoardPost","summary":"Change a post on a board.","description":"Changes what the owner can change in the post panel. Only the fields sent change. `tags` replaces the post's tags; `fields` sets answers by field ID, keeping the rest. A new status adds a line to the post's timeline. To review a post waiting for review, send `pending: false` to approve it, or `pending: false` with `archived: true` to decline it.","tags":["Posts"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"postId","in":"path","required":true,"description":"The post's ID.","schema":{"type":"string","minLength":1,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":140},"details":{"type":"string","maxLength":5000},"statusId":{"type":"string","minLength":1,"maxLength":40},"tags":{"maxItems":3,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}},"fields":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"pending":{"type":"boolean","const":false},"archived":{"type":"boolean"},"pinned":{"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoardPost"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/BodyTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write","x-whatayarn-kinds":["board"]},"delete":{"operationId":"deleteBoardPost","summary":"Delete a post from a board.","description":"Deletes the post with its votes and timeline. To take a post off the board but keep it, archive it instead.","tags":["Posts"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"postId","in":"path","required":true,"description":"The post's ID.","schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResult"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write","x-whatayarn-kinds":["board"]}},"/forms/{id}/posts/{postId}/merge":{"post":{"operationId":"mergeBoardPost","summary":"Merge a post into another post on the same board.","description":"Moves this post's votes into the other post (someone who voted for both counts once), moves its comments and timeline there with a line saying it was merged, and gives its place in any update to the other post. Then this post is deleted. Subscribers are the board's, so none change. Returns the post it went into. A post can't be merged into itself; a post already merged no longer exists.","tags":["Posts"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"postId","in":"path","required":true,"description":"The post's ID.","schema":{"type":"string","minLength":1,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"intoPostId":{"type":"string","pattern":"^[A-Za-z0-9_-]{12}$"}},"required":["intoPostId"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoardPost"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/BodyTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write","x-whatayarn-kinds":["board"]}},"/forms/{id}/posts/{postId}/comments":{"get":{"operationId":"listBoardComments","summary":"List a post's comments and timeline.","description":"The post's comments and the lines the board writes itself (status changes, merges and updates), oldest first, as the owner sees them: comments waiting for review and hidden comments included. Filter with `pending` and `hidden`.","tags":["Comments"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"postId","in":"path","required":true,"description":"The post's ID.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":1024}},{"name":"pending","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}},{"name":"hidden","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BoardComment"}},"hasMore":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","hasMore","nextCursor"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read","x-whatayarn-kinds":["board"]},"post":{"operationId":"createBoardComment","summary":"Comment on a post as the team.","description":"Adds a comment from the team, as the owner comments in the post panel. It shows at once. With `parentId` it replies to a comment on the same post; a reply to a reply joins the same thread. Images must already be uploads on this board.","tags":["Comments"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"postId","in":"path","required":true,"description":"The post's ID.","schema":{"type":"string","minLength":1,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","maxLength":2000},"parentId":{"type":"string","pattern":"^[A-Za-z0-9_-]{12}$"}},"required":["body"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoardComment"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/BodyTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write","x-whatayarn-kinds":["board"]}},"/forms/{id}/posts/{postId}/comments/{commentId}":{"patch":{"operationId":"updateBoardComment","summary":"Review, hide, pin or edit a comment.","description":"Send `pending: false` to approve a comment waiting for review, `hidden` to hide or show it, and `pinned` to pin it first in the timeline (one per post; only a comment everyone can see, and not a reply). `body` edits a comment from the team; others' words can't be changed.","tags":["Comments"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"postId","in":"path","required":true,"description":"The post's ID.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"commentId","in":"path","required":true,"description":"The comment's ID.","schema":{"type":"string","minLength":1,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","maxLength":2000},"pending":{"type":"boolean","const":false},"hidden":{"type":"boolean"},"pinned":{"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoardComment"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/BodyTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write","x-whatayarn-kinds":["board"]},"delete":{"operationId":"deleteBoardComment","summary":"Delete a comment from a post.","description":"Deletes the comment and any replies under it, or a status or merge line. An update's line goes when the post is taken out of the update.","tags":["Comments"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"postId","in":"path","required":true,"description":"The post's ID.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"commentId","in":"path","required":true,"description":"The comment's ID.","schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResult"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write","x-whatayarn-kinds":["board"]}},"/forms/{id}/updates":{"get":{"operationId":"listBoardUpdates","summary":"List a board's updates.","description":"The news the team published on the board, newest first, each with what happened to its email.","tags":["Updates"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":1024}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BoardUpdate"}},"hasMore":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","hasMore","nextCursor"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read","x-whatayarn-kinds":["board"]},"post":{"operationId":"createBoardUpdate","summary":"Publish an update on a board.","description":"Publishes news to the board's Updates at once; there are no drafts. Each post it covers gets a line in its timeline, and `moveToStatusId` moves them to that status. Subscribers are not emailed unless `notify` is `true`. With `notify: true` it is emailed to every confirmed subscriber as when the owner publishes with email on, within the same limits: one emailed update per board an hour and 10,000 update emails an account a month, and nobody gets part of a list. The result's `email` says what happened. Send the same `requestId` when retrying so it publishes and emails once.","tags":["Updates"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":140},"body":{"default":"","type":"string","maxLength":5000},"postIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{12}$"}},"moveToStatusId":{"type":"string","minLength":1,"maxLength":40},"notify":{"default":false,"type":"boolean"},"requestId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$"}},"required":["title"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoardUpdate"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/BodyTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write","x-whatayarn-kinds":["board"]}},"/forms/{id}/updates/{updateId}":{"patch":{"operationId":"updateBoardUpdate","summary":"Change an update on a board.","description":"Changes an update's title, body or the posts it covers; only the fields sent change. Posts newly covered get a line in their timeline, and posts no longer covered lose theirs. Editing never moves posts and never emails anyone.","tags":["Updates"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"updateId","in":"path","required":true,"description":"The update's ID.","schema":{"type":"string","minLength":1,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":140},"body":{"type":"string","maxLength":5000},"postIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{12}$"}}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoardUpdate"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/BodyTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write","x-whatayarn-kinds":["board"]},"delete":{"operationId":"deleteBoardUpdate","summary":"Delete an update from a board.","description":"Deletes the update and its lines in posts' timelines. Posts it moved stay where they are. Emails already sent can't be taken back.","tags":["Updates"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"updateId","in":"path","required":true,"description":"The update's ID.","schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResult"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write","x-whatayarn-kinds":["board"]}},"/forms/{id}/subscribers":{"get":{"operationId":"listBoardSubscribers","summary":"List a board's subscribers.","description":"Everyone who signed up for the board's updates, newest first, as in the Subscribers tab: confirmed, awaiting confirmation and unsubscribed.","tags":["Subscribers"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":1024}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BoardSubscriber"}},"hasMore":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","hasMore","nextCursor"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read","x-whatayarn-kinds":["board"]}},"/forms/{id}/subscribers/{subscriberId}":{"delete":{"operationId":"deleteBoardSubscriber","summary":"Remove a subscriber from a board.","description":"Removes the sign-up, so they get no more updates. Emails already queued for them are skipped. They can sign up again from the board.","tags":["Subscribers"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"subscriberId","in":"path","required":true,"description":"The subscriber's ID.","schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResult"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write","x-whatayarn-kinds":["board"]}},"/forms/{id}/insights":{"get":{"operationId":"getFormInsights","summary":"Get a form's views, starts, responses and completion for a period.","description":"Totals for the period, the same totals for the period just before it, and a series by day (or by month for periods over 90 days). For a board, `votes`, `posts`, `participationRate` and `topPosts` replace starts, responses and completion, which are null. The period is a named `range` (7d when left out) or your own `from` and `to` days, counted in `timeZone`. Bots and the owner's own visits never count. The filters (`referrer`, `campaign`, `browser`, `os`, `device`, `country`, `region`, `city`, `language`) need Creator, as in the app; on Free they are ignored.","tags":["Insights"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"range","in":"query","required":false,"description":"A named period, counted in `timeZone`. Leave it out with `from` and `to` for your own dates; 7d when neither is sent.","schema":{"type":"string","enum":["today","yesterday","7d","30d","90d","this-month","last-month","this-year","all"]}},{"name":"from","in":"query","required":false,"description":"The first day of your own period, as YYYY-MM-DD. Needs `to`.","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"The last day of your own period, as YYYY-MM-DD, no later than today. Needs `from`.","schema":{"type":"string"}},{"name":"timeZone","in":"query","required":false,"description":"The IANA time zone days are counted in, like Australia/Sydney. UTC when left out.","schema":{"type":"string","maxLength":80}},{"name":"referrer","in":"query","required":false,"description":"Only visitors from this source, as a `value` from the sources breakdown.","schema":{"type":"string","minLength":1,"maxLength":2048}},{"name":"campaign","in":"query","required":false,"description":"Only visitors from links with this utm_source.","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"browser","in":"query","required":false,"description":"Only visitors using this browser.","schema":{"type":"string","minLength":1,"maxLength":120}},{"name":"os","in":"query","required":false,"description":"Only visitors using this operating system.","schema":{"type":"string","minLength":1,"maxLength":120}},{"name":"device","in":"query","required":false,"description":"Only visitors on this kind of device.","schema":{"type":"string","minLength":1,"maxLength":120}},{"name":"country","in":"query","required":false,"description":"Only visitors from this country code, like AU.","schema":{"type":"string","minLength":1,"maxLength":2}},{"name":"region","in":"query","required":false,"description":"Only visitors from this region, as a `value` from the regions breakdown.","schema":{"type":"string","minLength":1,"maxLength":140}},{"name":"city","in":"query","required":false,"description":"Only visitors from this city, as a `value` from the cities breakdown.","schema":{"type":"string","minLength":1,"maxLength":300}},{"name":"language","in":"query","required":false,"description":"Only visitors whose browser language is this.","schema":{"type":"string","minLength":1,"maxLength":35}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"period":{"type":"object","properties":{"range":{"type":"string","enum":["today","yesterday","7d","30d","90d","this-month","last-month","this-year","all","custom"]},"from":{"anyOf":[{"type":"string"},{"type":"null"}]},"to":{"type":"string"},"timeZone":{"type":"string"},"granularity":{"type":"string","enum":["daily","monthly"]}},"required":["range","from","to","timeZone","granularity"],"additionalProperties":false},"totals":{"type":"object","properties":{"views":{"type":"number"},"visitors":{"type":"number"},"starts":{"anyOf":[{"type":"number"},{"type":"null"}]},"responses":{"anyOf":[{"type":"number"},{"type":"null"}]},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"votes":{"anyOf":[{"type":"number"},{"type":"null"}]},"posts":{"anyOf":[{"type":"number"},{"type":"null"}]},"participationRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["views","visitors","starts","responses","completionRate","votes","posts","participationRate"],"additionalProperties":false},"previous":{"anyOf":[{"type":"object","properties":{"views":{"type":"number"},"visitors":{"type":"number"},"starts":{"anyOf":[{"type":"number"},{"type":"null"}]},"responses":{"anyOf":[{"type":"number"},{"type":"null"}]},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"votes":{"anyOf":[{"type":"number"},{"type":"null"}]},"posts":{"anyOf":[{"type":"number"},{"type":"null"}]},"participationRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["views","visitors","starts","responses","completionRate","votes","posts","participationRate"],"additionalProperties":false},{"type":"null"}]},"series":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"views":{"type":"number"},"visitors":{"type":"number"},"starts":{"anyOf":[{"type":"number"},{"type":"null"}]},"responses":{"anyOf":[{"type":"number"},{"type":"null"}]},"completionRate":{"anyOf":[{"type":"number"},{"type":"null"}]},"votes":{"anyOf":[{"type":"number"},{"type":"null"}]},"posts":{"anyOf":[{"type":"number"},{"type":"null"}]},"participationRate":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["date","views","visitors","starts","responses","completionRate","votes","posts","participationRate"],"additionalProperties":false}},"topPosts":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"statusId":{"type":"string"},"votes":{"type":"number"}},"required":["id","title","statusId","votes"],"additionalProperties":false}},{"type":"null"}]}},"required":["period","totals","previous","series","topPosts"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read"}},"/forms/{id}/insights/sources":{"get":{"operationId":"getFormInsightsSources","summary":"Get where a form's visitors came from, their devices and locations.","description":"Views and responses by referring site, campaign, browser, operating system, device, country, region, city and language. Each row's `value` is what to send as that filter. Needs Creator (`visitorDetails`). The period is a named `range` (7d when left out) or your own `from` and `to` days, counted in `timeZone`. Bots and the owner's own visits never count. The filters (`referrer`, `campaign`, `browser`, `os`, `device`, `country`, `region`, `city`, `language`) need Creator, as in the app; on Free they are ignored.","tags":["Insights"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"range","in":"query","required":false,"description":"A named period, counted in `timeZone`. Leave it out with `from` and `to` for your own dates; 7d when neither is sent.","schema":{"type":"string","enum":["today","yesterday","7d","30d","90d","this-month","last-month","this-year","all"]}},{"name":"from","in":"query","required":false,"description":"The first day of your own period, as YYYY-MM-DD. Needs `to`.","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"The last day of your own period, as YYYY-MM-DD, no later than today. Needs `from`.","schema":{"type":"string"}},{"name":"timeZone","in":"query","required":false,"description":"The IANA time zone days are counted in, like Australia/Sydney. UTC when left out.","schema":{"type":"string","maxLength":80}},{"name":"referrer","in":"query","required":false,"description":"Only visitors from this source, as a `value` from the sources breakdown.","schema":{"type":"string","minLength":1,"maxLength":2048}},{"name":"campaign","in":"query","required":false,"description":"Only visitors from links with this utm_source.","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"browser","in":"query","required":false,"description":"Only visitors using this browser.","schema":{"type":"string","minLength":1,"maxLength":120}},{"name":"os","in":"query","required":false,"description":"Only visitors using this operating system.","schema":{"type":"string","minLength":1,"maxLength":120}},{"name":"device","in":"query","required":false,"description":"Only visitors on this kind of device.","schema":{"type":"string","minLength":1,"maxLength":120}},{"name":"country","in":"query","required":false,"description":"Only visitors from this country code, like AU.","schema":{"type":"string","minLength":1,"maxLength":2}},{"name":"region","in":"query","required":false,"description":"Only visitors from this region, as a `value` from the regions breakdown.","schema":{"type":"string","minLength":1,"maxLength":140}},{"name":"city","in":"query","required":false,"description":"Only visitors from this city, as a `value` from the cities breakdown.","schema":{"type":"string","minLength":1,"maxLength":300}},{"name":"language","in":"query","required":false,"description":"Only visitors whose browser language is this.","schema":{"type":"string","minLength":1,"maxLength":35}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"period":{"type":"object","properties":{"range":{"type":"string","enum":["today","yesterday","7d","30d","90d","this-month","last-month","this-year","all","custom"]},"from":{"anyOf":[{"type":"string"},{"type":"null"}]},"to":{"type":"string"},"timeZone":{"type":"string"},"granularity":{"type":"string","enum":["daily","monthly"]}},"required":["range","from","to","timeZone","granularity"],"additionalProperties":false},"referrers":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"views":{"type":"number"},"responses":{"type":"number"}},"required":["value","label","views","responses"],"additionalProperties":false}},"campaigns":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"views":{"type":"number"},"responses":{"type":"number"}},"required":["value","label","views","responses"],"additionalProperties":false}},"browsers":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"views":{"type":"number"},"responses":{"type":"number"}},"required":["value","label","views","responses"],"additionalProperties":false}},"operatingSystems":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"views":{"type":"number"},"responses":{"type":"number"}},"required":["value","label","views","responses"],"additionalProperties":false}},"devices":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"views":{"type":"number"},"responses":{"type":"number"}},"required":["value","label","views","responses"],"additionalProperties":false}},"countries":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"views":{"type":"number"},"responses":{"type":"number"}},"required":["value","label","views","responses"],"additionalProperties":false}},"regions":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"views":{"type":"number"},"responses":{"type":"number"}},"required":["value","label","views","responses"],"additionalProperties":false}},"cities":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"views":{"type":"number"},"responses":{"type":"number"}},"required":["value","label","views","responses"],"additionalProperties":false}},"languages":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"views":{"type":"number"},"responses":{"type":"number"}},"required":["value","label","views","responses"],"additionalProperties":false}}},"required":["period","referrers","campaigns","browsers","operatingSystems","devices","countries","regions","cities","languages"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read","x-whatayarn-requires":["visitorDetails"]}},"/forms/{id}/insights/drop-off":{"get":{"operationId":"getFormDropOff","summary":"Get how far people get through a form, page by page.","description":"The funnel from views to sent responses, and for each page of the live form how many reached it, answered each question and stopped there. People still answering count once they send or go quiet. Needs Creator (`dropOff`). The period is a named `range` (7d when left out) or your own `from` and `to` days, counted in `timeZone`. Bots and the owner's own visits never count. The filters (`referrer`, `campaign`, `browser`, `os`, `device`, `country`, `region`, `city`, `language`) need Creator, as in the app; on Free they are ignored.","tags":["Insights"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"range","in":"query","required":false,"description":"A named period, counted in `timeZone`. Leave it out with `from` and `to` for your own dates; 7d when neither is sent.","schema":{"type":"string","enum":["today","yesterday","7d","30d","90d","this-month","last-month","this-year","all"]}},{"name":"from","in":"query","required":false,"description":"The first day of your own period, as YYYY-MM-DD. Needs `to`.","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"The last day of your own period, as YYYY-MM-DD, no later than today. Needs `from`.","schema":{"type":"string"}},{"name":"timeZone","in":"query","required":false,"description":"The IANA time zone days are counted in, like Australia/Sydney. UTC when left out.","schema":{"type":"string","maxLength":80}},{"name":"referrer","in":"query","required":false,"description":"Only visitors from this source, as a `value` from the sources breakdown.","schema":{"type":"string","minLength":1,"maxLength":2048}},{"name":"campaign","in":"query","required":false,"description":"Only visitors from links with this utm_source.","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"browser","in":"query","required":false,"description":"Only visitors using this browser.","schema":{"type":"string","minLength":1,"maxLength":120}},{"name":"os","in":"query","required":false,"description":"Only visitors using this operating system.","schema":{"type":"string","minLength":1,"maxLength":120}},{"name":"device","in":"query","required":false,"description":"Only visitors on this kind of device.","schema":{"type":"string","minLength":1,"maxLength":120}},{"name":"country","in":"query","required":false,"description":"Only visitors from this country code, like AU.","schema":{"type":"string","minLength":1,"maxLength":2}},{"name":"region","in":"query","required":false,"description":"Only visitors from this region, as a `value` from the regions breakdown.","schema":{"type":"string","minLength":1,"maxLength":140}},{"name":"city","in":"query","required":false,"description":"Only visitors from this city, as a `value` from the cities breakdown.","schema":{"type":"string","minLength":1,"maxLength":300}},{"name":"language","in":"query","required":false,"description":"Only visitors whose browser language is this.","schema":{"type":"string","minLength":1,"maxLength":35}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"period":{"type":"object","properties":{"range":{"type":"string","enum":["today","yesterday","7d","30d","90d","this-month","last-month","this-year","all","custom"]},"from":{"anyOf":[{"type":"string"},{"type":"null"}]},"to":{"type":"string"},"timeZone":{"type":"string"},"granularity":{"type":"string","enum":["daily","monthly"]}},"required":["range","from","to","timeZone","granularity"],"additionalProperties":false},"views":{"type":"number"},"started":{"type":"number"},"submitted":{"type":"number"},"branching":{"type":"boolean"},"stoppedOnRemovedPages":{"type":"number"},"afterSend":{"anyOf":[{"type":"object","properties":{"action":{"type":"string","enum":["redirected","submittedAnother"]},"count":{"type":"number"}},"required":["action","count"],"additionalProperties":false},{"type":"null"}]},"pages":{"type":"array","items":{"type":"object","properties":{"page":{"type":"number"},"reached":{"type":"number"},"stopped":{"type":"number"},"sent":{"anyOf":[{"type":"number"},{"type":"null"}]},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"reached":{"type":"number"},"answered":{"type":"number"},"progressed":{"type":"number"}},"required":["id","name","type","reached","answered","progressed"],"additionalProperties":false}}},"required":["page","reached","stopped","sent","questions"],"additionalProperties":false}}},"required":["period","views","started","submitted","branching","stoppedOnRemovedPages","afterSend","pages"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read","x-whatayarn-kinds":["form","poll","quiz"],"x-whatayarn-requires":["dropOff"]}},"/forms/{id}/insights/journeys":{"get":{"operationId":"listFormJourneys","summary":"List each person's journey through a form, newest first.","description":"Journeys begun in the period that were sent, or that stopped. People still answering appear once they send or go quiet. Only the newest 1,000 in the period are read. A journey lists a name or email found in its answers, never the answers themselves; get one journey for those. Needs Creator (`journeys`). The period is a named `range` (7d when left out) or your own `from` and `to` days, counted in `timeZone`. Bots and the owner's own visits never count. The filters (`referrer`, `campaign`, `browser`, `os`, `device`, `country`, `region`, `city`, `language`) need Creator, as in the app; on Free they are ignored.","tags":["Insights"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"range","in":"query","required":false,"description":"A named period, counted in `timeZone`. Leave it out with `from` and `to` for your own dates; 7d when neither is sent.","schema":{"type":"string","enum":["today","yesterday","7d","30d","90d","this-month","last-month","this-year","all"]}},{"name":"from","in":"query","required":false,"description":"The first day of your own period, as YYYY-MM-DD. Needs `to`.","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"The last day of your own period, as YYYY-MM-DD, no later than today. Needs `from`.","schema":{"type":"string"}},{"name":"timeZone","in":"query","required":false,"description":"The IANA time zone days are counted in, like Australia/Sydney. UTC when left out.","schema":{"type":"string","maxLength":80}},{"name":"referrer","in":"query","required":false,"description":"Only visitors from this source, as a `value` from the sources breakdown.","schema":{"type":"string","minLength":1,"maxLength":2048}},{"name":"campaign","in":"query","required":false,"description":"Only visitors from links with this utm_source.","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"browser","in":"query","required":false,"description":"Only visitors using this browser.","schema":{"type":"string","minLength":1,"maxLength":120}},{"name":"os","in":"query","required":false,"description":"Only visitors using this operating system.","schema":{"type":"string","minLength":1,"maxLength":120}},{"name":"device","in":"query","required":false,"description":"Only visitors on this kind of device.","schema":{"type":"string","minLength":1,"maxLength":120}},{"name":"country","in":"query","required":false,"description":"Only visitors from this country code, like AU.","schema":{"type":"string","minLength":1,"maxLength":2}},{"name":"region","in":"query","required":false,"description":"Only visitors from this region, as a `value` from the regions breakdown.","schema":{"type":"string","minLength":1,"maxLength":140}},{"name":"city","in":"query","required":false,"description":"Only visitors from this city, as a `value` from the cities breakdown.","schema":{"type":"string","minLength":1,"maxLength":300}},{"name":"language","in":"query","required":false,"description":"Only visitors whose browser language is this.","schema":{"type":"string","minLength":1,"maxLength":35}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":1024}},{"name":"search","in":"query","required":false,"description":"Only journeys whose answers, source or campaign contain this text.","schema":{"type":"string","minLength":1,"maxLength":120}},{"name":"stoppedOnPage","in":"query","required":false,"description":"Only journeys that stopped on this page of the live form, from 1.","schema":{"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/JourneySummary"}},"hasMore":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","hasMore","nextCursor"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read","x-whatayarn-kinds":["form","poll","quiz"],"x-whatayarn-requires":["journeys"]}},"/forms/{id}/insights/journeys/{journeyId}":{"get":{"operationId":"getFormJourney","summary":"Get one person's journey, step by step, with their answers.","description":"Where they came from, each page they reached and question they answered (with the answer, when the response or partial kept it), and how it ended. Needs Creator (`journeys`).","tags":["Insights"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"journeyId","in":"path","required":true,"description":"The journey's ID.","schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Journey"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read","x-whatayarn-kinds":["form","poll","quiz"],"x-whatayarn-requires":["journeys"]}},"/forms/{id}/webhooks":{"get":{"operationId":"listWebhooks","summary":"List a form's webhooks.","description":"Every webhook on the form, oldest first, with its delivery counts. The URL, header values and signing secret are stored encrypted and can't be read back by any key; a webhook reads as its host.","tags":["Webhooks"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"}},"hasMore":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","hasMore","nextCursor"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read","x-whatayarn-kinds":["form","poll","quiz"]},"post":{"operationId":"createWebhook","summary":"Connect a webhook to a form.","description":"Each completed response is then sent to `url` as a JSON POST (the `form.response.completed` event). Sign with your own `signingSecret`, or send `generateSigningSecret: true` and whatayarn makes one, returned once in this response. With neither, deliveries are unsigned. The URL, header values and signing secret are stored encrypted and can't be read back by any key; a webhook reads as its host.","tags":["Webhooks"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":2048,"description":"Where each completed response is sent as a JSON POST. It must be HTTPS on a public host, and can't be read back."},"headers":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"value":{"type":"string","maxLength":1000}},"required":["name","value"]},"description":"Up to 10 headers sent with every delivery, like an Authorization token. Values can't be read back."},"signingSecret":{"anyOf":[{"type":"string","minLength":1,"maxLength":512},{"type":"null"}],"description":"Your own key for the Whatayarn-Signature header, or null to send deliveries unsigned. It can't be read back."},"generateSigningSecret":{"description":"True to have whatayarn make a new signing key, returned once in this response as `signingSecret`.","type":"boolean"},"enabled":{"description":"False to connect it paused. True when left out.","type":"boolean"}},"required":["url"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookWithSecret"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/BodyTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write","x-whatayarn-kinds":["form","poll","quiz"]}},"/forms/{id}/webhooks/{webhookId}":{"patch":{"operationId":"updateWebhook","summary":"Change a webhook's URL, headers or signing secret, or pause it.","description":"Fields left out keep their saved value; `headers` replaces every header. Changing the `url` without sending `headers` removes the saved headers, so they never reach a new endpoint. `signingSecret` sets your own key (null sends deliveries unsigned), and `generateSigningSecret: true` replaces the key with a new one whatayarn makes, returned once in this response. Changes apply to deliveries sent from now on. The URL, header values and signing secret are stored encrypted and can't be read back by any key; a webhook reads as its host.","tags":["Webhooks"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"webhookId","in":"path","required":true,"description":"The webhook's ID.","schema":{"type":"string","minLength":1,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":2048,"description":"Where each completed response is sent as a JSON POST. It must be HTTPS on a public host, and can't be read back."},"headers":{"description":"Replaces every header. Leave it out to keep the saved headers.","maxItems":10,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"value":{"type":"string","maxLength":1000}},"required":["name","value"]}},"signingSecret":{"anyOf":[{"type":"string","minLength":1,"maxLength":512},{"type":"null"}],"description":"Your own key for the Whatayarn-Signature header, or null to send deliveries unsigned. It can't be read back."},"generateSigningSecret":{"description":"True to have whatayarn make a new signing key, returned once in this response as `signingSecret`.","type":"boolean"},"enabled":{"description":"False pauses deliveries; true resumes them, sending anything queued.","type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookWithSecret"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/BodyTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write","x-whatayarn-kinds":["form","poll","quiz"]},"delete":{"operationId":"deleteWebhook","summary":"Disconnect a webhook.","description":"Removes the webhook and its delivery log. Deliveries still queued are never sent.","tags":["Webhooks"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"webhookId","in":"path","required":true,"description":"The webhook's ID.","schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResult"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write","x-whatayarn-kinds":["form","poll","quiz"]}},"/forms/{id}/webhooks/{webhookId}/test":{"post":{"operationId":"testWebhook","summary":"Queue a test event for a webhook.","description":"Queues the form's questions with sample answers, marked `test: true`, and returns the new delivery so you can follow it. The webhook must be on. Tests share a limit of 20 every 10 minutes per account with Send test in the app.","tags":["Webhooks"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"webhookId","in":"path","required":true,"description":"The webhook's ID.","schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryWithEvent"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write","x-whatayarn-kinds":["form","poll","quiz"]}},"/forms/{id}/webhooks/{webhookId}/deliveries":{"get":{"operationId":"listWebhookDeliveries","summary":"List a webhook's deliveries, newest first.","description":"Each response or test event sent, or waiting to be sent, to this webhook, with its attempts and your endpoint's last answer.","tags":["Deliveries"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"webhookId","in":"path","required":true,"description":"The webhook's ID.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":1024}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Delivery"}},"hasMore":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","hasMore","nextCursor"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read","x-whatayarn-kinds":["form","poll","quiz"]}},"/forms/{id}/webhooks/{webhookId}/deliveries/{deliveryId}":{"get":{"operationId":"getWebhookDelivery","summary":"Get one delivery, with the event it sends.","description":"The delivery as the log lists it, with `event`: the JSON body that was sent, or will be.","tags":["Deliveries"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"webhookId","in":"path","required":true,"description":"The webhook's ID.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"deliveryId","in":"path","required":true,"description":"The delivery's ID.","schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryWithEvent"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read","x-whatayarn-kinds":["form","poll","quiz"]}},"/forms/{id}/webhooks/{webhookId}/deliveries/{deliveryId}/resend":{"post":{"operationId":"resendWebhookDelivery","summary":"Send a delivery again.","description":"Puts a delivered or failed delivery back in the queue with its attempts reset, as Resend does in the app. It sends the same event body. A delivery still waiting is left as it is.","tags":["Deliveries"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The form's ID. Polls, quizzes and boards are forms too.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"webhookId","in":"path","required":true,"description":"The webhook's ID.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"deliveryId","in":"path","required":true,"description":"The delivery's ID.","schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryWithEvent"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write","x-whatayarn-kinds":["form","poll","quiz"]}},"/folders":{"get":{"operationId":"listFolders","summary":"List the account's folders, in order.","description":"Every folder in the order the app shows them, with how many forms each holds. The default folder (`unfiled`, `isDefault: true`) holds forms with no folder; those forms read `folderId: null`, and `PATCH /forms/{id}` takes either to move a form there.","tags":["Folders"],"security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Folder"}},"hasMore":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","hasMore","nextCursor"],"additionalProperties":false}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"read"},"post":{"operationId":"createFolder","summary":"Create a folder.","description":"Needs Creator (`unlimitedFolders`). A new folder starts empty.","tags":["Folders"],"security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60},"icon":{"description":"A single emoji, or null for the plain folder icon. A random emoji when left out.","anyOf":[{"type":"string","minLength":1,"maxLength":32},{"type":"null"}]}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Folder"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/BodyTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write","x-whatayarn-requires":["unlimitedFolders"]}},"/folders/{folderId}":{"patch":{"operationId":"updateFolder","summary":"Rename a folder, change its icon or move it.","description":"Fields left out keep their value. `position` moves the folder to that place in the list, from 0. The default folder renames, takes an icon and moves like any other.","tags":["Folders"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"folderId","in":"path","required":true,"description":"The folder's ID, or `unfiled` for the default folder.","schema":{"type":"string","minLength":1,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60},"icon":{"anyOf":[{"type":"string","minLength":1,"maxLength":32},{"type":"null"}],"description":"A single emoji, or null for the plain folder icon."},"position":{"description":"Where to move it in the list, from 0. A position past the end moves it last.","type":"integer","minimum":0,"maximum":9007199254740991}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Folder"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/BodyTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write"},"delete":{"operationId":"deleteFolder","summary":"Delete a folder, moving its forms to the default folder.","description":"No form is deleted: each form in the folder moves to the default folder and keeps its pin. The default folder itself can't be deleted.","tags":["Folders"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"folderId","in":"path","required":true,"description":"The folder's ID, or `unfiled` for the default folder.","schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResult"}}}},"400":{"$ref":"#/components/responses/ValidationFailed"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-whatayarn-access":"write"}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key from the Account page: `wy_` and 43 more characters."}},"schemas":{"FormDocument":{"type":"object","properties":{"version":{"type":"number","const":1},"blocks":{"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/FormBlock"}},"logo":{"type":"object","properties":{"url":{"type":"string","maxLength":2048},"artwork":{"type":"string","enum":["tide","chatter","confetti","blocks","sunrise","stars","voice","sunroom","little-ritual","long-table","fieldwork","kindred","after-hours","secret-santa"]}}},"cover":{"type":"object","properties":{"url":{"type":"string","maxLength":2048},"artwork":{"type":"string","enum":["tide","chatter","confetti","blocks","sunrise","stars","voice","sunroom","little-ritual","long-table","fieldwork","kindred","after-hours","secret-santa"]}}},"submitLabel":{"type":"string","minLength":1,"maxLength":40},"terms":{"type":"object","properties":{"url":{"type":"string","maxLength":2048},"label":{"type":"string","minLength":1,"maxLength":80}},"required":["url"]},"description":{"type":"string","maxLength":500},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"headerLinks":{"maxItems":12,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"url":{"type":"string","maxLength":2048}},"required":["id","url"]}},"design":{"type":"object","properties":{"background":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"text":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"accent":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"buttonBackground":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"card":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"cardText":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"font":{"type":"string","enum":["poppins","inter","dmSans","spaceGrotesk","lora","fraunces","plexMono"]},"layout":{"type":"string","enum":["page","card"]},"align":{"type":"string","enum":["left","center"]},"pageWidth":{"type":"string","enum":["narrow","medium","wide"]},"textSize":{"type":"string","enum":["small","medium","large"]},"logoSize":{"type":"string","enum":["small","medium","large"]},"logoShape":{"type":"string","enum":["circle","rounded","square"]},"coverHeight":{"type":"string","enum":["short","medium","tall"]},"inputStyle":{"type":"string","enum":["outline","filled"]},"inputSize":{"type":"string","enum":["small","medium","large"]},"inputWidth":{"type":"string","enum":["fit","full"]},"inputCorners":{"type":"string","enum":["square","rounded","pill"]},"spacing":{"type":"string","enum":["compact","comfortable","spacious"]},"buttonSize":{"type":"string","enum":["small","medium","large"]},"buttonWidth":{"type":"string","enum":["fit","full"]},"buttonAlign":{"type":"string","enum":["left","center","right"]},"buttonCorners":{"type":"string","enum":["square","rounded","pill"]}}},"results":{"type":"object","properties":{"audience":{"type":"string","enum":["responded","anyone","afterClosing"]},"minResponses":{"type":"integer","minimum":1,"maximum":1000},"questionIds":{"maxItems":1000,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"showAfterSubmit":{"type":"boolean"},"showLabel":{"type":"string","maxLength":40},"seeLabel":{"type":"string","maxLength":40}},"required":["audience","minResponses","questionIds","showAfterSubmit"]},"kind":{"type":"string","enum":["poll","quiz","board"]},"allowCopy":{"type":"boolean"},"quiz":{"type":"object","properties":{"showAnswers":{"type":"boolean"},"oneAtATime":{"type":"boolean"}},"required":["showAnswers"]},"board":{"type":"object","properties":{"subscribe":{"default":{"enabled":false,"fields":[]},"type":"object","properties":{"enabled":{"type":"boolean"},"fields":{"maxItems":6,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":40},"kind":{"type":"string","enum":["short","long","choice"]},"onBoard":{"type":"boolean"},"onForm":{"type":"boolean"},"options":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}},"required":["id","label","kind","onBoard","onForm"]}}},"required":["enabled","fields"]},"statuses":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"name":{"type":"string","minLength":1,"maxLength":40},"color":{"type":"string","enum":["grey","blue","amber","green","plum"]},"emoji":{"type":"string","minLength":1,"maxLength":16},"dot":{"type":"boolean"},"collapsed":{"type":"boolean"},"visitorsPost":{"type":"boolean"}},"required":["id","name","color"]}},"fields":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":40},"kind":{"type":"string","enum":["short","long","choice","email"]},"onBoard":{"type":"boolean"},"onForm":{"type":"boolean"},"options":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}},"required":["id","label","kind","onBoard","onForm"]}},"approval":{"type":"boolean"},"type":{"default":"feedback","type":"string","enum":["feedback","roadmap"]},"layout":{"default":"list","type":"string","enum":["list","roadmap"]},"listStyle":{"type":"string","enum":["roomy","compact"]},"posting":{"default":"anyone","type":"string","enum":["anyone","owner"]},"voting":{"default":true,"type":"boolean"},"sort":{"default":"top","type":"string","enum":["top","trending","new","status","manual"]},"comments":{"default":false,"type":"boolean"},"landingStatus":{"type":"string","minLength":1,"maxLength":40},"commentReview":{"default":"first","type":"string","enum":["first","all","none"]},"teamName":{"type":"string","maxLength":40},"teamAvatar":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"addLabel":{"type":"string","maxLength":40}},"required":["statuses","fields","approval"]},"parked":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"after":{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"null"}]},"block":{"$ref":"#/components/schemas/FormBlock"}},"required":["after","block"]}},"rules":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"when":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"kind":{"type":"string","const":"group"},"match":{"type":"string","enum":["all","any"]},"items":{"maxItems":50,"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"kind":{"type":"string","const":"condition"},"sourceId":{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","enum":["@device","@browser","@os","@openedAs","@referrer","@utmSource","@utmMedium","@utmCampaign","@utmTerm","@utmContent","@language"]}]},"operator":{"type":"string","enum":["is","isNot","contains","notContains","startsWith","endsWith","gt","gte","lt","lte","includesAny","includesAll","includesNone","answered","empty"]},"value":{"type":"string","maxLength":200},"optionIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}}},"required":["id","kind"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"kind":{"type":"string","const":"group"},"match":{"type":"string","enum":["all","any"]},"items":{"maxItems":50,"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"kind":{"type":"string","const":"condition"},"sourceId":{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","enum":["@device","@browser","@os","@openedAs","@referrer","@utmSource","@utmMedium","@utmCampaign","@utmTerm","@utmContent","@language"]}]},"operator":{"type":"string","enum":["is","isNot","contains","notContains","startsWith","endsWith","gt","gte","lt","lte","includesAny","includesAll","includesNone","answered","empty"]},"value":{"type":"string","maxLength":200},"optionIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}}},"required":["id","kind"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"kind":{"type":"string","const":"group"},"match":{"type":"string","enum":["all","any"]},"items":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"kind":{"type":"string","const":"condition"},"sourceId":{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","enum":["@device","@browser","@os","@openedAs","@referrer","@utmSource","@utmMedium","@utmCampaign","@utmTerm","@utmContent","@language"]}]},"operator":{"type":"string","enum":["is","isNot","contains","notContains","startsWith","endsWith","gt","gte","lt","lte","includesAny","includesAll","includesNone","answered","empty"]},"value":{"type":"string","maxLength":200},"optionIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}}},"required":["id","kind"]}}},"required":["id","kind","match","items"]}]}}},"required":["id","kind","match","items"]}]}}},"required":["id","kind","match","items"]}},"required":["id","when"]}},"calculatedFields":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"name":{"type":"string","maxLength":60},"valueType":{"type":"string","enum":["number","text","boolean"]},"answerKey":{"type":"string","enum":["score","total"]},"initial":{"type":"string","maxLength":1000},"rows":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"operation":{"type":"string","enum":["add","subtract","append"]},"value":{"type":"object","properties":{"text":{"type":"string","maxLength":1000},"references":{"$ref":"#/components/schemas/FormAnswerReferences"}},"required":["text"]}},"required":["id","operation","value"]}},"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"formula":{"type":"object","properties":{"text":{"type":"string","maxLength":1000},"references":{"$ref":"#/components/schemas/FormAnswerReferences"}},"required":["text"]},"cases":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"value":{"type":"object","properties":{"text":{"type":"string","maxLength":1000},"references":{"$ref":"#/components/schemas/FormAnswerReferences"}},"required":["text"]}},"required":["id","value"]}}},"required":["id","name","valueType","initial"]}},"firstPageLogic":{"type":"object","properties":{"after":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"rules"},"branches":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"to":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","const":"@default"}]},{"type":"string","const":"@next"}]}},"required":["id"]}},"otherwise":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","const":"@default"}]},{"type":"string","const":"@next"}]}},"required":["kind","branches"]},{"type":"object","properties":{"kind":{"type":"string","const":"answer"},"questionId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"routes":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"optionId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"to":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","const":"@default"}]},{"type":"string","const":"@next"}]}},"required":["optionId","to"]}},"otherwise":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","const":"@default"}]},{"type":"string","const":"@next"}]}},"required":["kind","routes"]}]},"blockCompletion":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]}}},"entryLogic":{"type":"object","properties":{"routes":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"url":{"type":"string","maxLength":500},"to":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["id"]}}},"required":["routes"]},"redirect":{"type":"object","properties":{"routes":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"url":{"type":"string","maxLength":500}},"required":["id"]}},"otherwise":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"stay"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"url"},"url":{"type":"string","maxLength":500}},"required":["kind","url"]}]},"timing":{"type":"string","const":"immediate"}},"required":["routes"]}},"required":["version","blocks"],"description":"A form's content: the stored document, as `GET /forms/{id}` returns it. Every block, option, rule and calculated field has an `id`."},"FormDocumentInput":{"type":"object","properties":{"version":{"type":"number","const":1},"blocks":{"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/FormBlockInput"}},"logo":{"type":"object","properties":{"url":{"type":"string","maxLength":2048},"artwork":{"type":"string","enum":["tide","chatter","confetti","blocks","sunrise","stars","voice","sunroom","little-ritual","long-table","fieldwork","kindred","after-hours","secret-santa"]}}},"cover":{"type":"object","properties":{"url":{"type":"string","maxLength":2048},"artwork":{"type":"string","enum":["tide","chatter","confetti","blocks","sunrise","stars","voice","sunroom","little-ritual","long-table","fieldwork","kindred","after-hours","secret-santa"]}}},"submitLabel":{"type":"string","minLength":1,"maxLength":40},"terms":{"type":"object","properties":{"url":{"type":"string","maxLength":2048},"label":{"type":"string","minLength":1,"maxLength":80}},"required":["url"]},"description":{"type":"string","maxLength":500},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"headerLinks":{"maxItems":12,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"url":{"type":"string","maxLength":2048}},"required":["url"]}},"design":{"type":"object","properties":{"background":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"text":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"accent":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"buttonBackground":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"card":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"cardText":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"font":{"type":"string","enum":["poppins","inter","dmSans","spaceGrotesk","lora","fraunces","plexMono"]},"layout":{"type":"string","enum":["page","card"]},"align":{"type":"string","enum":["left","center"]},"pageWidth":{"type":"string","enum":["narrow","medium","wide"]},"textSize":{"type":"string","enum":["small","medium","large"]},"logoSize":{"type":"string","enum":["small","medium","large"]},"logoShape":{"type":"string","enum":["circle","rounded","square"]},"coverHeight":{"type":"string","enum":["short","medium","tall"]},"inputStyle":{"type":"string","enum":["outline","filled"]},"inputSize":{"type":"string","enum":["small","medium","large"]},"inputWidth":{"type":"string","enum":["fit","full"]},"inputCorners":{"type":"string","enum":["square","rounded","pill"]},"spacing":{"type":"string","enum":["compact","comfortable","spacious"]},"buttonSize":{"type":"string","enum":["small","medium","large"]},"buttonWidth":{"type":"string","enum":["fit","full"]},"buttonAlign":{"type":"string","enum":["left","center","right"]},"buttonCorners":{"type":"string","enum":["square","rounded","pill"]}}},"results":{"type":"object","properties":{"audience":{"type":"string","enum":["responded","anyone","afterClosing"]},"minResponses":{"type":"integer","minimum":1,"maximum":1000},"questionIds":{"maxItems":1000,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"showAfterSubmit":{"type":"boolean"},"showLabel":{"type":"string","maxLength":40},"seeLabel":{"type":"string","maxLength":40}},"required":["audience","minResponses","questionIds","showAfterSubmit"]},"kind":{"type":"string","enum":["poll","quiz","board"]},"allowCopy":{"type":"boolean"},"quiz":{"type":"object","properties":{"showAnswers":{"type":"boolean"},"oneAtATime":{"type":"boolean"}},"required":["showAnswers"]},"board":{"type":"object","properties":{"subscribe":{"default":{"enabled":false,"fields":[]},"type":"object","properties":{"enabled":{"type":"boolean"},"fields":{"maxItems":6,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":40},"kind":{"type":"string","enum":["short","long","choice"]},"onBoard":{"type":"boolean"},"onForm":{"type":"boolean"},"options":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}},"required":["id","label","kind","onBoard","onForm"]}}},"required":["enabled","fields"]},"statuses":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"name":{"type":"string","minLength":1,"maxLength":40},"color":{"type":"string","enum":["grey","blue","amber","green","plum"]},"emoji":{"type":"string","minLength":1,"maxLength":16},"dot":{"type":"boolean"},"collapsed":{"type":"boolean"},"visitorsPost":{"type":"boolean"}},"required":["id","name","color"]}},"fields":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":40},"kind":{"type":"string","enum":["short","long","choice","email"]},"onBoard":{"type":"boolean"},"onForm":{"type":"boolean"},"options":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}},"required":["id","label","kind","onBoard","onForm"]}},"approval":{"type":"boolean"},"type":{"default":"feedback","type":"string","enum":["feedback","roadmap"]},"layout":{"default":"list","type":"string","enum":["list","roadmap"]},"listStyle":{"type":"string","enum":["roomy","compact"]},"posting":{"default":"anyone","type":"string","enum":["anyone","owner"]},"voting":{"default":true,"type":"boolean"},"sort":{"default":"top","type":"string","enum":["top","trending","new","status","manual"]},"comments":{"default":false,"type":"boolean"},"landingStatus":{"type":"string","minLength":1,"maxLength":40},"commentReview":{"default":"first","type":"string","enum":["first","all","none"]},"teamName":{"type":"string","maxLength":40},"teamAvatar":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"addLabel":{"type":"string","maxLength":40}},"required":["statuses","fields","approval"]},"parked":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"after":{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"null"}]},"block":{"$ref":"#/components/schemas/FormBlockInput"}},"required":["after","block"]}},"rules":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"when":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"kind":{"type":"string","const":"group"},"match":{"type":"string","enum":["all","any"]},"items":{"maxItems":50,"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"kind":{"type":"string","const":"condition"},"sourceId":{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","enum":["@device","@browser","@os","@openedAs","@referrer","@utmSource","@utmMedium","@utmCampaign","@utmTerm","@utmContent","@language"]}]},"operator":{"type":"string","enum":["is","isNot","contains","notContains","startsWith","endsWith","gt","gte","lt","lte","includesAny","includesAll","includesNone","answered","empty"]},"value":{"type":"string","maxLength":200},"optionIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}}},"required":["kind"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"kind":{"type":"string","const":"group"},"match":{"type":"string","enum":["all","any"]},"items":{"maxItems":50,"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"kind":{"type":"string","const":"condition"},"sourceId":{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","enum":["@device","@browser","@os","@openedAs","@referrer","@utmSource","@utmMedium","@utmCampaign","@utmTerm","@utmContent","@language"]}]},"operator":{"type":"string","enum":["is","isNot","contains","notContains","startsWith","endsWith","gt","gte","lt","lte","includesAny","includesAll","includesNone","answered","empty"]},"value":{"type":"string","maxLength":200},"optionIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}}},"required":["kind"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"kind":{"type":"string","const":"group"},"match":{"type":"string","enum":["all","any"]},"items":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"kind":{"type":"string","const":"condition"},"sourceId":{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","enum":["@device","@browser","@os","@openedAs","@referrer","@utmSource","@utmMedium","@utmCampaign","@utmTerm","@utmContent","@language"]}]},"operator":{"type":"string","enum":["is","isNot","contains","notContains","startsWith","endsWith","gt","gte","lt","lte","includesAny","includesAll","includesNone","answered","empty"]},"value":{"type":"string","maxLength":200},"optionIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}}},"required":["kind"]}}},"required":["kind","match","items"]}]}}},"required":["kind","match","items"]}]}}},"required":["kind","match","items"]}},"required":["when"]}},"calculatedFields":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"name":{"type":"string","maxLength":60},"valueType":{"type":"string","enum":["number","text","boolean"]},"answerKey":{"type":"string","enum":["score","total"]},"initial":{"type":"string","maxLength":1000},"rows":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"operation":{"type":"string","enum":["add","subtract","append"]},"value":{"type":"object","properties":{"text":{"type":"string","maxLength":1000},"references":{"$ref":"#/components/schemas/FormAnswerReferences"}},"required":["text"]}},"required":["operation","value"]}},"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"formula":{"type":"object","properties":{"text":{"type":"string","maxLength":1000},"references":{"$ref":"#/components/schemas/FormAnswerReferences"}},"required":["text"]},"cases":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"value":{"type":"object","properties":{"text":{"type":"string","maxLength":1000},"references":{"$ref":"#/components/schemas/FormAnswerReferences"}},"required":["text"]}},"required":["value"]}}},"required":["name","valueType","initial"]}},"firstPageLogic":{"type":"object","properties":{"after":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"rules"},"branches":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"to":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","const":"@default"}]},{"type":"string","const":"@next"}]}},"required":[]}},"otherwise":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","const":"@default"}]},{"type":"string","const":"@next"}]}},"required":["kind","branches"]},{"type":"object","properties":{"kind":{"type":"string","const":"answer"},"questionId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"routes":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"optionId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"to":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","const":"@default"}]},{"type":"string","const":"@next"}]}},"required":["optionId","to"]}},"otherwise":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","const":"@default"}]},{"type":"string","const":"@next"}]}},"required":["kind","routes"]}]},"blockCompletion":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]}}},"entryLogic":{"type":"object","properties":{"routes":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"url":{"type":"string","maxLength":500},"to":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":[]}}},"required":["routes"]},"redirect":{"type":"object","properties":{"routes":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"url":{"type":"string","maxLength":500}},"required":[]}},"otherwise":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"stay"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"url"},"url":{"type":"string","maxLength":500}},"required":["kind","url"]}]},"timing":{"type":"string","const":"immediate"}},"required":["routes"]}},"required":["blocks"],"description":"A form's content as a request sends it. IDs belong to the server: block, option, rule and calculated field IDs may be left out, and any sent are local names the server replaces, rewriting every reference. On `PATCH /forms/{id}`, an ID the saved draft already has is kept. `version` defaults to 1."},"FormBlock":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","const":"text"},"text":{"type":"string"},"marker":{"type":"string","enum":["bullet","numbered","quote","code"]},"indent":{"type":"integer","minimum":1,"maximum":2},"start":{"type":"integer","minimum":0,"maximum":99999},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]}},"required":["id","type","text"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"multiple":{"type":"boolean","const":true},"type":{"type":"string","const":"shortAnswer"},"defaultAnswer":{"type":"string","maxLength":1000},"minCharacters":{"type":"integer","minimum":1,"maximum":1000},"maxCharacters":{"type":"integer","minimum":1,"maximum":1000}},"required":["id","label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"multiple":{"type":"boolean","const":true},"type":{"type":"string","const":"longAnswer"},"defaultAnswer":{"type":"string","maxLength":5000},"minCharacters":{"type":"integer","minimum":1,"maximum":5000},"maxCharacters":{"type":"integer","minimum":1,"maximum":5000}},"required":["id","label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"multiple":{"type":"boolean","const":true},"type":{"type":"string","const":"email"},"defaultAnswer":{"type":"string","maxLength":1000}},"required":["id","label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"multiple":{"type":"boolean","const":true},"type":{"type":"string","const":"number"},"defaultAnswer":{"type":"string","maxLength":1000},"minValue":{"type":"number"},"maxValue":{"type":"number"}},"required":["id","label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"multiple":{"type":"boolean","const":true},"type":{"type":"string","const":"phone"},"defaultAnswer":{"type":"string","maxLength":1000}},"required":["id","label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"multiple":{"type":"boolean","const":true},"type":{"type":"string","const":"link"},"defaultAnswer":{"type":"string","maxLength":1000}},"required":["id","label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"type":{"type":"string","const":"voice"},"maxSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minSeconds":{"type":"integer","minimum":1,"maximum":60},"allowUpload":{"type":"boolean"},"allowTyped":{"type":"boolean"}},"required":["id","label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"type":{"type":"string","const":"choice"},"options":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"correct":{"type":"boolean","const":true},"image":{"type":"object","properties":{"url":{"type":"string","maxLength":2048}}}},"required":["id","label"]}},"defaultAnswer":{"type":"string","maxLength":5000},"multiple":{"type":"boolean","const":true},"display":{"type":"string","const":"dropdown"},"layout":{"type":"string","const":"cards"},"allowAdded":{"type":"boolean","const":true},"minChoices":{"type":"integer","minimum":1,"maximum":100},"maxChoices":{"type":"integer","minimum":1,"maximum":100},"points":{"type":"integer","minimum":0,"maximum":100},"partialCredit":{"type":"boolean","const":true}},"required":["id","label","required","type","options"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"multiple":{"type":"boolean","const":true},"type":{"type":"string","const":"date"},"includeTime":{"type":"boolean","const":true},"range":{"type":"boolean","const":true},"defaultAnswer":{"type":"string","maxLength":32},"minDate":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},"maxDate":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"}},"required":["id","label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"multiple":{"type":"boolean","const":true},"type":{"type":"string","const":"time"},"defaultAnswer":{"type":"string","maxLength":5},"minTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"maxTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["id","label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"type":{"type":"string","const":"rating"},"defaultAnswer":{"type":"string","maxLength":2},"stars":{"type":"integer","minimum":3,"maximum":10}},"required":["id","label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"type":{"type":"string","const":"linearScale"},"defaultAnswer":{"type":"string","maxLength":2},"start":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},"end":{"type":"integer","minimum":2,"maximum":10},"startLabel":{"type":"string","maxLength":40},"endLabel":{"type":"string","maxLength":40}},"required":["id","label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"type":{"type":"string","const":"ranking"},"options":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200}},"required":["id","label"]}},"defaultAnswer":{"type":"string","maxLength":4020},"randomize":{"type":"boolean","const":true}},"required":["id","label","required","type","options"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"type":{"type":"string","const":"matrix"},"rows":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200}},"required":["id","label"]}},"columns":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200}},"required":["id","label"]}},"multiple":{"type":"boolean","const":true},"randomize":{"type":"boolean","const":true}},"required":["id","label","required","type","rows","columns"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"type":{"type":"string","const":"signature"},"signatureLabel":{"type":"string","maxLength":100}},"required":["id","label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","const":"heading"},"level":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3}]},"text":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]}},"required":["id","type","level","text"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","const":"divider"},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]}},"required":["id","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","const":"image"},"url":{"type":"string","maxLength":2048},"alt":{"type":"string","maxLength":200},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]}},"required":["id","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","const":"download"},"url":{"type":"string","maxLength":2048},"name":{"type":"string","minLength":1,"maxLength":255},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]}},"required":["id","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","const":"socialLinks"},"links":{"maxItems":12,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"url":{"type":"string","maxLength":2048}},"required":["id","url"]}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]}},"required":["id","type","links"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"type":{"type":"string","const":"fileUpload"},"multiple":{"type":"boolean","const":true},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxFileSizeMb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fileTypes":{"type":"string","enum":["images","documents","audio","video"]}},"required":["id","label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","const":"headerEnd"}},"required":["id","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","const":"pageBreak"},"buttonLabel":{"type":"string","minLength":1,"maxLength":40},"backLabel":{"type":"string","minLength":1,"maxLength":40},"hideBack":{"type":"boolean","const":true},"pageLogic":{"type":"object","properties":{"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"after":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"rules"},"branches":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"to":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","const":"@default"}]},{"type":"string","const":"@next"}]}},"required":["id"]}},"otherwise":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","const":"@default"}]},{"type":"string","const":"@next"}]}},"required":["kind","branches"]},{"type":"object","properties":{"kind":{"type":"string","const":"answer"},"questionId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"routes":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"optionId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"to":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","const":"@default"}]},{"type":"string","const":"@next"}]}},"required":["optionId","to"]}},"otherwise":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","const":"@default"}]},{"type":"string","const":"@next"}]}},"required":["kind","routes"]}]},"blockCompletion":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]}}}},"required":["id","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","const":"thankYouPage"},"redirect":{"type":"object","properties":{"routes":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"url":{"type":"string","maxLength":500}},"required":["id"]}},"otherwise":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"stay"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"url"},"url":{"type":"string","maxLength":500}},"required":["kind","url"]}]},"timing":{"type":"string","const":"immediate"}},"required":["routes"]}},"required":["id","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","const":"board"}},"required":["id","type"]}],"description":"One block of a form, chosen by `type`: a question, text, a heading, an image, a page break, a thank you page and so on."},"FormBlockInput":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","const":"text"},"text":{"type":"string"},"marker":{"type":"string","enum":["bullet","numbered","quote","code"]},"indent":{"type":"integer","minimum":1,"maximum":2},"start":{"type":"integer","minimum":0,"maximum":99999},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]}},"required":["type","text"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"multiple":{"type":"boolean","const":true},"type":{"type":"string","const":"shortAnswer"},"defaultAnswer":{"type":"string","maxLength":1000},"minCharacters":{"type":"integer","minimum":1,"maximum":1000},"maxCharacters":{"type":"integer","minimum":1,"maximum":1000}},"required":["label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"multiple":{"type":"boolean","const":true},"type":{"type":"string","const":"longAnswer"},"defaultAnswer":{"type":"string","maxLength":5000},"minCharacters":{"type":"integer","minimum":1,"maximum":5000},"maxCharacters":{"type":"integer","minimum":1,"maximum":5000}},"required":["label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"multiple":{"type":"boolean","const":true},"type":{"type":"string","const":"email"},"defaultAnswer":{"type":"string","maxLength":1000}},"required":["label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"multiple":{"type":"boolean","const":true},"type":{"type":"string","const":"number"},"defaultAnswer":{"type":"string","maxLength":1000},"minValue":{"type":"number"},"maxValue":{"type":"number"}},"required":["label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"multiple":{"type":"boolean","const":true},"type":{"type":"string","const":"phone"},"defaultAnswer":{"type":"string","maxLength":1000}},"required":["label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"multiple":{"type":"boolean","const":true},"type":{"type":"string","const":"link"},"defaultAnswer":{"type":"string","maxLength":1000}},"required":["label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"type":{"type":"string","const":"voice"},"maxSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minSeconds":{"type":"integer","minimum":1,"maximum":60},"allowUpload":{"type":"boolean"},"allowTyped":{"type":"boolean"}},"required":["label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"type":{"type":"string","const":"choice"},"options":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"correct":{"type":"boolean","const":true},"image":{"type":"object","properties":{"url":{"type":"string","maxLength":2048}}}},"required":["label"]}},"defaultAnswer":{"type":"string","maxLength":5000},"multiple":{"type":"boolean","const":true},"display":{"type":"string","const":"dropdown"},"layout":{"type":"string","const":"cards"},"allowAdded":{"type":"boolean","const":true},"minChoices":{"type":"integer","minimum":1,"maximum":100},"maxChoices":{"type":"integer","minimum":1,"maximum":100},"points":{"type":"integer","minimum":0,"maximum":100},"partialCredit":{"type":"boolean","const":true}},"required":["label","required","type","options"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"multiple":{"type":"boolean","const":true},"type":{"type":"string","const":"date"},"includeTime":{"type":"boolean","const":true},"range":{"type":"boolean","const":true},"defaultAnswer":{"type":"string","maxLength":32},"minDate":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},"maxDate":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"}},"required":["label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"multiple":{"type":"boolean","const":true},"type":{"type":"string","const":"time"},"defaultAnswer":{"type":"string","maxLength":5},"minTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"maxTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"type":{"type":"string","const":"rating"},"defaultAnswer":{"type":"string","maxLength":2},"stars":{"type":"integer","minimum":3,"maximum":10}},"required":["label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"type":{"type":"string","const":"linearScale"},"defaultAnswer":{"type":"string","maxLength":2},"start":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},"end":{"type":"integer","minimum":2,"maximum":10},"startLabel":{"type":"string","maxLength":40},"endLabel":{"type":"string","maxLength":40}},"required":["label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"type":{"type":"string","const":"ranking"},"options":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200}},"required":["label"]}},"defaultAnswer":{"type":"string","maxLength":4020},"randomize":{"type":"boolean","const":true}},"required":["label","required","type","options"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"type":{"type":"string","const":"matrix"},"rows":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200}},"required":["label"]}},"columns":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200}},"required":["label"]}},"multiple":{"type":"boolean","const":true},"randomize":{"type":"boolean","const":true}},"required":["label","required","type","rows","columns"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"type":{"type":"string","const":"signature"},"signatureLabel":{"type":"string","maxLength":100}},"required":["label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","const":"heading"},"level":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3}]},"text":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]}},"required":["type","level","text"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","const":"divider"},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]}},"required":["type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","const":"image"},"url":{"type":"string","maxLength":2048},"alt":{"type":"string","maxLength":200},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]}},"required":["type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","const":"download"},"url":{"type":"string","maxLength":2048},"name":{"type":"string","minLength":1,"maxLength":255},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]}},"required":["type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","const":"socialLinks"},"links":{"maxItems":12,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"url":{"type":"string","maxLength":2048}},"required":["url"]}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]}},"required":["type","links"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"label":{"type":"string","maxLength":200},"unlabelled":{"type":"boolean","const":true},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"descriptionReferences":{"$ref":"#/components/schemas/FormAnswerReferences"},"descriptionFormatting":{"$ref":"#/components/schemas/FormTextFormatting"},"name":{"type":"string","maxLength":200},"formatting":{"$ref":"#/components/schemas/FormTextFormatting"},"references":{"$ref":"#/components/schemas/FormAnswerReferences"},"prefill":{"type":"object","properties":{"key":{"type":"string"},"mode":{"type":"string","enum":["locked","hidden"]}}},"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"requiredWhen":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]},"type":{"type":"string","const":"fileUpload"},"multiple":{"type":"boolean","const":true},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxFileSizeMb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fileTypes":{"type":"string","enum":["images","documents","audio","video"]}},"required":["label","required","type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","const":"headerEnd"}},"required":["type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","const":"pageBreak"},"buttonLabel":{"type":"string","minLength":1,"maxLength":40},"backLabel":{"type":"string","minLength":1,"maxLength":40},"hideBack":{"type":"boolean","const":true},"pageLogic":{"type":"object","properties":{"visibility":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"mode":{"type":"string","enum":["show","hide"]}},"required":["ruleId","mode"]},"after":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"rules"},"branches":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"to":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","const":"@default"}]},{"type":"string","const":"@next"}]}},"required":[]}},"otherwise":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","const":"@default"}]},{"type":"string","const":"@next"}]}},"required":["kind","branches"]},{"type":"object","properties":{"kind":{"type":"string","const":"answer"},"questionId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"routes":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"optionId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"to":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","const":"@default"}]},{"type":"string","const":"@next"}]}},"required":["optionId","to"]}},"otherwise":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","const":"@default"}]},{"type":"string","const":"@next"}]}},"required":["kind","routes"]}]},"blockCompletion":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["ruleId"]}}}},"required":["type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","const":"thankYouPage"},"redirect":{"type":"object","properties":{"routes":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"ruleId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"url":{"type":"string","maxLength":500}},"required":[]}},"otherwise":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"stay"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"url"},"url":{"type":"string","maxLength":500}},"required":["kind","url"]}]},"timing":{"type":"string","const":"immediate"}},"required":["routes"]}},"required":["type"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},"type":{"type":"string","const":"board"}},"required":["type"]}],"description":"One block of a form, chosen by `type`: a question, text, a heading, an image, a page break, a thank you page and so on. In a request, its `id` and the IDs inside it may be left out."},"FormTextFormatting":{"description":"Styles for ranges of the text beside it, by character offset: `from` is inclusive and `to` exclusive.","maxItems":5000,"type":"array","items":{"type":"object","properties":{"bold":{"type":"boolean"},"italic":{"type":"boolean"},"underline":{"type":"boolean"},"strike":{"type":"boolean"},"code":{"type":"boolean"},"color":{"type":"string","enum":["default","gray","red","orange","green","blue"]},"badge":{"type":"boolean","const":true},"answer":{"type":"boolean","const":true},"link":{"type":"string","maxLength":2048},"from":{"type":"integer","minimum":0,"maximum":9007199254740991},"to":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["from","to"]}},"FormAnswerReferences":{"description":"Answers and values piped into the text beside it, by character offset.","maxItems":100,"type":"array","items":{"type":"object","properties":{"from":{"type":"integer","minimum":0,"maximum":9007199254740991},"to":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"questionId":{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"string","enum":["@device","@browser","@os","@openedAs","@referrer","@utmSource","@utmMedium","@utmCampaign","@utmTerm","@utmContent","@language"]}]},"display":{"type":"string","const":"badge"}},"required":["from","to","questionId"]}},"Form":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["form","poll","quiz","board"]},"title":{"type":"string"},"status":{"type":"string","enum":["live","paused","scheduled","closed","unpublishedChanges","draft","incomplete"]},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"url":{"type":"string"},"editUrl":{"type":"string"},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}]},"pinned":{"type":"boolean"},"archived":{"type":"boolean"},"responseCount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"publishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"settings":{"type":"object","properties":{"acceptingResponses":{"type":"boolean"},"showBranding":{"type":"boolean"},"showProgressBar":{"type":"boolean"},"showSubmitAnother":{"type":"boolean"},"collectPartialSubmissions":{"type":"boolean"},"notifyNewResponses":{"type":"boolean"},"saveProgress":{"type":"boolean"},"responseRetentionDays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"opensAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"closesAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"responseLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"oneResponsePerBrowser":{"type":"boolean"},"searchIndexing":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"share":{"type":"object","properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["title","description"],"additionalProperties":false}},"required":["acceptingResponses","showBranding","showProgressBar","showSubmitAnother","collectPartialSubmissions","notifyNewResponses","saveProgress","responseRetentionDays","opensAt","closesAt","responseLimit","oneResponsePerBrowser","searchIndexing","slug","share"],"additionalProperties":false},"document":{"$ref":"#/components/schemas/FormDocument"}},"required":["id","kind","title","status","revision","url","editUrl","folderId","pinned","archived","responseCount","createdAt","updatedAt","publishedAt","settings","document"],"additionalProperties":false},"FormSummary":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["form","poll","quiz","board"]},"title":{"type":"string"},"status":{"type":"string","enum":["live","paused","scheduled","closed","unpublishedChanges","draft","incomplete"]},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"url":{"type":"string"},"editUrl":{"type":"string"},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}]},"pinned":{"type":"boolean"},"archived":{"type":"boolean"},"responseCount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"publishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]}},"required":["id","kind","title","status","revision","url","editUrl","folderId","pinned","archived","responseCount","createdAt","updatedAt","publishedAt"],"additionalProperties":false},"FormQuestion":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"required":{"type":"boolean"},"options":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false}},{"type":"null"}]},"rows":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false}},{"type":"null"}]},"columns":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false}},{"type":"null"}]}},"required":["id","type","label","name","required","options","rows","columns"],"additionalProperties":false},"Response":{"type":"object","properties":{"id":{"type":"string"},"formId":{"type":"string"},"status":{"type":"string","enum":["completed","partial"]},"submittedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"startedAt":{"type":"string"},"responseUrl":{"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"type":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"size":{"type":"number"},"mimeType":{"type":"string"},"url":{"type":"string"}},"required":["name","size","mimeType","url"],"additionalProperties":false}},{"type":"object","properties":{"durationMs":{"type":"number"},"url":{"type":"string"}},"required":["durationMs","url"],"additionalProperties":false},{"type":"null"}]}},"required":["key","label","type","value"],"additionalProperties":false}}},"required":["id","formId","status","submittedAt","startedAt","responseUrl","fields"],"additionalProperties":false},"AnswerSummary":{"type":"object","properties":{"formId":{"type":"string"},"responseCount":{"type":"number"},"questions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"answered":{"type":"number"},"total":{"type":"number"},"calculated":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"unavailable":{"type":"number"}},"required":["type","unavailable"],"additionalProperties":false},{"type":"null"}]},"kind":{"type":"string","const":"choice"},"multiple":{"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"count":{"type":"number"},"share":{"type":"number"}},"required":["label","count","share"],"additionalProperties":false}},"addedOptions":{"type":"array","items":{"type":"string"}}},"required":["key","label","answered","total","calculated","kind","multiple","options","addedOptions"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"answered":{"type":"number"},"total":{"type":"number"},"calculated":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"unavailable":{"type":"number"}},"required":["type","unavailable"],"additionalProperties":false},{"type":"null"}]},"kind":{"type":"string","const":"scale"},"rating":{"type":"boolean"},"steps":{"type":"array","items":{"type":"object","properties":{"value":{"type":"number"},"count":{"type":"number"},"share":{"type":"number"}},"required":["value","count","share"],"additionalProperties":false}},"average":{"anyOf":[{"type":"number"},{"type":"null"}]},"median":{"anyOf":[{"type":"number"},{"type":"null"}]},"startLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"endLabel":{"anyOf":[{"type":"string"},{"type":"null"}]},"nps":{"anyOf":[{"type":"object","properties":{"score":{"type":"number"},"promoters":{"type":"number"},"passives":{"type":"number"},"detractors":{"type":"number"}},"required":["score","promoters","passives","detractors"],"additionalProperties":false},{"type":"null"}]},"csat":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["key","label","answered","total","calculated","kind","rating","steps","average","median","startLabel","endLabel","nps","csat"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"answered":{"type":"number"},"total":{"type":"number"},"calculated":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"unavailable":{"type":"number"}},"required":["type","unavailable"],"additionalProperties":false},{"type":"null"}]},"kind":{"type":"string","const":"number"},"min":{"type":"number"},"max":{"type":"number"},"median":{"type":"number"},"average":{"type":"number"},"bins":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"count":{"type":"number"},"share":{"type":"number"}},"required":["label","count","share"],"additionalProperties":false}}},"required":["key","label","answered","total","calculated","kind","min","max","median","average","bins"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"answered":{"type":"number"},"total":{"type":"number"},"calculated":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"unavailable":{"type":"number"}},"required":["type","unavailable"],"additionalProperties":false},{"type":"null"}]},"kind":{"type":"string","const":"date"},"weekdays":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"count":{"type":"number"},"share":{"type":"number"}},"required":["label","count","share"],"additionalProperties":false}},"topDays":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"count":{"type":"number"},"share":{"type":"number"}},"required":["label","count","share"],"additionalProperties":false}},"earliest":{"anyOf":[{"type":"string"},{"type":"null"}]},"latest":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["key","label","answered","total","calculated","kind","weekdays","topDays","earliest","latest"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"answered":{"type":"number"},"total":{"type":"number"},"calculated":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"unavailable":{"type":"number"}},"required":["type","unavailable"],"additionalProperties":false},{"type":"null"}]},"kind":{"type":"string","const":"time"},"hours":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"count":{"type":"number"},"share":{"type":"number"}},"required":["label","count","share"],"additionalProperties":false}},"busiest":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["key","label","answered","total","calculated","kind","hours","busiest"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"answered":{"type":"number"},"total":{"type":"number"},"calculated":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"unavailable":{"type":"number"}},"required":["type","unavailable"],"additionalProperties":false},{"type":"null"}]},"kind":{"type":"string","const":"ranking"},"options":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"averageRank":{"type":"number"},"firstShare":{"type":"number"}},"required":["label","averageRank","firstShare"],"additionalProperties":false}}},"required":["key","label","answered","total","calculated","kind","options"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"answered":{"type":"number"},"total":{"type":"number"},"calculated":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"unavailable":{"type":"number"}},"required":["type","unavailable"],"additionalProperties":false},{"type":"null"}]},"kind":{"type":"string","const":"matrix"},"rows":{"type":"array","items":{"type":"string"}},"columns":{"type":"array","items":{"type":"string"}},"cells":{"type":"array","items":{"type":"array","items":{"type":"object","properties":{"count":{"type":"number"},"share":{"type":"number"}},"required":["count","share"],"additionalProperties":false}}}},"required":["key","label","answered","total","calculated","kind","rows","columns","cells"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"answered":{"type":"number"},"total":{"type":"number"},"calculated":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"unavailable":{"type":"number"}},"required":["type","unavailable"],"additionalProperties":false},{"type":"null"}]},"kind":{"type":"string","const":"text"},"latest":{"type":"array","items":{"type":"object","properties":{"responseId":{"type":"string"},"value":{"type":"string"},"at":{"type":"string"}},"required":["responseId","value","at"],"additionalProperties":false}},"repeated":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"count":{"type":"number"},"share":{"type":"number"}},"required":["label","count","share"],"additionalProperties":false}},"groups":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"count":{"type":"number"},"share":{"type":"number"}},"required":["label","count","share"],"additionalProperties":false}},"averageWords":{"type":"number"}},"required":["key","label","answered","total","calculated","kind","latest","repeated","groups","averageWords"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"answered":{"type":"number"},"total":{"type":"number"},"calculated":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"unavailable":{"type":"number"}},"required":["type","unavailable"],"additionalProperties":false},{"type":"null"}]},"kind":{"type":"string","const":"voice"},"recordings":{"type":"number"},"typed":{"type":"number"},"averageSeconds":{"type":"number"},"latest":{"type":"array","items":{"type":"object","properties":{"responseId":{"type":"string"},"at":{"type":"string"},"durationMs":{"anyOf":[{"type":"number"},{"type":"null"}]},"text":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["responseId","at","durationMs","text"],"additionalProperties":false}}},"required":["key","label","answered","total","calculated","kind","recordings","typed","averageSeconds","latest"],"additionalProperties":false},{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"answered":{"type":"number"},"total":{"type":"number"},"calculated":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"unavailable":{"type":"number"}},"required":["type","unavailable"],"additionalProperties":false},{"type":"null"}]},"kind":{"type":"string","const":"file"},"files":{"type":"number"},"types":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"count":{"type":"number"},"share":{"type":"number"}},"required":["label","count","share"],"additionalProperties":false}},"latest":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"at":{"type":"string"}},"required":["name","at"],"additionalProperties":false}}},"required":["key","label","answered","total","calculated","kind","files","types","latest"],"additionalProperties":false}]}},"aiColumns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"values":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"count":{"type":"number"},"share":{"type":"number"}},"required":["label","count","share"],"additionalProperties":false}}},"required":["key","label","values"],"additionalProperties":false}}},"required":["formId","responseCount","questions","aiColumns"],"additionalProperties":false},"BoardPost":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"details":{"type":"string"},"status":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"string"}},"fields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","label","value"],"additionalProperties":false}},"votes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"comments":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"waitingComments":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pending":{"type":"boolean"},"archived":{"type":"boolean"},"pinned":{"type":"boolean"},"author":{"type":"object","properties":{"type":{"type":"string","enum":["team","visitor"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","name","email"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","title","details","status","tags","fields","votes","comments","waitingComments","pending","archived","pinned","author","createdAt"],"additionalProperties":false},"BoardComment":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"parentId":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string","enum":["comment","status","merge","update"]},"body":{"type":"string"},"author":{"type":"object","properties":{"type":{"type":"string","enum":["team","visitor","board"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","name"],"additionalProperties":false},"status":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},{"type":"null"}]},"updateId":{"anyOf":[{"type":"string"},{"type":"null"}]},"pending":{"type":"boolean"},"hidden":{"type":"boolean"},"pinned":{"type":"boolean"},"hearts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","postId","parentId","kind","body","author","status","updateId","pending","hidden","pinned","hearts","createdAt"],"additionalProperties":false},"BoardUpdate":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"body":{"type":"string"},"postIds":{"type":"array","items":{"type":"string"}},"publishedAt":{"type":"string"},"email":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["sending","sent","partial","notEmailed"]},"label":{"type":"string"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["state","label","detail"],"additionalProperties":false},{"type":"null"}]}},"required":["id","title","body","postIds","publishedAt","email"],"additionalProperties":false},"BoardSubscriber":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["confirmed","awaiting","unsubscribed"]},"source":{"type":"string","enum":["button","vote","post","comment"]},"fields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","label","value"],"additionalProperties":false}},"posts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"upvotes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"comments":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"confirmedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"unsubscribedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","email","status","source","fields","posts","upvotes","comments","createdAt","confirmedAt","unsubscribedAt"],"additionalProperties":false},"JourneySummary":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["completed","partial","answering"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"referrer":{"anyOf":[{"type":"string"},{"type":"null"}]},"campaign":{"anyOf":[{"type":"string"},{"type":"null"}]},"visitor":{"anyOf":[{"type":"object","properties":{"browser":{"anyOf":[{"type":"string"},{"type":"null"}]},"os":{"anyOf":[{"type":"string"},{"type":"null"}]},"device":{"anyOf":[{"type":"string"},{"type":"null"}]},"country":{"anyOf":[{"type":"string"},{"type":"null"}]},"region":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"language":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["browser","os","device","country","region","city","language"],"additionalProperties":false},{"type":"null"}]},"pages":{"type":"array","items":{"type":"string","enum":["reached","stopped","unreached"]}},"stoppedOnPage":{"anyOf":[{"type":"number"},{"type":"null"}]},"answered":{"type":"number"},"questions":{"type":"number"},"seconds":{"anyOf":[{"type":"number"},{"type":"null"}]},"at":{"type":"string"}},"required":["id","status","name","email","referrer","campaign","visitor","pages","stoppedOnPage","answered","questions","seconds","at"],"additionalProperties":false},"Journey":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["completed","partial","answering"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"referrer":{"anyOf":[{"type":"string"},{"type":"null"}]},"campaign":{"anyOf":[{"type":"string"},{"type":"null"}]},"visitor":{"anyOf":[{"type":"object","properties":{"browser":{"anyOf":[{"type":"string"},{"type":"null"}]},"os":{"anyOf":[{"type":"string"},{"type":"null"}]},"device":{"anyOf":[{"type":"string"},{"type":"null"}]},"country":{"anyOf":[{"type":"string"},{"type":"null"}]},"region":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"language":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["browser","os","device","country","region","city","language"],"additionalProperties":false},{"type":"null"}]},"pages":{"type":"array","items":{"type":"string","enum":["reached","stopped","unreached"]}},"stoppedOnPage":{"anyOf":[{"type":"number"},{"type":"null"}]},"answered":{"type":"number"},"questions":{"type":"number"},"seconds":{"anyOf":[{"type":"number"},{"type":"null"}]},"at":{"type":"string"},"pageCount":{"type":"number"},"events":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"found"},"at":{"anyOf":[{"type":"string"},{"type":"null"}]},"referrer":{"anyOf":[{"type":"string"},{"type":"null"}]},"campaign":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["kind","at","referrer","campaign"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"opened"},"at":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["kind","at"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"page"},"at":{"anyOf":[{"type":"string"},{"type":"null"}]},"page":{"type":"number"},"title":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["kind","at","page","title"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"answered"},"at":{"anyOf":[{"type":"string"},{"type":"null"}]},"questionId":{"type":"string"},"name":{"type":"string"},"questionType":{"type":"string"},"answer":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["kind","at","questionId","name","questionType","answer"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"changed"},"at":{"anyOf":[{"type":"string"},{"type":"null"}]},"questionId":{"type":"string"},"name":{"type":"string"},"questionType":{"type":"string"},"answer":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["kind","at","questionId","name","questionType","answer"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"returned"},"at":{"anyOf":[{"type":"string"},{"type":"null"}]},"afterSeconds":{"type":"number"}},"required":["kind","at","afterSeconds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"sent"},"at":{"anyOf":[{"type":"string"},{"type":"null"}]},"ending":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["kind","at","ending"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"stopped"},"at":{"anyOf":[{"type":"string"},{"type":"null"}]},"page":{"type":"number"},"question":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"questionType":{"type":"string"}},"required":["name","questionType"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","at","page","question"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"answering"},"at":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["kind","at"],"additionalProperties":false}]}}},"required":["id","status","name","email","referrer","campaign","visitor","pages","stoppedOnPage","answered","questions","seconds","at","pageCount","events"],"additionalProperties":false},"Webhook":{"type":"object","properties":{"id":{"type":"string"},"host":{"type":"string"},"enabled":{"type":"boolean"},"createdAt":{"type":"string"},"deliveries":{"type":"object","properties":{"delivered":{"type":"number"},"waiting":{"type":"number"},"failed":{"type":"number"}},"required":["delivered","waiting","failed"],"additionalProperties":false},"lastAttemptAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastAttemptFailed":{"type":"boolean"}},"required":["id","host","enabled","createdAt","deliveries","lastAttemptAt","lastAttemptFailed"],"additionalProperties":false},"WebhookWithSecret":{"type":"object","properties":{"id":{"type":"string"},"host":{"type":"string"},"enabled":{"type":"boolean"},"createdAt":{"type":"string"},"deliveries":{"type":"object","properties":{"delivered":{"type":"number"},"waiting":{"type":"number"},"failed":{"type":"number"}},"required":["delivered","waiting","failed"],"additionalProperties":false},"lastAttemptAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastAttemptFailed":{"type":"boolean"},"signingSecret":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","host","enabled","createdAt","deliveries","lastAttemptAt","lastAttemptFailed","signingSecret"],"additionalProperties":false},"Delivery":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["pending","processing","delivered","failed"]},"attempts":{"type":"number"},"responseId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"nextAttemptAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastAttemptAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastStatusCode":{"anyOf":[{"type":"number"},{"type":"null"}]},"lastError":{"anyOf":[{"type":"string"},{"type":"null"}]},"deliveredAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","status","attempts","responseId","createdAt","nextAttemptAt","lastAttemptAt","lastStatusCode","lastError","deliveredAt"],"additionalProperties":false},"DeliveryWithEvent":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["pending","processing","delivered","failed"]},"attempts":{"type":"number"},"responseId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"nextAttemptAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastAttemptAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastStatusCode":{"anyOf":[{"type":"number"},{"type":"null"}]},"lastError":{"anyOf":[{"type":"string"},{"type":"null"}]},"deliveredAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"event":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","status","attempts","responseId","createdAt","nextAttemptAt","lastAttemptAt","lastStatusCode","lastError","deliveredAt","event"],"additionalProperties":false},"Folder":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}]},"position":{"type":"number"},"formCount":{"type":"number"},"isDefault":{"type":"boolean"}},"required":["id","name","icon","position","formCount","isDefault"],"additionalProperties":false},"DeleteResult":{"type":"object","properties":{"id":{"type":"string"},"deleted":{"type":"boolean","const":true}},"required":["id","deleted"],"additionalProperties":false},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","read_only_key","plan_required","forbidden","not_found","method_not_allowed","wrong_kind","conflict","validation_failed","body_too_large","rate_limited","internal_error","unavailable"]},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}},"feature":{"type":"string"},"requestId":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}},"responses":{"ValidationFailed":{"description":"400: `validation_failed` when the request fails its schema; `issues` lists each field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"BodyTooLarge":{"description":"413: `body_too_large` when the body is over 2 MB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"401: `unauthorized` when the key is missing, unknown or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"403: `read_only_key` when a Read only key asked for a change; `plan_required` when the account's plan lacks the feature named in `feature`; `forbidden` when any other refusal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"404: `not_found` when the path is unknown, or names something the account doesn't have.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"MethodNotAllowed":{"description":"405: `method_not_allowed` when the path exists for other methods, listed in `Allow`.","headers":{"Allow":{"description":"The methods this path accepts.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"409: `wrong_kind` when the endpoint doesn't serve this kind of form, like posts on a form; `conflict` when a stale `revision`, or a state the request can't apply to.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"429: `rate_limited` when the key is over 120 requests a minute, or its network over 600; see `Retry-After`.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"500: `internal_error` when something unexpected; no detail is returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"503: `unavailable` when the API is switched off, or the rate limit couldn't be checked; try again later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}