Connect your app to Zwely to collect work, read submissions, and automate reviews. Requests are scoped to a workspace and return JSON unless an endpoint serves file content.
Discover the supported field types, grouped as they appear in the form builder. The defaults returned reflect this installation. Choice questions need at least two options.
Token scope read
Responses
200
OK
Response properties
dataarray<object>
Item properties
typestring
Supported question type key from GET /question-types.
labelstring
Display name.
groupstring
Category used by the question builder.
defaultsobject
Default properties for new questions of this type.
401
Invalid or expired API token
403
Permission, scope, or plan denied
429
Request limit exceeded. Wait before retrying.
Types and defaults
These defaults apply to new questions. Choice questions need at least two options. Receipt delivery defaults to the first contact email question.
Append a question to the draft. Provide at least a type and label. Type defaults apply to omitted properties. The live form updates the next time you publish.
Token scope write
Path parameters
campaignstring (uuid)Required
Campaign UUID.
Request body
application/json
idstring
Stable ID. Letters, digits, hyphens, and underscores. Omit when creating to generate one.
typestringRequired
Supported question type key from GET /question-types.
labelstringRequired
Question wording or the text of a display field.
requiredboolean
Whether a submitter must answer the question.
descriptionstring or null
Help text shown with the field.
placeholderstring or null
Placeholder for text inputs.
optionsarray<string>
Distinct choice labels for select, radio, checkbox, and multiselect questions.
defaultstring or number or boolean or array or null
Prefilled value. Use an array of choice labels for multiselect or checkbox.
minnumber or null
Lowest allowed number or rating.
maxnumber or null
Highest allowed number or rating.
min_lengthinteger or null
max_lengthinteger or null
identityboolean
Marks an answer as identifying information.
receipt_emailboolean
Whether an email question can receive submission receipts.
acceptstring or null
Comma-separated MIME types for uploads.
min_filesinteger or null
max_filesinteger or null
max_bytesinteger or null
Maximum bytes per file up to the platform limit.
conditionsobject or null
Visibility conditions. Referenced questions must exist in the draft.
Properties
modestring
and
or
rulesarray<object>
Item properties
fieldstringRequired
ID of the question to compare.
operatorstring
equals
not_equals
contains
answered
valueany
Answer to compare against.
Responses
201
Created
Response properties
dataobject
Properties
idstringRequired
Stable ID. Letters, digits, hyphens, and underscores. Omit when creating to generate one.
typestringRequired
Supported question type key from GET /question-types.
labelstringRequired
Question wording or the text of a display field.
requiredboolean
Whether a submitter must answer the question.
minnumber or null
Lowest allowed number or rating.
maxnumber or null
Highest allowed number or rating.
401
Invalid or expired API token
403
Permission, scope, or plan denied
404
Campaign or question not found
409
Campaign is being deleted or an idempotency key conflicts
422
Invalid question properties, order, or visibility references
Send answers keyed by the published field IDs. Attach completed file object IDs from the same draft. Retry the same request with the same UUID Idempotency-Key.
Token scope write
Path parameters
campaignstring (uuid)Required
Campaign UUID.
Request headers
Idempotency-Keystring (uuid)Required
A UUID unique to this logical submission. Reuse it when retrying.
Request body
application/json
answersobjectRequired
Answers keyed by published field ID.
objectsarray<string (uuid)>
IDs of verified uploaded file objects.
draftstring (uuid)Required
UUID shared by this submission and its upload sessions.
Check whether a reserved upload is ready to attach to a submission. During direct upload verification, poll this endpoint until the state is completed or canceled.
Reserve the exact byte count first. Split the file into parts of data.part_bytes bytes (the last part may be smaller). Skip the 1-based numbers in data.uploaded. For each item in data.parts, PUT its raw slice to the supplied URL with the exact Content-Length and without a Zwely Authorization header. When data.state is verifying, poll the upload status instead of sending more parts.
Token scope write
Path parameters
uploadstring (uuid)Required
Upload session UUID.
Responses
200
OK
Response properties
dataobject
Properties
statestring
part_bytesinteger
uploadedarray<integer>
partsarray<object>
Item properties
numberinteger
urlstring
401
Invalid or expired API token
403
Permission, scope, or plan denied
404
Resource not found
422
Upload expired, form changed or disk does not support direct uploads
Poll GET /uploads/{upload} until data.state is completed before attaching data.object_id to a submission. If the file was rejected, the state is canceled and data.error describes the problem.
Retrieve the private file. Local storage supports byte ranges. For files served through a temporary storage URL, follow the redirect without forwarding the Zwely token.
Register an HTTPS endpoint and subscribe it to events. Save the signing secret returned at creation for verifying incoming deliveries.
Token scope write
Request body
application/json
urlstring (uri)Required
eventsarray<string>Required
Event names to deliver to this webhook.
Responses
201
Created
Response properties
dataobject
Properties
idinteger
urlstring
eventsarray<string>
secretstring
401
Invalid token
403
Permission or plan denied
422
Validation error
429
Request limit exceeded. Wait before retrying.
Verify webhook signatures
Compute the HMAC-SHA256 digest of the timestamp, a period, and the raw request body using your signing secret. Compare the digest with v1 in constant time.
Reject timestamps older than five minutes and process each delivery ID once. Failed deliveries retry after 60, 300, 1,800, and 7,200 seconds.
Delivery headers
X-Zwely-Signaturestring
Contains the Unix timestamp t and the hexadecimal digest v1.
Send JSON-RPC 2.0 requests to Zwely’s stateless MCP endpoint. Use initialize to discover capabilities and tools/list to discover available tools. The token needs the scope required by the requested method or tool.
Token scope read or write
Request body
application/json
jsonrpcstringRequired
2.0
idany
methodstringRequired
paramsobject
Responses
200
OK
Response properties
jsonrpcstring
idinteger or number or string or null
resultobject
Properties
protocolVersionstring
capabilitiesobject
Properties
toolsobject
serverInfoobject
Properties
namestring
versionstring
errorobject
Properties
codeinteger
messagestring
202
Notification received. No JSON body is returned.
401
Invalid token
403
Permission or plan denied
422
Validation error
429
Request limit exceeded. Wait before retrying.
Deletion
See the confirmation requirements for campaigns, submissions, and submitted files. File cleanup runs asynchronously and historical monthly usage is retained.