{"openapi":"3.1.0","info":{"title":"Wave Forms API","version":"1.0.0","description":"Create forms, publish them, read responses and wire up post-submit actions. Authenticate with `Authorization: Bearer wave_form_...` (create a key in the app under Settings, Developers). Lists return `data`, `has_more` and `next_cursor`. Send `Idempotency-Key` on POST to make retries safe. The same operations are available as MCP tools at /api/mcp."},"servers":[{"url":"https://forms.wave.co/api/v1"}],"paths":{"/me":{"get":{"operationId":"getMe","summary":"Who this key is","description":"The organization and scopes behind the credential. A cheap way to check a key works.","security":[{"bearer":[]}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/forms":{"get":{"operationId":"listForms","summary":"List forms","description":"Every form in the organization, most recently changed first. Archived forms are left out unless status is archived.","security":[{"bearer":["forms:read"]}],"x-mcp-tool":"forms_list_forms","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","published","closed","archived","active"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createForm","summary":"Create a form","description":"Creates a form from a JSON schema. It is a draft unless `publish` is true. Field ids are yours to choose (lowercase, start with a letter); conditions, jumps and piping refer to them.","security":[{"bearer":["forms:write"]}],"x-mcp-tool":"forms_create_form","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"},"description":"A retry with the same key and body returns the first response."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200,"description":"Shown to respondents and in the forms list."},"mode":{"description":"conversational shows one question at a time; classic shows them on a page. Default conversational.","type":"string","enum":["conversational","classic"]},"schema":{"description":"The form: fields, jumps, thankYou, optional variables and theme. Omit for an empty draft.","type":"object","properties":{"fields":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"type":{"type":"string","enum":["short_text","long_text","email","phone","number","currency","url","date","single_select","multi_select","dropdown","rating","yes_no","consent","statement","file_upload","signature","hidden"]},"label":{"type":"string","maxLength":500},"description":{"type":"string","maxLength":2000},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"options":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"label":{"type":"string","maxLength":200},"score":{"type":"number","minimum":-1000000,"maximum":1000000}},"required":["id","label"],"additionalProperties":false}},"pattern":{"type":"string","maxLength":300},"allowVoice":{"type":"boolean"},"visibleIf":{"$ref":"#/$defs/__schema0"},"min":{"type":"number"},"max":{"type":"number"},"maxLength":{"type":"integer","minimum":1,"maximum":10000},"scale":{"anyOf":[{"type":"number","const":5},{"type":"number","const":10}]},"range":{"type":"boolean"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxFileMb":{"type":"integer","minimum":1,"maximum":10},"accept":{"maxItems":4,"type":"array","items":{"type":"string","enum":["pdf","image","document","text"]}},"param":{"type":"string","pattern":"^[A-Za-z0-9_.-]{1,60}$"},"newPage":{"type":"boolean"}},"required":["id","type","label"],"additionalProperties":false}},"jumps":{"default":[],"maxItems":300,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"fromFieldId":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"condition":{"$ref":"#/$defs/__schema0"},"targetFieldId":{"anyOf":[{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},{"type":"string","const":"__submit__"}]}},"required":["id","fromFieldId","condition","targetFieldId"],"additionalProperties":false}},"thankYou":{"type":"object","properties":{"title":{"type":"string","maxLength":200},"body":{"type":"string","maxLength":2000},"redirectUrl":{"type":"string","maxLength":2000}},"required":["title"],"additionalProperties":false},"theme":{"type":"object","properties":{"accentColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"showProgress":{"type":"boolean"}},"additionalProperties":false},"variables":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"label":{"type":"string","maxLength":120},"initial":{"type":"number"},"rules":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"op":{"type":"string","enum":["add","subtract","multiply","set"]},"value":{"type":"number"},"fromFieldId":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"condition":{"$ref":"#/$defs/__schema0"}},"required":["id","op","value"],"additionalProperties":false}}},"required":["id","label","initial","rules"],"additionalProperties":false}}},"required":["fields","thankYou"],"additionalProperties":false},"settings":{"type":"object","properties":{"allowVoice":{"type":"boolean"},"capturePartials":{"type":"boolean"},"closeAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"maxSubmissions":{"anyOf":[{"type":"integer","minimum":1,"maximum":10000000},{"type":"null"}]},"notifyEmails":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"confirmationEmailFieldId":{"anyOf":[{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},{"type":"null"}]},"onePerIp":{"type":"boolean"}},"additionalProperties":false},"folder_id":{"type":["string","null"]},"publish":{"description":"true validates and publishes straight away, so the form can take responses. Default false: a draft.","type":"boolean"}},"required":["title"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"object","properties":{"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains","matches"]},"fieldId":{"type":"string","pattern":"^(var:)?[a-z][a-z0-9_]{0,39}$"},"value":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},"required":["op","fieldId","value"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","enum":["and","or"]},"clauses":{"minItems":1,"maxItems":20,"type":"array","items":{"$ref":"#/$defs/__schema0"}}},"required":["op","clauses"],"additionalProperties":false}]}}}}}},"responses":{"201":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/forms/{id}":{"get":{"operationId":"getForm","summary":"Get a form","description":"The form with its draft schema and settings.","security":[{"bearer":["forms:read"]}],"x-mcp-tool":"forms_get_form","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateForm","summary":"Update a form","description":"Changes the draft. Respondents keep seeing the published version until the form is published again.","security":[{"bearer":["forms:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"mode":{"type":"string","enum":["conversational","classic"]},"slug":{"description":"The last part of the public link, forms.wave.co/f/<slug>.","type":"string"},"schema":{"description":"Replaces the draft. Live respondents keep the published version until you publish again.","type":"object","properties":{"fields":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"type":{"type":"string","enum":["short_text","long_text","email","phone","number","currency","url","date","single_select","multi_select","dropdown","rating","yes_no","consent","statement","file_upload","signature","hidden"]},"label":{"type":"string","maxLength":500},"description":{"type":"string","maxLength":2000},"required":{"type":"boolean"},"placeholder":{"type":"string","maxLength":200},"options":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"label":{"type":"string","maxLength":200},"score":{"type":"number","minimum":-1000000,"maximum":1000000}},"required":["id","label"],"additionalProperties":false}},"pattern":{"type":"string","maxLength":300},"allowVoice":{"type":"boolean"},"visibleIf":{"$ref":"#/$defs/__schema0"},"min":{"type":"number"},"max":{"type":"number"},"maxLength":{"type":"integer","minimum":1,"maximum":10000},"scale":{"anyOf":[{"type":"number","const":5},{"type":"number","const":10}]},"range":{"type":"boolean"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxFileMb":{"type":"integer","minimum":1,"maximum":10},"accept":{"maxItems":4,"type":"array","items":{"type":"string","enum":["pdf","image","document","text"]}},"param":{"type":"string","pattern":"^[A-Za-z0-9_.-]{1,60}$"},"newPage":{"type":"boolean"}},"required":["id","type","label"],"additionalProperties":false}},"jumps":{"default":[],"maxItems":300,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"fromFieldId":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"condition":{"$ref":"#/$defs/__schema0"},"targetFieldId":{"anyOf":[{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},{"type":"string","const":"__submit__"}]}},"required":["id","fromFieldId","condition","targetFieldId"],"additionalProperties":false}},"thankYou":{"type":"object","properties":{"title":{"type":"string","maxLength":200},"body":{"type":"string","maxLength":2000},"redirectUrl":{"type":"string","maxLength":2000}},"required":["title"],"additionalProperties":false},"theme":{"type":"object","properties":{"accentColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"showProgress":{"type":"boolean"}},"additionalProperties":false},"variables":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"label":{"type":"string","maxLength":120},"initial":{"type":"number"},"rules":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"op":{"type":"string","enum":["add","subtract","multiply","set"]},"value":{"type":"number"},"fromFieldId":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"condition":{"$ref":"#/$defs/__schema0"}},"required":["id","op","value"],"additionalProperties":false}}},"required":["id","label","initial","rules"],"additionalProperties":false}}},"required":["fields","thankYou"],"additionalProperties":false},"settings":{"type":"object","properties":{"allowVoice":{"type":"boolean"},"capturePartials":{"type":"boolean"},"closeAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"maxSubmissions":{"anyOf":[{"type":"integer","minimum":1,"maximum":10000000},{"type":"null"}]},"notifyEmails":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"confirmationEmailFieldId":{"anyOf":[{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},{"type":"null"}]},"onePerIp":{"type":"boolean"}},"additionalProperties":false},"folder_id":{"type":["string","null"]}},"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"object","properties":{"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains","matches"]},"fieldId":{"type":"string","pattern":"^(var:)?[a-z][a-z0-9_]{0,39}$"},"value":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},"required":["op","fieldId","value"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","enum":["and","or"]},"clauses":{"minItems":1,"maxItems":20,"type":"array","items":{"$ref":"#/$defs/__schema0"}}},"required":["op","clauses"],"additionalProperties":false}]}}}}}},"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/forms/{id}/publish":{"post":{"operationId":"publishForm","summary":"Publish a form","description":"Validates the draft (references, forward-only jumps, RE2 patterns) and publishes it as a new immutable version. On failure, error.details.problems lists what to fix.","security":[{"bearer":["forms:write"]}],"x-mcp-tool":"forms_publish","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"},"description":"A retry with the same key and body returns the first response."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/forms/{id}/submissions":{"get":{"operationId":"listSubmissions","summary":"List submissions","description":"Responses to a form, newest first, with cursor pagination. Completed responses by default.","security":[{"bearer":["submissions:read"]}],"x-mcp-tool":"forms_list_submissions","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"description":"Default completed.","type":"string","enum":["completed","partial","spam","all"]}},{"name":"q","in":"query","required":false,"schema":{"description":"Text to find anywhere in the answers.","type":"string","maxLength":200}},{"name":"since","in":"query","required":false,"schema":{"description":"Only responses created after this time.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"limit","in":"query","required":false,"schema":{"description":"Page size, 1 to 100. Default 50.","type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor of the previous page.","type":"string","maxLength":400}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/submissions/{id}":{"get":{"operationId":"getSubmission","summary":"Get a submission","description":"One response in full: answers with the question labels of the version it was answered against, calculated values, and short-lived download links for attachments.","security":[{"bearer":["submissions:read"]}],"x-mcp-tool":"forms_get_submission","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/forms/{id}/actions":{"get":{"operationId":"listActions","summary":"List actions","description":"The post-submit recipes of a form, in the order they run.","security":[{"bearer":["forms:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"addAction","summary":"Add an action","description":"Wires up what happens after a response: create a Wave Sign document, send the respondent to a Wave Cal page, show a Wave Room link, call a webhook, or send an email. A webhook's signing secret is returned once, as `webhook_secret`.","security":[{"bearer":["forms:write"]}],"x-mcp-tool":"forms_add_action","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"},"description":"A retry with the same key and body returns the first response."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["wave_sign","wave_cal_redirect","wave_room_redirect","webhook","email"],"description":"wave_sign, wave_cal_redirect, wave_room_redirect, webhook or email."},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"By kind. wave_sign: { templateId, apiKey, recipient: { nameFieldId, emailFieldId, role? }, fieldMapping: { <Wave Sign field name>: <form field id> }, redirectToSigning }. wave_cal_redirect: { url, params: { name: <field id>, email: <field id> } }. wave_room_redirect: { url, label?, redirect? }. webhook: { url }. email: { to: [addresses], subject, body }."},"condition":{"description":"Run only for responses that match. Field ids, or var:score and other calculated values.","anyOf":[{"$ref":"#/$defs/__schema0"},{"type":"null"}]},"is_active":{"type":"boolean"}},"required":["kind","config"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"object","properties":{"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains","matches"]},"fieldId":{"type":"string","pattern":"^(var:)?[a-z][a-z0-9_]{0,39}$"},"value":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},"required":["op","fieldId","value"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","enum":["and","or"]},"clauses":{"minItems":1,"maxItems":20,"type":"array","items":{"$ref":"#/$defs/__schema0"}}},"required":["op","clauses"],"additionalProperties":false}]}}}}}},"responses":{"201":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/actions/{id}":{"delete":{"operationId":"deleteAction","summary":"Delete an action","description":"Removes a post-submit recipe. Runs that already happened are kept.","security":[{"bearer":["forms:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"API key. Scopes: forms:read, forms:write, submissions:read."}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object"},"request_id":{"type":"string"}}}}}}}}