Start for free
Start for free Log in
Browse endpoints

Zwely API reference

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.

Download OpenAPI
Base URL
https://zwely.com/api/v1

Authentication

Create a token under Settings → API access on Professional or Business. Keep the token on your server and include it in every request.

Token scopes

read scope

Retrieve workspace data, files, and reports.

write scope

Create or update resources.

delete scope

Remove resources or cancel an upload.

Rate limit

120 requests per minute per token. Requests above the limit return 429.

Workspace

Retrieve the workspace

GET /api/v1/workspace

Use this endpoint to confirm which workspace a token can access and see its current plan.

Token scope read

Responses

200
OK
Response properties
data object
Properties
id integer
uuid string (uuid)
name string
plan string
401
Invalid token
403
Permission or plan denied
422
Validation error
429
Request limit exceeded. Wait before retrying.

Retrieve storage usage

GET /api/v1/storage

Check the workspace quota, stored bytes, and capacity reserved for uploads. All sizes are measured in bytes.

Token scope read

Responses

200
OK
Response properties
data object
Properties
quota_bytes integer
used_bytes integer
physical_bytes integer
reserved_bytes integer
available_bytes integer
401
Invalid token
403
Permission or plan denied
422
Validation error
429
Request limit exceeded. Wait before retrying.

Retrieve reports

GET /api/v1/reports

Get the number of submissions, totals by status, and completed evaluations for the workspace.

Token scope read

Responses

200
OK
Response properties
data object
Properties
submissions integer
by_status array<object>
Item properties
status string
total integer
scores array<object>
Item properties
id integer
submission_id integer
rubric_version_id integer
scores object
Properties
craft integer
total integer
completed_at string (date-time)
401
Invalid token
403
Permission or plan denied
422
Validation error
429
Request limit exceeded. Wait before retrying.

Campaigns

List campaigns

GET /api/v1/campaigns

Retrieve campaigns for the token’s workspace, 25 per page.

Token scope read

Query parameters

page integer

Page number. The first page is 1.

Responses

200
OK
Response properties
data object
Properties
current_page integer
data array<object>
Item properties
id integer
uuid string (uuid)
name string
type string
slug string
status string
per_page integer
total integer
401
Invalid token
403
Permission or plan denied
422
Validation error
429
Request limit exceeded. Wait before retrying.

Create a draft campaign

POST /api/v1/campaigns

Start from a template and get the campaign UUID for future requests. Publish the draft when its questions and upload fields are ready.

Token scope write

Request body

application/json
name string Required

Campaign name.

type string or null

Template key. Defaults to general.

  • audio
  • photography
  • film
  • manuscript
  • portfolio
  • general
  • stems
  • casting
  • null
description string or null

Message displayed to submitters.

Responses

201
Created
Response properties
data object
Properties
id integer
uuid string (uuid)
name string
type string
slug string
401
Invalid token
403
Permission or plan denied
422
Validation error
429
Request limit exceeded. Wait before retrying.

Retrieve a campaign

GET /api/v1/campaigns/{campaign}

Use the campaign UUID to retrieve its settings and current draft schema.

Token scope read

Path parameters

campaign string (uuid) Required

Campaign UUID.

Responses

200
OK
Response properties
data object
Properties
id integer
uuid string (uuid)
name string
type string
slug string
status string
401
Invalid token
403
Permission or plan denied
404
Resource not found
422
Validation error
429
Request limit exceeded. Wait before retrying.

Update a draft campaign

PATCH /api/v1/campaigns/{campaign}

Update the title, welcome message, or draft fields. A supplied schema replaces the draft fields. Publish to make the changes available to submitters.

Token scope write

Path parameters

campaign string (uuid) Required

Campaign UUID.

Request body

application/json
name string

Campaign name.

description string or null

Message displayed to submitters.

schema array<object>
Item properties
id string Required
type string Required
label string Required
required boolean

Responses

200
OK
Response properties
data object
Properties
id integer
uuid string (uuid)
name string
type string
slug string
status string
401
Invalid token
403
Permission or plan denied
404
Resource not found
422
Validation error
429
Request limit exceeded. Wait before retrying.

Delete a campaign

DELETE /api/v1/campaigns/{campaign}

Schedule permanent campaign deletion. Send the exact campaign name as confirmation. The cleanup worker removes files asynchronously.

Token scope delete

Path parameters

campaign string (uuid) Required

Campaign UUID.

Request body

application/json
confirmation string Required

Exact campaign name.

Responses

202
Accepted
Response properties
data object
Properties
status string
401
Invalid token
403
Permission or plan denied
404
Resource not found
422
Validation error
429
Request limit exceeded. Wait before retrying.

Publish a campaign

POST /api/v1/campaigns/{campaign}/publish

Publish the current draft so the form can accept submissions with its configured access and scheduling settings.

Token scope write

Path parameters

campaign string (uuid) Required

Campaign UUID.

Responses

200
OK
Response properties
data object
Properties
id integer
uuid string (uuid)
name string
type string
slug string
status string
401
Invalid token
403
Permission or plan denied
404
Resource not found
422
Validation error
429
Request limit exceeded. Wait before retrying.

Archive a campaign

POST /api/v1/campaigns/{campaign}/archive

Archive the campaign and stop accepting new submissions. Existing entries remain available.

Token scope write

Path parameters

campaign string (uuid) Required

Campaign UUID.

Responses

200
OK
Response properties
data object
Properties
id integer
uuid string (uuid)
name string
type string
slug string
status string
401
Invalid token
403
Permission or plan denied
404
Resource not found
422
Validation error
429
Request limit exceeded. Wait before retrying.

Questions

List question types and defaults

GET /api/v1/question-types

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
data array<object>
Item properties
type string

Supported question type key from GET /question-types.

label string

Display name.

group string

Category used by the question builder.

defaults object

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.

Writing & links
textShort text
required: false max_length: 10000
textareaLong text
required: false max_length: 10000
urlWebsite
required: false
socialSocial URL
required: false
numberNumber
required: false
dateDate
required: false
timeTime
required: false
Contact details
nameName
required: false max_length: 255
emailEmail
required: false receipt_email: true
phonePhone
required: false max_length: 10000
addressAddress
required: false max_length: 10000
Choices
selectDropdown
required: false
radioSingle choice
required: false
multiselectMultiple choice
required: false
checkboxCheckboxes
required: false
yesnoYes or no
required: false
ratingRating
required: false min: 1 max: 5
consentAgreement
required: false
Uploads & recording
audioAudio upload
required: false min_files: 1 max_files: 1 max_bytes: 1000000000 accept: audio/mpeg,audio/wav,audio/x-wav,audio/wave,audio/vnd.wave,audio/flac,audio/x-flac,audio/mp4,audio/ogg,audio/webm
videoVideo upload
required: false min_files: 1 max_files: 1 max_bytes: 1000000000 accept: video/mp4,video/quicktime,video/webm
imageImage upload
required: false min_files: 1 max_files: 1 max_bytes: 1000000000 accept: image/jpeg,image/png,image/webp,image/gif
documentDocument upload
required: false min_files: 1 max_files: 1 max_bytes: 1000000000 accept: application/pdf,text/plain,application/vnd.openxmlformats-officedocument.wordprocessingml.document
fileFile upload
required: false min_files: 1 max_files: 1 max_bytes: 1000000000
filesMultiple files
required: false min_files: 1 max_files: 5 max_bytes: 1000000000
audio_recordingAudio recording
required: false min_files: 1 max_files: 1 max_bytes: 1000000000 accept: audio/mpeg,audio/wav,audio/x-wav,audio/wave,audio/vnd.wave,audio/flac,audio/x-flac,audio/mp4,audio/ogg,audio/webm
video_recordingVideo recording
required: false min_files: 1 max_files: 1 max_bytes: 1000000000 accept: video/mp4,video/quicktime,video/webm
image_captureImage capture
required: false min_files: 1 max_files: 1 max_bytes: 1000000000 accept: image/jpeg,image/png,image/webp,image/gif
Structure
headingSection heading
required: false
contentDescription
required: false
dividerSection space
required: false
page_breakPage break
required: false
hiddenHidden field
required: false max_length: 10000

List draft questions

GET /api/v1/campaigns/{campaign}/questions

Get the questions and display fields in the order they appear in the campaign’s draft form.

Token scope read

Path parameters

campaign string (uuid) Required

Campaign UUID.

Responses

200
OK
Response properties
data array<object>
Item properties
id string Required

Stable ID. Letters, digits, hyphens, and underscores. Omit when creating to generate one.

type string Required

Supported question type key from GET /question-types.

label string Required

Question wording or the text of a display field.

required boolean

Whether a submitter must answer the question.

min number or null

Lowest allowed number or rating.

max number 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
429
Request limit exceeded. Wait before retrying.

Add a draft question

POST /api/v1/campaigns/{campaign}/questions

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

campaign string (uuid) Required

Campaign UUID.

Request body

application/json
id string

Stable ID. Letters, digits, hyphens, and underscores. Omit when creating to generate one.

type string Required

Supported question type key from GET /question-types.

label string Required

Question wording or the text of a display field.

required boolean

Whether a submitter must answer the question.

description string or null

Help text shown with the field.

placeholder string or null

Placeholder for text inputs.

options array<string>

Distinct choice labels for select, radio, checkbox, and multiselect questions.

default string or number or boolean or array or null

Prefilled value. Use an array of choice labels for multiselect or checkbox.

min number or null

Lowest allowed number or rating.

max number or null

Highest allowed number or rating.

min_length integer or null
max_length integer or null
identity boolean

Marks an answer as identifying information.

receipt_email boolean

Whether an email question can receive submission receipts.

accept string or null

Comma-separated MIME types for uploads.

min_files integer or null
max_files integer or null
max_bytes integer or null

Maximum bytes per file up to the platform limit.

conditions object or null

Visibility conditions. Referenced questions must exist in the draft.

Properties
mode string
  • and
  • or
rules array<object>
Item properties
field string Required

ID of the question to compare.

operator string
  • equals
  • not_equals
  • contains
  • answered
value any

Answer to compare against.

Responses

201
Created
Response properties
data object
Properties
id string Required

Stable ID. Letters, digits, hyphens, and underscores. Omit when creating to generate one.

type string Required

Supported question type key from GET /question-types.

label string Required

Question wording or the text of a display field.

required boolean

Whether a submitter must answer the question.

min number or null

Lowest allowed number or rating.

max number 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
429
Request limit exceeded. Wait before retrying.

Retrieve a draft question

GET /api/v1/campaigns/{campaign}/questions/{question}

Look up a field by its stable ID in the draft.

Token scope read

Path parameters

campaign string (uuid) Required

Campaign UUID.

question string Required

Stable question ID returned by the question endpoints.

Responses

200
OK
Response properties
data object
Properties
id string Required

Stable ID. Letters, digits, hyphens, and underscores. Omit when creating to generate one.

type string Required

Supported question type key from GET /question-types.

label string Required

Question wording or the text of a display field.

required boolean

Whether a submitter must answer the question.

min number or null

Lowest allowed number or rating.

max number 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
429
Request limit exceeded. Wait before retrying.

Update a draft question

PATCH /api/v1/campaigns/{campaign}/questions/{question}

Send the properties you want to change. Use null to clear optional settings. Changing type resets type-specific settings, and the ID stays the same.

Token scope write

Path parameters

campaign string (uuid) Required

Campaign UUID.

question string Required

Stable question ID returned by the question endpoints.

Request body

application/json
id string

Stable ID. Letters, digits, hyphens, and underscores. Omit when creating to generate one.

type string

Supported question type key from GET /question-types.

label string

Question wording or the text of a display field.

required boolean

Whether a submitter must answer the question.

description string or null

Help text shown with the field.

placeholder string or null

Placeholder for text inputs.

options array<string>

Distinct choice labels for select, radio, checkbox, and multiselect questions.

default string or number or boolean or array or null

Prefilled value. Use an array of choice labels for multiselect or checkbox.

min number or null

Lowest allowed number or rating.

max number or null

Highest allowed number or rating.

min_length integer or null
max_length integer or null
identity boolean

Marks an answer as identifying information.

receipt_email boolean

Whether an email question can receive submission receipts.

accept string or null

Comma-separated MIME types for uploads.

min_files integer or null
max_files integer or null
max_bytes integer or null

Maximum bytes per file up to the platform limit.

conditions object or null

Visibility conditions. Referenced questions must exist in the draft.

Properties
mode string
  • and
  • or
rules array<object>
Item properties
field string Required

ID of the question to compare.

operator string
  • equals
  • not_equals
  • contains
  • answered
value any

Answer to compare against.

Responses

200
OK
Response properties
data object
Properties
id string Required

Stable ID. Letters, digits, hyphens, and underscores. Omit when creating to generate one.

type string Required

Supported question type key from GET /question-types.

label string Required

Question wording or the text of a display field.

required boolean

Whether a submitter must answer the question.

min number or null

Lowest allowed number or rating.

max number 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
429
Request limit exceeded. Wait before retrying.

Remove a draft question

DELETE /api/v1/campaigns/{campaign}/questions/{question}

Remove a field from the draft. Keep at least one field and update any visibility rules that refer to this ID before removing it.

Token scope delete

Path parameters

campaign string (uuid) Required

Campaign UUID.

question string Required

Stable question ID returned by the question endpoints.

Responses

204
No content
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
429
Request limit exceeded. Wait before retrying.

Reorder draft questions

PUT /api/v1/campaigns/{campaign}/questions/order

Pass the complete list of draft question IDs in the new order. Include each ID exactly once.

Token scope write

Path parameters

campaign string (uuid) Required

Campaign UUID.

Request body

application/json
ids array<string> Required

Responses

200
OK
Response properties
data array<object>
Item properties
id string Required

Stable ID. Letters, digits, hyphens, and underscores. Omit when creating to generate one.

type string Required

Supported question type key from GET /question-types.

label string Required

Question wording or the text of a display field.

required boolean

Whether a submitter must answer the question.

min number or null

Lowest allowed number or rating.

max number 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
429
Request limit exceeded. Wait before retrying.

Submissions

List submissions

GET /api/v1/submissions

Retrieve submissions newest first, 25 per page. Filter by a campaign UUID, a status, or both.

Token scope read

Query parameters

campaign_id string (uuid)

UUID of the campaign to filter by.

status string

Submission status key.

page integer

Page number. The first page is 1.

Responses

200
OK
Response properties
data object
Properties
current_page integer
data array<object>
Item properties
id integer
uuid string (uuid)
reference string
title string
status string
answers object
Properties
title string
per_page integer
total integer
401
Invalid token
403
Permission or plan denied
422
Validation error
429
Request limit exceeded. Wait before retrying.

Retrieve a submission

GET /api/v1/submissions/{submission}

Use its UUID to retrieve a submission and its answers. Visibility depends on the token owner’s access.

Token scope read

Path parameters

submission string (uuid) Required

Submission UUID.

Responses

200
OK
Response properties
data object
Properties
id integer
uuid string (uuid)
reference string
title string
status string
answers object
Properties
title string
401
Invalid token
403
Permission or plan denied
404
Resource not found
422
Validation error
429
Request limit exceeded. Wait before retrying.

Delete a submission

DELETE /api/v1/submissions/{submission}

Confirm permanent deletion. File cleanup runs asynchronously and historical monthly usage is retained.

Token scope delete

Path parameters

submission string (uuid) Required

Submission UUID.

Request body

application/json
confirm boolean Required

Set to true to authorize permanent removal.

Responses

204
No content
401
Invalid token
403
Permission or plan denied
404
Resource not found
422
Validation error
429
Request limit exceeded. Wait before retrying.

Create a submission

POST /api/v1/campaigns/{campaign}/submissions

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

campaign string (uuid) Required

Campaign UUID.

Request headers

Idempotency-Key string (uuid) Required

A UUID unique to this logical submission. Reuse it when retrying.

Request body

application/json
answers object Required

Answers keyed by published field ID.

objects array<string (uuid)>

IDs of verified uploaded file objects.

draft string (uuid) Required

UUID shared by this submission and its upload sessions.

Responses

201
Created
Response properties
data object
Properties
id integer
uuid string (uuid)
reference string
title string
status string
answers object
Properties
title string
401
Invalid token
403
Permission or plan denied
404
Resource not found
422
Validation error
429
Request limit exceeded. Wait before retrying.

Update a submission’s status

PATCH /api/v1/submissions/{submission}/status

Choose a status that exists in the submission’s campaign workflow.

Token scope write

Path parameters

submission string (uuid) Required

Submission UUID.

Request body

application/json
status string Required

A status key configured in the campaign workflow.

Responses

200
OK
Response properties
data object
Properties
id integer
uuid string (uuid)
reference string
title string
status string
answers object
Properties
title string
401
Invalid token
403
Permission or plan denied
404
Resource not found
422
Validation error
429
Request limit exceeded. Wait before retrying.

Uploads

Collect files and answers

Create and publish a campaign with an upload field. Reserve space, finish the upload, then submit the answers and completed object IDs using the same draft UUID.

Retrieve upload status

GET /api/v1/uploads/{upload}

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.

Token scope read

Path parameters

upload string (uuid) Required

Upload session UUID.

Responses

200
OK
Response properties
data object
Properties
id string (uuid)
object_id string (uuid)
state string
expires_at string (date-time)
error string or null
401
Invalid token
403
Permission or plan denied
404
Resource not found
422
Validation error
429
Request limit exceeded. Wait before retrying.

Cancel an upload

DELETE /api/v1/uploads/{upload}

Cancel an upload session and release its reserved capacity.

Token scope delete

Path parameters

upload string (uuid) Required

Upload session UUID.

Responses

204
No content
401
Invalid token
403
Permission or plan denied
404
Resource not found
422
Validation error
429
Request limit exceeded. Wait before retrying.

Reserve an upload

POST /api/v1/campaigns/{campaign}/uploads

Reserve the file’s exact byte count for a published upload field. Reuse the draft UUID for each file that belongs to the same submission.

Token scope write

Path parameters

campaign string (uuid) Required

Campaign UUID.

Request body

application/json
draft string (uuid) Required

UUID shared by this submission and its upload sessions.

field_id string Required

Stable ID of the published upload field.

bytes integer Required

Exact size of the file in bytes.

Responses

201
Created
Response properties
data object
Properties
id string (uuid)
object_id string (uuid)
state string
expires_at string (date-time)
401
Invalid token
403
Permission or plan denied
404
Resource not found
422
Validation error
429
Request limit exceeded. Wait before retrying.

Upload a file

POST /api/v1/uploads/{upload}/complete

Send the complete file as multipart form data. The server verifies the contents and size against the field’s upload rules.

Token scope write

Path parameters

upload string (uuid) Required

Upload session UUID.

Request body

multipart/form-data
file string (binary) Required

File data sent as multipart form data.

Responses

200
OK
Response properties
data object
Properties
id string (uuid)
name string
mime string
size integer
state string
401
Invalid token
403
Permission or plan denied
404
Resource not found
422
Validation error
429
Request limit exceeded. Wait before retrying.

Upload a chunk

POST /api/v1/uploads/{upload}/chunks/{index}

Send one chunk of up to 10 MB as multipart form data. Chunk indexes start at zero. Retry the same index with the same bytes to resume.

Token scope write

Path parameters

upload string (uuid) Required

Upload session UUID.

index integer Required

Zero-based chunk index.

Request body

multipart/form-data
file string (binary) Required

File data sent as multipart form data.

Responses

200
OK
Response properties
data object
Properties
id string (uuid)
size integer
401
Invalid or expired API token
403
Permission, scope, or plan denied
404
Resource not found
422
Invalid chunk, expired session or capacity exceeded
429
Request limit exceeded. Wait before retrying.

Assemble uploaded chunks

POST /api/v1/uploads/{upload}/assemble

Supply the original filename and number of chunks. Zwely assembles the chunks in order and verifies the complete file.

Token scope write

Path parameters

upload string (uuid) Required

Upload session UUID.

Request body

application/json
name string Required

Original filename.

chunks integer Required

Responses

200
OK
Response properties
data object
Properties
id string (uuid)
name string
mime string
size integer
state string
401
Invalid or expired API token
403
Permission, scope, or plan denied
404
Resource not found
422
Missing or invalid chunks/media
429
Request limit exceeded. Wait before retrying.

Start a direct upload

POST /api/v1/uploads/{upload}/direct

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

upload string (uuid) Required

Upload session UUID.

Responses

200
OK
Response properties
data object
Properties
state string
part_bytes integer
uploaded array<integer>
parts array<object>
Item properties
number integer
url string
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
429
Request limit exceeded. Wait before retrying.

Complete a direct upload

POST /api/v1/uploads/{upload}/direct/complete

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.

Token scope write

Path parameters

upload string (uuid) Required

Upload session UUID.

Request body

application/json
name string Required

Original filename.

Responses

200
OK
Response properties
data object
Properties
state string
object_id string (uuid)
expires_at string (date-time)
error string or null
401
Invalid or expired API token
403
Permission, scope, or plan denied
404
Resource not found
422
Parts are missing, upload expired or form changed
429
Request limit exceeded. Wait before retrying.

Files

Retrieve file metadata

GET /api/v1/files/{object}

Read the original filename, content type, and size. Use the content endpoint for the bytes.

Token scope read

Path parameters

object string (uuid) Required

Stored file object UUID.

Responses

200
OK
Response properties
data object
Properties
id string (uuid)
name string
mime string
size integer
state string
401
Invalid token
403
Permission or plan denied
404
Resource not found
422
Validation error
429
Request limit exceeded. Wait before retrying.

Delete a submitted file

DELETE /api/v1/files/{object}

Remove the file’s submission reference and schedule cleanup. Send confirm set to true.

Token scope delete

Path parameters

object string (uuid) Required

Stored file object UUID.

Request body

application/json
confirm boolean Required

Set to true to authorize permanent removal.

Responses

204
No content
401
Invalid token
403
Permission or plan denied
404
Resource not found
422
Validation error
429
Request limit exceeded. Wait before retrying.

Download file content

GET /api/v1/files/{object}/content

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.

Token scope read

Path parameters

object string (uuid) Required

Stored file object UUID.

Query parameters

download boolean

Serve the file as an attachment.

Request headers

Range string

Request a byte range from local storage.

Responses

200
Complete file stream
206
Partial content from local storage
302
Redirect to the file’s temporary storage URL
401
Invalid or expired API token
403
Resource not authorized
404
Not available
416
Requested byte range unavailable
429
Request limit exceeded. Wait before retrying.

Review

List rubric versions

GET /api/v1/campaigns/{campaign}/rubrics

Retrieve the campaign’s immutable scorecards across judging rounds.

Token scope read

Path parameters

campaign string (uuid) Required

Campaign UUID.

Responses

200
OK
Response properties
data array<object>
Item properties
id integer
campaign_id integer
round integer
criteria array<object>
Item properties
id string
name string
min integer
max integer
weight integer
401
Invalid token
403
Permission or plan denied
404
Resource not found
422
Validation error
429
Request limit exceeded. Wait before retrying.

Create a rubric version

POST /api/v1/campaigns/{campaign}/rubrics

Save a new immutable scorecard for the selected round. Each criterion defines a numeric range and a relative weight.

Token scope write

Path parameters

campaign string (uuid) Required

Campaign UUID.

Request body

application/json
round integer Required
criteria array<object> Required
Item properties
id string Required
name string Required
min number Required
max number Required
weight number Required
description string or null
required boolean

Responses

201
Created
Response properties
data object
Properties
id integer
campaign_id integer
round integer
criteria array<object>
Item properties
id string
name string
min integer
max integer
weight integer
401
Invalid token
403
Permission or plan denied
404
Resource not found
422
Validation error
429
Request limit exceeded. Wait before retrying.

Assign a reviewer

POST /api/v1/campaigns/{campaign}/assignments

Assign a reviewer who has access to the campaign. Use numeric user and submission IDs in the request body.

Token scope write

Path parameters

campaign string (uuid) Required

Campaign UUID.

Request body

application/json
user_id integer Required
submission_id integer Required
round integer Required
due_at string (date-time) or null

Optional review deadline.

Responses

200
OK
Response properties
data object
Properties
assigned boolean
401
Invalid token
403
Permission or plan denied
404
Resource not found
422
Validation error
429
Request limit exceeded. Wait before retrying.

Save an evaluation

POST /api/v1/submissions/{submission}/evaluations

Send scores keyed by criterion ID. Set complete to true to submit the evaluation, or leave it false to save a draft.

Token scope write

Path parameters

submission string (uuid) Required

Submission UUID.

Request body

application/json
rubric_version_id integer Required

Numeric ID of the immutable rubric version.

scores object Required

Numeric scores keyed by criterion ID.

complete boolean

Set to true to submit the evaluation.

feedback string or null

Responses

200
OK
Response properties
data object
Properties
id integer
submission_id integer
rubric_version_id integer
scores object
Properties
craft integer
total integer
completed_at string (date-time)
401
Invalid token
403
Permission or plan denied
404
Resource not found
422
Validation error
429
Request limit exceeded. Wait before retrying.

Webhooks

List webhook endpoints

GET /api/v1/webhooks

Retrieve the webhook destinations configured for the workspace.

Token scope read

Responses

200
OK
Response properties
data array<object>
Item properties
id integer
url string
events array<string>
401
Invalid token
403
Permission or plan denied
422
Validation error
429
Request limit exceeded. Wait before retrying.

Create a webhook endpoint

POST /api/v1/webhooks

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
url string (uri) Required
events array<string> Required

Event names to deliver to this webhook.

Responses

201
Created
Response properties
data object
Properties
id integer
url string
events array<string>
secret string
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-Signature string

Contains the Unix timestamp t and the hexadecimal digest v1.

X-Zwely-Delivery string

Identifies this delivery across retries.

Model Context Protocol (MCP)

Connect through MCP

POST /api/v1/mcp

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
jsonrpc string Required
  • 2.0
id any
method string Required
params object

Responses

200
OK
Response properties
jsonrpc string
id integer or number or string or null
result object
Properties
protocolVersion string
capabilities object
Properties
tools object
serverInfo object
Properties
name string
version string
error object
Properties
code integer
message string
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.