Create Form

Create Form

POST /v1/forms

Headers

Header

Type

Required

Description

accept

string

Expected response format. Use application/json.

content-type

string

Request body format. Use application/json.

X-API-Key

string

API key for authentication.

X-API-Token

string

Token identifying the current user or session.

Body

Field

Type

Required

Description

name

string

The title or name of the form.

subject

string

Subject line or short summary.

dueDate

string (date)

Due date in YYYY-MM-DD format.

senderUserId

string

User ID (username) of the form sender.

receiverUserIds

array[string]

List of recipient user IDs (usernames).

data

array[object]

Array describing the input fields within the form.

status

string

Status of the form — e.g., drafted, published, or completed.

responseType

string

type of stage: hierarchy

responseTiers

array[object]

object of response tiers payload

ResponseTiers Object

Field

Type

Required

Description

title

text allow: '' and null

Stage title

description

text allow: '' and null

Stage Description

tier

number min: 1 max: 100

Order of stage 1 = first stage

responders

array objects

{ userId: username }

status

text ['submitted', 'drafted', 'approved', 'rejected', 'mixed', 'canceled']

dueDate

timestamp

duration

number min: 0 max: timstamp

minimumWeight

number min: 0

minimum of approve weight before go to next stage

Create Form by single stage

Create Form by sequence stage & Parallel

Last updated