{"openapi":"3.1.2","info":{"title":"AwesomeFor.ms API","version":"1.0.0","description":"Manage the forms of an AwesomeFor.ms account and read their responses. Authenticate with an OAuth 2.0 access token (authorization code with PKCE S256) or a personal access token created in the account settings, sent as a Bearer token. Personal tokens carry every scope. Errors are JSON objects with an `error` message; validation errors also list every problem in `errors`. An unknown form or import answers with a `message` instead.\n\nField types: text (one line), textarea (several lines), email, phone, url, number, date, select (dropdown, 5+ choices), radio (2 to 4 exclusive choices), yes_no (a yes or no question, no options; its answer is \"yes\" or \"no\", which a condition on it compares with), checkbox (several choices, or one consent statement), ranking (the options to put in order; its answer lists them from first to last, and a condition with ranked_first compares its first one), file (upload), rating (stars), signature, address (full postal address in one field), likert (matrix of statements x scale), grid (one choice per row among the same columns, set with likert_rows and likert_columns), heading (section title, not a question), hidden (value stored with each response).\nPlan availability: file, time_slot from Essentiel. Every other type is on every plan, Free included.\nIn a quiz, a condition can read the score of the answers on the previous pages: field \"@score\", operator greater_than, less_than or between (from \"value\" to \"value_max\", both included). A page whose fields the conditions all hide is skipped.\nPrefer one page; split into pages of 5 to 8 fields beyond 10 fields. Never write \"(optional)\" in a label: use \"required\". Field names are unique across the whole form."},"servers":[{"url":"https://awesomefor.ms/api/v1"}],"tags":[{"name":"OAuth"},{"name":"Account"},{"name":"Forms"},{"name":"Templates"},{"name":"Webhooks"},{"name":"Imports"}],"security":[{"oauth2":[]},{"personalToken":[]}],"paths":{"/me":{"get":{"operationId":"getAccount","summary":"The connected account, its plan and the features the plan includes.","tags":["Account"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["forms:read"]},{"personalToken":[]}]}},"/forms":{"get":{"operationId":"listForms","summary":"Forms of every workspace of the account, most recently changed first.","tags":["Forms"],"parameters":[{"name":"workspace","in":"query","description":"Id of a workspace, from `/me`: only its forms are listed.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormList"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["forms:read"]},{"personalToken":[]}]},"post":{"operationId":"createForm","summary":"Create a draft form with at least one page.","tags":["Forms"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Any unique string, kept 24 hours: a retry with the same key and body returns the form the first call created, with an `Idempotent-Replayed: true` header, instead of a duplicate.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"At most 255 characters."},"description":{"type":["string","null"]},"pages":{"description":"The pages of the form, in order.","items":{"properties":{"id":{"description":"Existing page id from getForm; omit for a new page. On an existing page, a title or repeat_conditions left out keeps its saved value.","type":"integer"},"title":{"type":"string"},"repeat_conditions":{"description":"Advanced: as returned by getForm. Leave it out to keep it unchanged.","type":"object"},"translations":{"description":"Texts in the additional languages, by language code, then by key: \"title\". A text left out shows in the primary language; an option, row or column keeps its primary text as the stored answer. Leave it out to keep it unchanged.","type":"object"},"fields":{"items":{"properties":{"id":{"description":"Existing field id from getForm. Keep it to update that field and keep its responses; omit it for a new field. On an existing field, any property left out keeps its saved value.","type":"integer"},"type":{"enum":["text","email","number","textarea","select","checkbox","radio","yes_no","ranking","date","file","phone","url","rating","signature","address","likert","grid","time_slot","hidden","heading"],"type":"string"},"label":{"description":"Question shown to respondents. For heading: the section title.","type":"string"},"name":{"description":"Unique snake_case key used in exports and conditions. Generated from the label for a new field when omitted. Avoid renaming it: answers already received stay under the old key.","type":"string"},"required":{"type":"boolean"},"placeholder":{"description":"Example of the expected format, e.g. \"jane@example.com\".","type":"string"},"help_text":{"description":"Short hint shown under the field.","type":"string"},"options":{"description":"select, radio, checkbox, ranking: the choices (required for these types, ignored otherwise). A consent box is a checkbox with one option holding the statement.","items":{"type":"string"},"type":"array"},"option_points":{"description":"select, radio, checkbox, yes_no: points of each choice for a quiz, in the order of options (yes_no: yes, then no). The score of a response is the sum of the points of its answers, counted once the quiz mode is on in the form settings.","items":{"type":"integer"},"type":"array"},"score_ranges":{"description":"number, rating: points by answer, to score a quiz or qualify a lead. The answer earns the points of the first range holding it, both bounds included; a bound left out means no limit.","maxItems":10,"items":{"properties":{"min":{"type":"number"},"max":{"type":"number"},"points":{"type":"integer"}},"type":"object"},"type":"array"},"likert_rows":{"description":"likert, grid: rows (likert: statements to rate).","items":{"type":"string"},"type":"array"},"likert_columns":{"description":"likert, grid: columns (likert: scale labels, e.g. \"Disagree\", \"Neutral\", \"Agree\").","items":{"type":"string"},"type":"array"},"heading_content":{"description":"heading: short paragraph under the title.","type":"string"},"hidden_value":{"description":"hidden: fixed value stored with each response.","type":"string"},"rating_scale":{"description":"rating: number of steps, 3 to 10 (5 by default, 10 for an NPS).","type":"integer"},"rating_low_label":{"type":"string"},"rating_high_label":{"type":"string"},"settings":{"description":"Advanced: the full settings object as returned by getForm. Unknown keys are ignored.","type":"object"},"conditional_logic":{"description":"Advanced: as returned by getForm. Leave it out to keep it unchanged.","type":"object"},"validation_rules":{"description":"Advanced: as returned by getForm. Leave it out to keep it unchanged.","type":"array"},"translations":{"description":"Texts in the additional languages, by language code, then by key: \"label\", \"placeholder\", \"help_text\", \"low_label\", \"high_label\", \"required_message\", \"invalid_message\", and \"options\", \"rows\", \"columns\" as {\"index\": text}. A text left out shows in the primary language; an option, row or column keeps its primary text as the stored answer. Leave it out to keep it unchanged.","type":"object"}},"type":"object","required":["type"]},"type":"array"}},"type":"object","required":["fields"]},"type":"array"},"quiz":{"type":"object","description":"Quiz settings to change, the keys left out keep their value: \"enabled\", \"show_score\" and \"show_answers\" (true or false), \"outcomes\" (at most 10 ranges {\"min\", \"max\", \"label\", \"message\"}; the first range holding the score gives the level of the response, its \"label\", and replaces the confirmation message; a bound left out means no limit)."},"workspace":{"type":"string","description":"Id of the workspace to create the form in, from `/me`. Defaults to the personal workspace."}},"required":["title","pages"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Form"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan quota is exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The import is closed or its counts do not match the source yet, or the idempotency key is in use or was sent with another body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request was refused; `errors` lists every problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["forms:write"]},{"personalToken":[]}]}},"/forms/generate":{"post":{"operationId":"generateForm","description":"The answer comes once the form is written, usually within seconds. Each call counts toward the AI generations of the plan, like in the editor, and the editor limits apply: 5 a minute, and a daily fair use on paid plans. A refused description counts too.","summary":"Create a draft form from a description, written by AI.","tags":["Forms"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Same as for createForm: a retry with the same key neither generates nor counts again.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"What the form is for and the questions to ask, 10 to 2000 characters."},"layout":{"type":"string","description":"One page, several pages, or let the AI choose.","enum":["auto","single","multi"],"default":"auto"},"logic":{"type":"boolean","description":"Let the AI show or hide questions depending on earlier answers.","default":true},"workspace":{"type":"string","description":"Id of the workspace to create the form in, from `/me`. Defaults to the personal workspace."}},"required":["prompt"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Form"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan quota is exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The import is closed or its counts do not match the source yet, or the idempotency key is in use or was sent with another body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request was refused; `errors` lists every problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}]}}}},"503":{"description":"The AI service is busy or did not answer in time: retry in a moment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth2":["forms:write"]},{"personalToken":[]}]}},"/forms/{form}":{"get":{"operationId":"getForm","summary":"A form with its pages and fields.","tags":["Forms"],"parameters":[{"name":"form","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Form"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["forms:read"]},{"personalToken":[]}]},"delete":{"operationId":"deleteForm","description":"Like in the app, the form stays 30 days in the trash, where only the app can restore it, then it is erased for good with its responses and files.","summary":"Move a form to the trash: it goes offline at once.","tags":["Forms"],"parameters":[{"name":"form","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"204":{"description":"No content"},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["forms:write"]},{"personalToken":[]}]},"put":{"operationId":"updateForm","description":"Send back every page and field you keep with its id: anything left out is deleted. On a published form the changes stay pending, and respondents keep the published version, until publishForm or discardFormChanges.","summary":"Replace the pages and fields of a form, and optionally its title and description.","tags":["Forms"],"parameters":[{"name":"form","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"At most 255 characters; kept as is when left out."},"description":{"type":["string","null"],"description":"Kept as is when left out."},"pages":{"description":"The complete list of pages, in order. Pages and fields left out are deleted.","items":{"properties":{"id":{"description":"Existing page id from getForm; omit for a new page. On an existing page, a title or repeat_conditions left out keeps its saved value.","type":"integer"},"title":{"type":"string"},"repeat_conditions":{"description":"Advanced: as returned by getForm. Leave it out to keep it unchanged.","type":"object"},"translations":{"description":"Texts in the additional languages, by language code, then by key: \"title\". A text left out shows in the primary language; an option, row or column keeps its primary text as the stored answer. Leave it out to keep it unchanged.","type":"object"},"fields":{"items":{"properties":{"id":{"description":"Existing field id from getForm. Keep it to update that field and keep its responses; omit it for a new field. On an existing field, any property left out keeps its saved value.","type":"integer"},"type":{"enum":["text","email","number","textarea","select","checkbox","radio","yes_no","ranking","date","file","phone","url","rating","signature","address","likert","grid","time_slot","hidden","heading"],"type":"string"},"label":{"description":"Question shown to respondents. For heading: the section title.","type":"string"},"name":{"description":"Unique snake_case key used in exports and conditions. Generated from the label for a new field when omitted. Avoid renaming it: answers already received stay under the old key.","type":"string"},"required":{"type":"boolean"},"placeholder":{"description":"Example of the expected format, e.g. \"jane@example.com\".","type":"string"},"help_text":{"description":"Short hint shown under the field.","type":"string"},"options":{"description":"select, radio, checkbox, ranking: the choices (required for these types, ignored otherwise). A consent box is a checkbox with one option holding the statement.","items":{"type":"string"},"type":"array"},"option_points":{"description":"select, radio, checkbox, yes_no: points of each choice for a quiz, in the order of options (yes_no: yes, then no). The score of a response is the sum of the points of its answers, counted once the quiz mode is on in the form settings.","items":{"type":"integer"},"type":"array"},"score_ranges":{"description":"number, rating: points by answer, to score a quiz or qualify a lead. The answer earns the points of the first range holding it, both bounds included; a bound left out means no limit.","maxItems":10,"items":{"properties":{"min":{"type":"number"},"max":{"type":"number"},"points":{"type":"integer"}},"type":"object"},"type":"array"},"likert_rows":{"description":"likert, grid: rows (likert: statements to rate).","items":{"type":"string"},"type":"array"},"likert_columns":{"description":"likert, grid: columns (likert: scale labels, e.g. \"Disagree\", \"Neutral\", \"Agree\").","items":{"type":"string"},"type":"array"},"heading_content":{"description":"heading: short paragraph under the title.","type":"string"},"hidden_value":{"description":"hidden: fixed value stored with each response.","type":"string"},"rating_scale":{"description":"rating: number of steps, 3 to 10 (5 by default, 10 for an NPS).","type":"integer"},"rating_low_label":{"type":"string"},"rating_high_label":{"type":"string"},"settings":{"description":"Advanced: the full settings object as returned by getForm. Unknown keys are ignored.","type":"object"},"conditional_logic":{"description":"Advanced: as returned by getForm. Leave it out to keep it unchanged.","type":"object"},"validation_rules":{"description":"Advanced: as returned by getForm. Leave it out to keep it unchanged.","type":"array"},"translations":{"description":"Texts in the additional languages, by language code, then by key: \"label\", \"placeholder\", \"help_text\", \"low_label\", \"high_label\", \"required_message\", \"invalid_message\", and \"options\", \"rows\", \"columns\" as {\"index\": text}. A text left out shows in the primary language; an option, row or column keeps its primary text as the stored answer. Leave it out to keep it unchanged.","type":"object"}},"type":"object","required":["type"]},"type":"array"}},"type":"object","required":["fields"]},"type":"array"},"quiz":{"type":"object","description":"Quiz settings to change, the keys left out keep their value: \"enabled\", \"show_score\" and \"show_answers\" (true or false), \"outcomes\" (at most 10 ranges {\"min\", \"max\", \"label\", \"message\"}; the first range holding the score gives the level of the response, its \"label\", and replaces the confirmation message; a bound left out means no limit)."},"languages":{"type":"object","description":"Languages to change, the keys left out keep their value: \"primary\" (fr, en, nl, de, es or it, or null for the language of the owner account), \"additional\" (the other languages the form is offered in), \"translations\" (the translations of the form texts, which replace the current ones: {\"nl\": {\"title\", \"description\", \"confirmation_message\", \"submit_label\", \"quiz_outcomes\": {\"0\": \"message of the first score range\"}}}). Pages and fields carry their own \"translations\" in the same shape."}},"required":["pages"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Form"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"422":{"description":"The request was refused; `errors` lists every problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["forms:write"]},{"personalToken":[]}]},"patch":{"operationId":"editForm","description":"The operations apply in order to the structure of getForm; if one is invalid, none is saved. On a published form the changes stay pending, like updateForm.","summary":"Change some pages or fields of a form without sending back its whole structure.","tags":["Forms"],"parameters":[{"name":"form","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"At most 255 characters; kept as is when left out."},"description":{"type":["string","null"],"description":"Kept as is when left out."},"operations":{"description":"At most 100 operations, each an object with \"op\" set to one of add_field, update_field, remove_field, move_field, add_page, update_page, remove_page, move_page. \"position\" counts from 0 and defaults to the end; \"page_id\" defaults to the last page. Empty to change only the title, the description, the quiz or the language settings.","items":{"properties":{"op":{"enum":["add_field","update_field","remove_field","move_field","add_page","update_page","remove_page","move_page"],"type":"string"},"field_id":{"description":"update_field, remove_field, move_field: the field, from getForm.","type":"integer"},"page_id":{"description":"update_page, remove_page, move_page: the page, from getForm. add_field, move_field: the page to put the field on, the last page by default (move_field: its own page).","type":"integer"},"position":{"description":"add_field, move_field, add_page, move_page: place in the page or the form, 0 for first; the end by default.","minimum":0,"type":"integer"},"field":{"description":"add_field: the new field, without id. update_field: only the properties to change.","properties":{"type":{"description":"Required for a new field.","enum":["text","email","number","textarea","select","checkbox","radio","yes_no","ranking","date","file","phone","url","rating","signature","address","likert","grid","time_slot","hidden","heading"],"type":"string"},"label":{"description":"Question shown to respondents. For heading: the section title.","type":"string"},"name":{"description":"Unique snake_case key used in exports and conditions. Generated from the label for a new field when omitted. Avoid renaming it: answers already received stay under the old key.","type":"string"},"required":{"type":"boolean"},"placeholder":{"description":"Example of the expected format, e.g. \"jane@example.com\".","type":"string"},"help_text":{"description":"Short hint shown under the field.","type":"string"},"options":{"description":"select, radio, checkbox, ranking: the choices (required for these types, ignored otherwise). A consent box is a checkbox with one option holding the statement.","items":{"type":"string"},"type":"array"},"option_points":{"description":"select, radio, checkbox, yes_no: points of each choice for a quiz, in the order of options (yes_no: yes, then no). The score of a response is the sum of the points of its answers, counted once the quiz mode is on in the form settings.","items":{"type":"integer"},"type":"array"},"score_ranges":{"description":"number, rating: points by answer, to score a quiz or qualify a lead. The answer earns the points of the first range holding it, both bounds included; a bound left out means no limit.","maxItems":10,"items":{"properties":{"min":{"type":"number"},"max":{"type":"number"},"points":{"type":"integer"}},"type":"object"},"type":"array"},"likert_rows":{"description":"likert, grid: rows (likert: statements to rate).","items":{"type":"string"},"type":"array"},"likert_columns":{"description":"likert, grid: columns (likert: scale labels, e.g. \"Disagree\", \"Neutral\", \"Agree\").","items":{"type":"string"},"type":"array"},"heading_content":{"description":"heading: short paragraph under the title.","type":"string"},"hidden_value":{"description":"hidden: fixed value stored with each response.","type":"string"},"rating_scale":{"description":"rating: number of steps, 3 to 10 (5 by default, 10 for an NPS).","type":"integer"},"rating_low_label":{"type":"string"},"rating_high_label":{"type":"string"},"settings":{"description":"Advanced: the full settings object as returned by getForm. Unknown keys are ignored.","type":"object"},"conditional_logic":{"description":"Advanced: as returned by getForm. Leave it out to keep it unchanged.","type":"object"},"validation_rules":{"description":"Advanced: as returned by getForm. Leave it out to keep it unchanged.","type":"array"},"translations":{"description":"Texts in the additional languages, by language code, then by key: \"label\", \"placeholder\", \"help_text\", \"low_label\", \"high_label\", \"required_message\", \"invalid_message\", and \"options\", \"rows\", \"columns\" as {\"index\": text}. A text left out shows in the primary language; an option, row or column keeps its primary text as the stored answer. Leave it out to keep it unchanged.","type":"object"}},"type":"object"},"page":{"description":"add_page: the new page. update_page: its title or repeat_conditions.","properties":{"title":{"type":"string"},"repeat_conditions":{"type":"object"},"translations":{"description":"Texts in the additional languages, by language code, then by key: \"title\". A text left out shows in the primary language; an option, row or column keeps its primary text as the stored answer. Leave it out to keep it unchanged.","type":"object"},"fields":{"description":"add_page only: its new fields.","items":{"properties":{"type":{"description":"Required for a new field.","enum":["text","email","number","textarea","select","checkbox","radio","yes_no","ranking","date","file","phone","url","rating","signature","address","likert","grid","time_slot","hidden","heading"],"type":"string"},"label":{"description":"Question shown to respondents. For heading: the section title.","type":"string"},"name":{"description":"Unique snake_case key used in exports and conditions. Generated from the label for a new field when omitted. Avoid renaming it: answers already received stay under the old key.","type":"string"},"required":{"type":"boolean"},"placeholder":{"description":"Example of the expected format, e.g. \"jane@example.com\".","type":"string"},"help_text":{"description":"Short hint shown under the field.","type":"string"},"options":{"description":"select, radio, checkbox, ranking: the choices (required for these types, ignored otherwise). A consent box is a checkbox with one option holding the statement.","items":{"type":"string"},"type":"array"},"option_points":{"description":"select, radio, checkbox, yes_no: points of each choice for a quiz, in the order of options (yes_no: yes, then no). The score of a response is the sum of the points of its answers, counted once the quiz mode is on in the form settings.","items":{"type":"integer"},"type":"array"},"score_ranges":{"description":"number, rating: points by answer, to score a quiz or qualify a lead. The answer earns the points of the first range holding it, both bounds included; a bound left out means no limit.","maxItems":10,"items":{"properties":{"min":{"type":"number"},"max":{"type":"number"},"points":{"type":"integer"}},"type":"object"},"type":"array"},"likert_rows":{"description":"likert, grid: rows (likert: statements to rate).","items":{"type":"string"},"type":"array"},"likert_columns":{"description":"likert, grid: columns (likert: scale labels, e.g. \"Disagree\", \"Neutral\", \"Agree\").","items":{"type":"string"},"type":"array"},"heading_content":{"description":"heading: short paragraph under the title.","type":"string"},"hidden_value":{"description":"hidden: fixed value stored with each response.","type":"string"},"rating_scale":{"description":"rating: number of steps, 3 to 10 (5 by default, 10 for an NPS).","type":"integer"},"rating_low_label":{"type":"string"},"rating_high_label":{"type":"string"},"settings":{"description":"Advanced: the full settings object as returned by getForm. Unknown keys are ignored.","type":"object"},"conditional_logic":{"description":"Advanced: as returned by getForm. Leave it out to keep it unchanged.","type":"object"},"validation_rules":{"description":"Advanced: as returned by getForm. Leave it out to keep it unchanged.","type":"array"},"translations":{"description":"Texts in the additional languages, by language code, then by key: \"label\", \"placeholder\", \"help_text\", \"low_label\", \"high_label\", \"required_message\", \"invalid_message\", and \"options\", \"rows\", \"columns\" as {\"index\": text}. A text left out shows in the primary language; an option, row or column keeps its primary text as the stored answer. Leave it out to keep it unchanged.","type":"object"}},"type":"object"},"type":"array"}},"type":"object"}},"type":"object","required":["op"]},"type":"array"},"quiz":{"type":"object","description":"Quiz settings to change, the keys left out keep their value: \"enabled\", \"show_score\" and \"show_answers\" (true or false), \"outcomes\" (at most 10 ranges {\"min\", \"max\", \"label\", \"message\"}; the first range holding the score gives the level of the response, its \"label\", and replaces the confirmation message; a bound left out means no limit)."},"languages":{"type":"object","description":"Languages to change, the keys left out keep their value: \"primary\" (fr, en, nl, de, es or it, or null for the language of the owner account), \"additional\" (the other languages the form is offered in), \"translations\" (the translations of the form texts, which replace the current ones: {\"nl\": {\"title\", \"description\", \"confirmation_message\", \"submit_label\", \"quiz_outcomes\": {\"0\": \"message of the first score range\"}}}). Pages and fields carry their own \"translations\" in the same shape."}},"required":["operations"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Form"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"422":{"description":"The request was refused; `errors` lists every problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["forms:write"]},{"personalToken":[]}]}},"/forms/{form}/duplicate":{"post":{"operationId":"duplicateForm","description":"The copy gets the pages, fields and settings the author works on, pending changes included, in the workspace of the form.","summary":"Create a draft copy of a form, without its responses.","tags":["Forms"],"parameters":[{"name":"form","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","description":"Same as for createForm.","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"At most 255 characters. Defaults to the title of the form followed by \"(copy)\"."}}}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Form"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan quota is exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"The import is closed or its counts do not match the source yet, or the idempotency key is in use or was sent with another body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request was refused; `errors` lists every problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["forms:write"]},{"personalToken":[]}]}},"/forms/{form}/publish":{"post":{"operationId":"publishForm","description":"Recent or unverified accounts publish from the editor instead.","summary":"Publish a form, or put the pending changes of a published form online.","tags":["Forms"],"parameters":[{"name":"form","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSummary"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"422":{"description":"The request was refused; `errors` lists every problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["forms:write"]},{"personalToken":[]}]}},"/forms/{form}/unpublish":{"post":{"operationId":"unpublishForm","summary":"Take a form offline; its responses and pending changes are kept.","tags":["Forms"],"parameters":[{"name":"form","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSummary"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"422":{"description":"The request was refused; `errors` lists every problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["forms:write"]},{"personalToken":[]}]}},"/forms/{form}/discard-changes":{"post":{"operationId":"discardFormChanges","summary":"Drop the pending changes of a published form; it goes back to its published version.","tags":["Forms"],"parameters":[{"name":"form","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Form"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["forms:write"]},{"personalToken":[]}]}},"/forms/{form}/responses":{"get":{"operationId":"listResponses","summary":"Responses newest first, with the columns of the CSV export.","tags":["Forms"],"parameters":[{"name":"form","in":"path","required":true,"schema":{"type":"integer"}},{"name":"page","in":"query","schema":{"type":"integer","default":1,"minimum":1}},{"name":"per_page","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":100}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsePage"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"422":{"description":"The request was refused; `errors` lists every problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["responses:read"]},{"personalToken":[]}]}},"/forms/{form}/responses/{response}":{"get":{"operationId":"getResponse","summary":"A response, with the columns of the CSV export and its uploaded files.","tags":["Forms"],"parameters":[{"name":"form","in":"path","required":true,"schema":{"type":"integer"}},{"name":"response","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["responses:read"]},{"personalToken":[]}]},"delete":{"operationId":"deleteResponse","description":"Like in the app, the response stays 30 days in the trash, where only the app can restore it, then it is erased for good with its files.","summary":"Move a response to the trash and free its booked time slot.","tags":["Forms"],"parameters":[{"name":"form","in":"path","required":true,"schema":{"type":"integer"}},{"name":"response","in":"path","required":true,"schema":{"type":"integer"}},{"name":"delete_calendar_event","in":"query","description":"Also delete from the connected calendar the event of the time slot booked with the response.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer"},"form_id":{"type":"integer"},"calendar_events_not_removed":{"type":"integer"}},"required":["id","form_id","calendar_events_not_removed"]}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["responses:write"]},{"personalToken":[]}]}},"/forms/{form}/responses/{response}/files/{file}":{"get":{"operationId":"downloadResponseFile","description":"`file` is the index of the file in the `files` of getResponse.","summary":"Download a file uploaded with a response.","tags":["Forms"],"parameters":[{"name":"form","in":"path","required":true,"schema":{"type":"integer"}},{"name":"response","in":"path","required":true,"schema":{"type":"integer"}},{"name":"file","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}},"headers":{"Transfer-Encoding":{"required":true,"schema":{"type":"string","enum":["chunked"]}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["responses:read"]},{"personalToken":[]}]}},"/imports":{"post":{"operationId":"startImport","description":"Nothing is ever changed at the source.","summary":"Start an import from another tool.","tags":["Imports"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Any unique string, kept 24 hours: a retry with the same key and body returns the import the first call started, with an `Idempotent-Replayed: true` header, instead of a second one.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"$ref":"#/components/schemas/ImportSource"},"label":{"type":"string","description":"Where the data comes from, for the report (a site, a file name)."},"workspace":{"type":"string","description":"Id of the workspace the forms are created in, from `/me`. Defaults to the personal workspace."}},"required":["source"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Import"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The import is closed or its counts do not match the source yet, or the idempotency key is in use or was sent with another body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request was refused; `errors` lists every problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["imports:write"]},{"personalToken":[]}]}},"/imports/wordpress":{"post":{"operationId":"offerWordPressImport","description":"The key is read once, kept encrypted and destroyed when the import is validated or cancelled. The answer gives the page where the user confirms the import. With `import`, an open import reads the site again with the new key instead.","summary":"Offer a WordPress site to AwesomeFor.ms, which then reads the forms the site chose.","tags":["Imports"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"$ref":"#/components/schemas/ImportSource"},"rest_url":{"type":"string","description":"REST address of the plugin on the site, which is reached over https."},"key":{"type":"string","description":"Secret that gives read access to the forms chosen on the site."},"forms":{"type":"array","description":"Ids of the forms the site gives.","items":{"type":"string"}},"label":{"type":"string","description":"Name of the site, for the report."},"import":{"type":"string","description":"Id of an open import to read again."},"workspace":{"type":"string","description":"Id of the workspace the forms go to, from `/me`; the user can still change it when confirming. Defaults to the personal workspace."}},"required":["source","rest_url","key","forms"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Import"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WordPressOffer"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request was refused; `errors` lists every problem.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WordPressOfferRefused"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["imports:write"]},{"personalToken":[]}]}},"/imports/{import}/wordpress/revoke":{"post":{"operationId":"revokeWordPressImport","description":"The import stays open: it can still be validated or cancelled.","summary":"The site withdrew its access: stop reading it, keeping what was imported.","tags":["Imports"],"parameters":[{"name":"import","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Import"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["imports:write"]},{"personalToken":[]}]}},"/imports/{import}":{"get":{"operationId":"getImport","summary":"An import and its reconciliation: for every form, the counts given by the source against what was imported.","tags":["Imports"],"parameters":[{"name":"import","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportWithReconciliation"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["imports:write"]},{"personalToken":[]}]}},"/imports/{import}/forms":{"post":{"operationId":"importForm","description":"Returns the field names to key the responses with.","summary":"Create the form for a source form, or, when its source_ref was already imported, keep the existing form and only refresh the expected counts and notes.","tags":["Imports"],"parameters":[{"name":"import","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source_ref":{"type":"string","description":"Stable identifier of the form at the source, unique within the account for this source (for example site and form id)."},"title":{"type":"string","description":"At most 255 characters."},"description":{"type":["string","null"]},"pages":{"description":"Give every field a name: responses are keyed by it. A source field with no equivalent becomes a hidden field, so its values are kept.","items":{"properties":{"id":{"description":"Existing page id from getForm; omit for a new page. On an existing page, a title or repeat_conditions left out keeps its saved value.","type":"integer"},"title":{"type":"string"},"repeat_conditions":{"description":"Advanced: as returned by getForm. Leave it out to keep it unchanged.","type":"object"},"translations":{"description":"Texts in the additional languages, by language code, then by key: \"title\". A text left out shows in the primary language; an option, row or column keeps its primary text as the stored answer. Leave it out to keep it unchanged.","type":"object"},"fields":{"items":{"properties":{"id":{"description":"Existing field id from getForm. Keep it to update that field and keep its responses; omit it for a new field. On an existing field, any property left out keeps its saved value.","type":"integer"},"type":{"enum":["text","email","number","textarea","select","checkbox","radio","yes_no","ranking","date","file","phone","url","rating","signature","address","likert","grid","time_slot","hidden","heading"],"type":"string"},"label":{"description":"Question shown to respondents. For heading: the section title.","type":"string"},"name":{"description":"Unique snake_case key used in exports and conditions. Generated from the label for a new field when omitted. Avoid renaming it: answers already received stay under the old key.","type":"string"},"required":{"type":"boolean"},"placeholder":{"description":"Example of the expected format, e.g. \"jane@example.com\".","type":"string"},"help_text":{"description":"Short hint shown under the field.","type":"string"},"options":{"description":"select, radio, checkbox, ranking: the choices (required for these types, ignored otherwise). A consent box is a checkbox with one option holding the statement.","items":{"type":"string"},"type":"array"},"option_points":{"description":"select, radio, checkbox, yes_no: points of each choice for a quiz, in the order of options (yes_no: yes, then no). The score of a response is the sum of the points of its answers, counted once the quiz mode is on in the form settings.","items":{"type":"integer"},"type":"array"},"score_ranges":{"description":"number, rating: points by answer, to score a quiz or qualify a lead. The answer earns the points of the first range holding it, both bounds included; a bound left out means no limit.","maxItems":10,"items":{"properties":{"min":{"type":"number"},"max":{"type":"number"},"points":{"type":"integer"}},"type":"object"},"type":"array"},"likert_rows":{"description":"likert, grid: rows (likert: statements to rate).","items":{"type":"string"},"type":"array"},"likert_columns":{"description":"likert, grid: columns (likert: scale labels, e.g. \"Disagree\", \"Neutral\", \"Agree\").","items":{"type":"string"},"type":"array"},"heading_content":{"description":"heading: short paragraph under the title.","type":"string"},"hidden_value":{"description":"hidden: fixed value stored with each response.","type":"string"},"rating_scale":{"description":"rating: number of steps, 3 to 10 (5 by default, 10 for an NPS).","type":"integer"},"rating_low_label":{"type":"string"},"rating_high_label":{"type":"string"},"settings":{"description":"Advanced: the full settings object as returned by getForm. Unknown keys are ignored.","type":"object"},"conditional_logic":{"description":"Advanced: as returned by getForm. Leave it out to keep it unchanged.","type":"object"},"validation_rules":{"description":"Advanced: as returned by getForm. Leave it out to keep it unchanged.","type":"array"},"translations":{"description":"Texts in the additional languages, by language code, then by key: \"label\", \"placeholder\", \"help_text\", \"low_label\", \"high_label\", \"required_message\", \"invalid_message\", and \"options\", \"rows\", \"columns\" as {\"index\": text}. A text left out shows in the primary language; an option, row or column keeps its primary text as the stored answer. Leave it out to keep it unchanged.","type":"object"}},"type":"object","required":["type"]},"type":"array"}},"type":"object","required":["fields"]},"type":"array"},"expected":{"type":"object","description":"What the source holds, to reconcile against.","properties":{"responses":{"type":"integer"},"files":{"type":"integer"},"fields":{"type":"object","additionalProperties":{"type":"integer"}}},"required":["responses"]},"notes":{"type":"object","description":"For the readable report.","properties":{"kept":{"type":"array","items":{"type":"string"}},"degraded":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"how":{"type":"string"}},"required":["field","how"]}},"dropped":{"type":"array","items":{"type":"object","properties":{"feature":{"type":"string"},"detail":{"type":"string"}},"required":["feature","detail"]}}}}},"required":["source_ref","title","pages","expected"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportedForm"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportedForm"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan quota is exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"The import is closed or its counts do not match the source yet, or the idempotency key is in use or was sent with another body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request was refused; `errors` lists every problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["imports:write"]},{"personalToken":[]}]}},"/imports/{import}/forms/{form}/responses":{"post":{"operationId":"importResponses","description":"A response whose source_ref is already imported is skipped, so sending a batch again is safe. Imported responses send no alert and do not count toward the monthly response quota. The whole batch is refused if one response is invalid.","summary":"Add up to 100 responses.","tags":["Imports"],"parameters":[{"name":"import","in":"path","required":true,"schema":{"type":"string"}},{"name":"form","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"responses":{"type":"array","items":{"type":"object","properties":{"source_ref":{"type":"string"},"submitted_at":{"type":"string"},"data":{"type":"object","additionalProperties":{}},"raw":{"type":"object","additionalProperties":{}},"status":{"type":"string"},"ip":{"type":"string"}},"required":["source_ref","submitted_at","data","raw"]}}},"required":["responses"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportedResponses"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan quota is exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"The import is closed or its counts do not match the source yet, or the idempotency key is in use or was sent with another body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request was refused; `errors` lists every problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["imports:write"]},{"personalToken":[]}]}},"/imports/{import}/forms/{form}/files":{"post":{"operationId":"importFile","description":"It is stored only if its SHA-256 matches. A photo or a PDF is then recompressed when that makes it lighter, except a signed PDF: the storage quota counts the stored size, while size and sha256 in the answer stay those of the file sent. A file the source lists but cannot provide is declared with missing=1 and shows in the report. Sending the same source_ref again returns the stored file. A file stored elsewhere can be given by its public url instead of its content: it is fetched in the background, shows as pending until then, and the import cannot be validated meanwhile. A big file can be sent in parts, each with its offset in the file and the total size: a part must start where the previous one ended (409 with the bytes received otherwise), an offset of 0 starts over, and the last part checks size and sha256 before the file is stored like any other.","summary":"Attach one file to an imported response (multipart/form-data).","tags":["Imports"],"parameters":[{"name":"import","in":"path","required":true,"schema":{"type":"string"}},{"name":"form","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"response":{"type":"string","description":"source_ref of the imported response."},"field":{"type":"string","description":"Name of a file field; on a page that repeats more than once, the scoped name (name_instance_N); a page shown once takes the plain name, and name_instance_0 is accepted for it."},"source_ref":{"type":"string","description":"Identifier of the file at the source (path, URL or id)."},"name":{"type":"string","description":"Original file name."},"sha256":{"type":"string","description":"Hex SHA-256 of the whole content; required with file."},"file":{"type":"string","format":"binary","description":"At most 100 MB, or 16 MB for a part."},"missing":{"type":"boolean","description":"The source lists the file but cannot provide it."},"url":{"type":"string","description":"Public http(s) address of the file, instead of its content."},"offset":{"type":"integer","description":"With total: the position of this part in the file."},"total":{"type":"integer","description":"With offset: the size of the whole file in bytes."}},"required":["response","field","source_ref"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportedFile"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportedFile"}}}},"202":{"description":"Accepted","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ImportedFile"},{"type":"object","properties":{"received":{"type":"integer"}},"required":["received"]}]}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan quota is exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/NotFound"}]}}}},"409":{"description":"The import is closed or its counts do not match the source yet, or the idempotency key is in use or was sent with another body.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"string","const":"Ce morceau ne suit pas les octets déjà reçus."},"received":{"type":"integer"}},"required":["error","received"]},{"$ref":"#/components/schemas/Error"}]}}}},"422":{"description":"The request was refused; `errors` lists every problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["imports:write"]},{"personalToken":[]}]}},"/imports/{import}/cancel":{"post":{"operationId":"cancelImport","description":"Only while the import is in progress.","summary":"Delete everything the import brought in: the forms it created, and the responses and files it added.","tags":["Imports"],"parameters":[{"name":"import","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Import"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"The import is closed or its counts do not match the source yet, or the idempotency key is in use or was sent with another body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["imports:write"]},{"personalToken":[]}]}},"/imports/{import}/validate":{"post":{"operationId":"validateImport","description":"It can no longer be cancelled.","summary":"Close the import once every count matches the source.","tags":["Imports"],"parameters":[{"name":"import","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportWithReconciliation"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"The import is closed or its counts do not match the source yet, or the idempotency key is in use or was sent with another body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportConflict"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["imports:write"]},{"personalToken":[]}]}},"/wordpress/clients":{"post":{"operationId":"registerWordPressClient","description":"The redirect URI must be on the site itself, over https (http only on localhost). Registering the same redirect URI again returns the same client.","summary":"Register the OAuth client of a WordPress site.","tags":["OAuth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"site_url":{"type":"string","format":"uri"},"redirect_uri":{"type":"string","format":"uri"}},"required":["site_url","redirect_uri"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthClient"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[]}},"/templates":{"get":{"operationId":"listTemplates","summary":"The ready-made forms, to create a form from with createFormFromTemplate.","tags":["Templates"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateList"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["forms:read"]},{"personalToken":[]}]}},"/templates/forms":{"post":{"operationId":"createFormFromTemplate","description":"The form gets the pages and fields of the template; change them with editForm, then publish it with publishForm.","summary":"Create a draft form from a template.","tags":["Templates"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Same as for createForm.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"template":{"type":"string","description":"Key of the template, from listTemplates."},"title":{"type":"string","description":"At most 255 characters. Defaults to the title of the template."},"workspace":{"type":"string","description":"Id of the workspace to create the form in, from `/me`. Defaults to the personal workspace."}},"required":["template"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Form"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan quota is exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The import is closed or its counts do not match the source yet, or the idempotency key is in use or was sent with another body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request was refused; `errors` lists every problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["forms:write"]},{"personalToken":[]}]}},"/forms/{form}/webhooks":{"get":{"operationId":"listWebhooks","summary":"The webhooks of a form, oldest first.","tags":["Webhooks"],"parameters":[{"name":"form","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookList"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["webhooks:read"]},{"personalToken":[]}]},"post":{"operationId":"createWebhook","description":"Each new response to the form is then sent once, as a JSON POST to the URL, with `form_id`, `response_id`, `submitted_at` (ISO 8601) and `data`, the answers keyed by the `name` of each field of getForm; when the response has files, `files` lists temporary download links valid 7 days, keyed like `data`. The request times out after 10 seconds, does not follow redirects and is not sent again after a failure. Each request carries an `X-AwesomeForms-Signature: t=<unix time>,v1=<hex>` header: `v1` is the HMAC-SHA256, keyed with the `secret` of the webhook, of the time, a dot and the raw body. Recompute it on reception, compare it in constant time and refuse a time more than 5 minutes away from yours. The `secret` is returned only by createWebhook and rotateWebhookSecret.","summary":"Send every new response of a form to a URL; the answer holds its signing secret.","tags":["Webhooks"],"parameters":[{"name":"form","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","description":"Any unique string, kept 24 hours: a retry with the same key and body returns the webhook the first call created, with an `Idempotent-Replayed: true` header, instead of a duplicate.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"An HTTPS address that resolves to public IP addresses only."},"enabled":{"type":"boolean","description":"A disabled webhook sends nothing until enabled again.","default":true}},"required":["url"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookWithSecret"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan quota is exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"The import is closed or its counts do not match the source yet, or the idempotency key is in use or was sent with another body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request was refused; `errors` lists every problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["webhooks:write"]},{"personalToken":[]}]}},"/forms/{form}/webhooks/{webhook}":{"patch":{"operationId":"updateWebhook","description":"Refused when the plan of the workspace no longer includes webhooks; deleting them stays possible.","summary":"Change the URL of a webhook, or enable or disable it.","tags":["Webhooks"],"parameters":[{"name":"form","in":"path","required":true,"schema":{"type":"integer"}},{"name":"webhook","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"An HTTPS address that resolves to public IP addresses only; kept as is when left out."},"enabled":{"type":"boolean","description":"Kept as is when left out."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan quota is exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"422":{"description":"The request was refused; `errors` lists every problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["webhooks:write"]},{"personalToken":[]}]},"delete":{"operationId":"deleteWebhook","summary":"Delete a webhook; responses are no longer sent to its URL.","tags":["Webhooks"],"parameters":[{"name":"form","in":"path","required":true,"schema":{"type":"integer"}},{"name":"webhook","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"204":{"description":"No content"},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["webhooks:write"]},{"personalToken":[]}]}},"/forms/{form}/webhooks/{webhook}/rotate-secret":{"post":{"operationId":"rotateWebhookSecret","description":"The previous secret stops working at once: requests sent from then on are signed with the new one.","summary":"Replace the signing secret of a webhook and return the new one.","tags":["Webhooks"],"parameters":[{"name":"form","in":"path","required":true,"schema":{"type":"integer"}},{"name":"webhook","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookWithSecret"}}}},"401":{"description":"Missing, unknown or revoked access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The token lacks the scope, or the account is refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown resource, or one that belongs to another account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}},"security":[{"oauth2":["webhooks:write"]},{"personalToken":[]}]}}},"components":{"securitySchemes":{"oauth2":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://awesomefor.ms/oauth/authorize","tokenUrl":"https://awesomefor.ms/oauth/token","refreshUrl":"https://awesomefor.ms/oauth/token","scopes":{"forms:read":"See your forms and their structure","forms:write":"Create, change, publish, unpublish, duplicate and delete your forms","responses:read":"Read the responses to your forms and their files","responses:write":"Move responses to your forms to the trash","imports:write":"Import forms and responses from another tool","webhooks:read":"See the webhooks of your forms","webhooks:write":"Add, change and remove the webhooks that send your responses to another service"}}}},"personalToken":{"type":"http","scheme":"bearer"}},"schemas":{"Account":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":["string","null"]},"email":{"type":"string"},"locale":{"type":"string"},"workspace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"role":{"$ref":"#/components/schemas/WorkspaceRole"}},"required":["id","name","role"]},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"personal":{"type":"boolean"},"role":{"$ref":"#/components/schemas/WorkspaceRole"}},"required":["id","name","personal","role"]}},"plan":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Plan"},"label":{"type":"string"}},"required":["id","label"]},"features":{"type":["object","array"],"additionalProperties":{"type":"boolean"},"maxItems":0},"storage":{"type":"object","properties":{"used_bytes":{"type":"integer"},"limit_bytes":{"type":"integer"}},"required":["used_bytes","limit_bytes"]}},"required":["id","name","email","locale","workspace","workspaces","plan","features","storage"],"title":"Account"},"Error":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"title":"Error"},"Field":{"type":"object","properties":{"id":{"type":["integer","null"]},"type":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"placeholder":{"type":["string","null"]},"help_text":{"type":["string","null"]},"required":{"type":"boolean"},"options":{"type":["array","null"],"items":{"type":"string"}},"settings":{"type":["object","null","array"],"additionalProperties":{},"maxItems":0},"conditional_logic":{"type":["object","null","array"],"additionalProperties":{},"maxItems":0},"validation_rules":{"type":["object","null","array"],"additionalProperties":{},"maxItems":0},"translations":{"type":["object","array"],"additionalProperties":{"type":["object","array"],"additionalProperties":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"maxItems":0},"maxItems":0}},"required":["id","type","label","name","placeholder","help_text","required","options","settings","conditional_logic","validation_rules","translations"],"title":"Field"},"Form":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"description":{"type":["string","null"]},"status":{"type":"string","enum":["draft","published"]},"has_unpublished_changes":{"type":"boolean"},"public_url":{"type":"string"},"edit_url":{"type":"string"},"quiz":{"type":"object","properties":{"enabled":{"type":"boolean"},"show_score":{"type":"boolean"},"show_answers":{"type":"boolean"},"outcomes":{"type":"array","items":{"type":"object","properties":{"min":{"type":["integer","null"]},"max":{"type":["integer","null"]},"message":{"type":"string"},"label":{"type":"string"}},"required":["min","max","message","label"]}}},"required":["enabled","show_score","show_answers","outcomes"]},"languages":{"type":"object","properties":{"primary":{"type":["string","null"]},"additional":{"type":"array","items":{"type":"string"}},"translations":{"type":["object","array"],"additionalProperties":{"type":["object","array"],"additionalProperties":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"maxItems":0},"maxItems":0}},"required":["primary","additional","translations"]},"pages":{"type":"array","items":{"$ref":"#/components/schemas/Page"}},"uuid":{"type":"string"},"embed_url":{"type":"string"}},"required":["id","title","description","status","has_unpublished_changes","public_url","edit_url","quiz","languages","pages","uuid","embed_url"],"title":"Form"},"FormList":{"type":"object","properties":{"forms":{"type":"array","items":{"$ref":"#/components/schemas/FormSummary"}}},"required":["forms"],"title":"FormList"},"FormSummary":{"type":"object","properties":{"id":{"type":"integer"},"uuid":{"type":"string"},"title":{"type":"string"},"workspace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"status":{"type":"string","enum":["draft","published"]},"has_unpublished_changes":{"type":"boolean"},"responses":{"type":"integer"},"updated_at":{"type":["string","null"],"format":"date-time"},"public_url":{"type":"string"},"embed_url":{"type":"string"},"edit_url":{"type":"string"}},"required":["id","uuid","title","workspace","status","has_unpublished_changes","responses","updated_at","public_url","embed_url","edit_url"],"title":"FormSummary"},"Import":{"type":"object","properties":{"uuid":{"type":"string"},"source":{"$ref":"#/components/schemas/ImportSource"},"label":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/ImportStatus"},"created_at":{"type":"string","format":"date-time"},"validated_at":{"type":["string","null"],"format":"date-time"},"cancelled_at":{"type":["string","null"],"format":"date-time"},"report_url":{"type":"string"}},"required":["uuid","source","label","status","created_at","validated_at","cancelled_at","report_url"],"title":"Import"},"ImportConflict":{"type":"object","properties":{"error":{"type":"string"},"uuid":{"type":"string"},"source":{"$ref":"#/components/schemas/ImportSource"},"label":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/ImportStatus"},"created_at":{"type":"string","format":"date-time"},"validated_at":{"type":["string","null"],"format":"date-time"},"cancelled_at":{"type":["string","null"],"format":"date-time"},"report_url":{"type":"string"},"reconciliation":{"$ref":"#/components/schemas/Reconciliation"}},"required":["error","uuid","source","label","status","created_at","validated_at","cancelled_at","report_url","reconciliation"],"title":"ImportConflict"},"ImportRun":{"type":"object","properties":{"title":{"type":"string"},"status":{"type":"string"},"fetched":{"type":"integer"},"total":{"type":["integer","null"]},"files_pending":{"type":"integer"},"error":{"type":["string","null"]}},"required":["title","status","fetched","total","files_pending","error"],"title":"ImportRun"},"ImportSource":{"type":"string","enum":["formidable","elementor","wpforms","gravity_forms","contact_form_7","csv","google_forms","tally","typeform","jotform"],"title":"ImportSource"},"ImportStatus":{"type":"string","enum":["open","validated","cancelled"],"title":"ImportStatus"},"ImportWithReconciliation":{"type":"object","properties":{"uuid":{"type":"string"},"source":{"$ref":"#/components/schemas/ImportSource"},"label":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/ImportStatus"},"created_at":{"type":"string","format":"date-time"},"validated_at":{"type":["string","null"],"format":"date-time"},"cancelled_at":{"type":["string","null"],"format":"date-time"},"report_url":{"type":"string"},"reconciliation":{"$ref":"#/components/schemas/Reconciliation"},"runs":{"type":"array","items":{"$ref":"#/components/schemas/ImportRun"}}},"required":["uuid","source","label","status","created_at","validated_at","cancelled_at","report_url","reconciliation","runs"],"title":"ImportWithReconciliation"},"ImportedFile":{"type":"object","properties":{"field":{"type":"string"},"source_ref":{"type":"string"},"status":{"type":"string","enum":["stored","missing","pending"]},"size":{"type":["integer","null"]},"sha256":{"type":["string","null"]}},"required":["field","source_ref","status","size","sha256"],"title":"ImportedFile"},"ImportedForm":{"type":"object","properties":{"id":{"type":"integer"},"uuid":{"type":"string"},"title":{"type":"string"},"created":{"type":"boolean"},"fields":{"type":["object","array"],"additionalProperties":{"type":"string"},"maxItems":0}},"required":["id","uuid","title","created","fields"],"title":"ImportedForm"},"ImportedResponses":{"type":"object","properties":{"created":{"type":"integer"},"skipped":{"type":"integer"}},"required":["created","skipped"],"title":"ImportedResponses"},"NotFound":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"title":"NotFound"},"OAuthClient":{"type":"object","properties":{"client_id":{"type":"string"},"client_name":{"type":"string"},"redirect_uris":{"type":"array","items":{"type":"string"}},"scope":{"type":"string"},"token_endpoint_auth_method":{"type":"string","const":"none"},"authorization_endpoint":{"type":"string"},"token_endpoint":{"type":"string"}},"required":["client_id","client_name","redirect_uris","scope","token_endpoint_auth_method","authorization_endpoint","token_endpoint"],"title":"OAuthClient"},"OAuthError":{"type":"object","properties":{"error":{"type":"string","const":"invalid_client_metadata"},"error_description":{"type":"string"}},"required":["error","error_description"],"title":"OAuthError"},"Page":{"type":"object","properties":{"id":{"type":["integer","null"]},"title":{"type":["string","null"]},"repeat_conditions":{"type":["object","null","array"],"additionalProperties":{},"maxItems":0},"translations":{"type":["object","array"],"additionalProperties":{"type":["object","array"],"additionalProperties":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"maxItems":0},"maxItems":0},"fields":{"type":"array","items":{"$ref":"#/components/schemas/Field"}}},"required":["id","title","repeat_conditions","translations","fields"],"title":"Page"},"Plan":{"type":"string","enum":["free","starter","pro","business"],"title":"Plan"},"Reconciliation":{"type":"object","properties":{"balanced":{"type":"boolean"},"forms":{"type":"array","items":{"type":"object","properties":{"uuid":{"type":"string"},"title":{"type":"string"},"source_ref":{"type":"string"},"expected":{"type":"object","properties":{"responses":{"type":["integer","null"]},"files":{"type":["integer","null"]},"fields":{"type":["object","array"],"additionalProperties":{"type":"integer"},"maxItems":0}},"required":["responses","files","fields"]},"actual":{"type":"object","properties":{"responses":{"type":"integer"},"files":{"type":"integer"},"missing_files":{"type":"integer"},"fields":{"type":["object","array"],"additionalProperties":{"type":"integer"},"maxItems":0}},"required":["responses","files","missing_files","fields"]},"gaps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"field":{"type":["string","null"]},"expected":{"type":"integer"},"actual":{"type":"integer"}},"required":["kind","field","expected","actual"]}},"missing_files":{"type":"array","items":{"type":"object","properties":{"response":{"type":["string","null"]},"field":{"type":"string"},"name":{"type":["string","null"]},"source_ref":{"type":"string"}},"required":["response","field","name","source_ref"]}},"notes":{"type":["object","array"],"additionalProperties":{},"maxItems":0}},"required":["uuid","title","source_ref","expected","actual","gaps","missing_files","notes"]}}},"required":["balanced","forms"],"title":"Reconciliation"},"Response":{"type":"object","properties":{"id":{"type":"integer"},"form_id":{"type":"integer"},"submitted_at":{"type":"string"},"score":{"type":["integer","null"]},"score_level":{"type":["string","null"]},"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"type":{"type":"string"}},"required":["key","label","type"]}},"values":{"type":["object","array"],"additionalProperties":{"type":["string","null"]},"maxItems":0},"files":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"key":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"}},"required":["index","key","label","name"]}}},"required":["id","form_id","submitted_at","score","score_level","columns","values","files"],"title":"Response"},"ResponsePage":{"type":"object","properties":{"form_id":{"type":"integer"},"total":{"type":"integer"},"page":{"type":"integer"},"next_page":{"type":["integer","null"]},"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"type":{"type":"string"}},"required":["key","label","type"]}},"responses":{"type":"array","items":{"type":["object","array"],"additionalProperties":{"type":["integer","string","null"]},"maxItems":0}}},"required":["form_id","total","page","next_page","columns","responses"],"title":"ResponsePage"},"TemplateList":{"type":"object","properties":{"templates":{"type":"array","items":{"type":"object","properties":{"template":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string"}},"required":["template","title","summary"]}}},"required":["templates"],"title":"TemplateList"},"ValidationError":{"type":"object","properties":{"error":{"type":"string"},"errors":{"type":"array","items":{"type":"string"}}},"required":["error","errors"],"title":"ValidationError"},"Webhook":{"type":"object","properties":{"id":{"type":"integer"},"form_id":{"type":"integer"},"url":{"type":"string"},"enabled":{"type":"boolean"},"created_at":{"type":["string","null"],"format":"date-time"}},"required":["id","form_id","url","enabled","created_at"],"title":"Webhook"},"WebhookList":{"type":"object","properties":{"webhooks":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"}}},"required":["webhooks"],"title":"WebhookList"},"WebhookWithSecret":{"type":"object","properties":{"id":{"type":"integer"},"form_id":{"type":"integer"},"url":{"type":"string"},"enabled":{"type":"boolean"},"created_at":{"type":["string","null"],"format":"date-time"},"secret":{"type":"string"}},"required":["id","form_id","url","enabled","created_at","secret"],"title":"WebhookWithSecret"},"WordPressOffer":{"type":"object","properties":{"select_url":{"type":"string"}},"required":["select_url"],"title":"WordPressOffer"},"WordPressOfferRefused":{"type":"object","properties":{"error":{"type":"string"},"reason":{"type":"string"}},"required":["error","reason"],"title":"WordPressOfferRefused"},"WorkspaceRole":{"type":"string","enum":["owner","admin","editor","viewer"],"title":"WorkspaceRole"}}}}