webForms

2 endpoints
GET/rest/webForms

List web forms

Returns a list of web forms available to the authenticated user's profile, including each form's name, URL, authentication requirement, and enabled state.

Parameters
Query Parameters
name
Optional
string

Web form name

name:contains
Optional
string

Web form name. Search for results that contain the specified characters in this parameter.

orderBy
Optional
string[]

Sorting options

with
Optional
string

With parameters

mode
Optional
string

Determines the detail level of the response body.


Responses

List of web forms retrieved successfully.

id
string

Unique identifier of the web form.

lastModified
string

Date and time when the web form was last modified.

name
string

Display name of the web form.

description
string

Description of the web form.

url
string

URL where the web form is accessible.

enabled
boolean

Indicates whether the web form is active.

authRequired
boolean

Indicates whether authentication is required to submit the web form.

embedded
boolean

Indicates whether the web form can be embedded in external pages.

standalone
boolean

Indicates whether the web form can be used as a standalone page.

webFormId
string

Unique identifier of the web form.

profileId
integer

Unique identifier of the user profile associated with the web form.

id
string

Unique identifier of the web form field.

sequence
integer

Display order of the field within the form.

label
string

Display label of the field.

type
string

Input type of the field (e.g., text, select, checkbox).

specialType
string

Special processing type for the field, if applicable.

placeholder
string

Placeholder text shown in the field before input.

defaultValue
string

Default value pre-populated in the field.

optionValues
string

Available option values for select-type fields.

mandatory
boolean

Indicates whether the field is required.

editable
boolean

Indicates whether the field can be edited by the user.

Request blocked by WAF

Empty response body.
Shell
curl -X GET \
  "https://{instance}.kiteworks.com/rest/webForms" \
  -H "Authorization: Bearer YOUR_TOKEN"
Python
import requests

url = "https://{instance}.kiteworks.com/rest/webForms"
headers = {
    "Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())
Responses
{ "data": [ { "id": "wf-001", "name": "Contact Form", "description": "General contact form", "url": "https://example.com/forms/contact", "authRequired": false, "enabled": true, "embedded": false, "standalone": true, "lastModified": "2024-03-01T10:00:00+00:00" } ] }
// Error - No Body
GET/rest/webForms/{id}

Get a web form

Returns the details of the specified web form, including its name, URL, authentication requirement, enabled state, and associated fields. Accessible by both authenticated and unauthenticated users, subject to the form's access rules.

Parameters
Path Parameters
id
Required
string

ID of the web form to be retrieved

Query Parameters
with
Optional
string

With parameters

mode
Optional
string

Determines the detail level of the response body.


Responses

Web form details retrieved successfully.

id
string

Unique identifier of the web form.

lastModified
string

Date and time when the web form was last modified.

name
string

Display name of the web form.

description
string

Description of the web form.

url
string

URL where the web form is accessible.

enabled
boolean

Indicates whether the web form is active.

authRequired
boolean

Indicates whether authentication is required to submit the web form.

embedded
boolean

Indicates whether the web form can be embedded in external pages.

standalone
boolean

Indicates whether the web form can be used as a standalone page.

webFormId
string

Unique identifier of the web form.

profileId
integer

Unique identifier of the user profile associated with the web form.

id
string

Unique identifier of the web form field.

sequence
integer

Display order of the field within the form.

label
string

Display label of the field.

type
string

Input type of the field (e.g., text, select, checkbox).

specialType
string

Special processing type for the field, if applicable.

placeholder
string

Placeholder text shown in the field before input.

defaultValue
string

Default value pre-populated in the field.

optionValues
string

Available option values for select-type fields.

mandatory
boolean

Indicates whether the field is required.

editable
boolean

Indicates whether the field can be edited by the user.

Forbidden

Possible error codes: ERR_ACCESS_USER

code
string

Error code

message
string

Error message

Request blocked by WAF

Empty response body.
Shell
curl -X GET \
  "https://{instance}.kiteworks.com/rest/webForms/:id" \
  -H "Authorization: Bearer YOUR_TOKEN"
Python
import requests

id = "VALUE"  # ID of the web form to be retrieved

url = f"https://{{instance}}.kiteworks.com/rest/webForms/{id}"
headers = {
    "Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())
Responses
{ "id": "wf-001", "name": "Contact Form", "description": "General contact form", "url": "https://example.com/forms/contact", "authRequired": false, "enabled": true, "embedded": false, "standalone": true, "lastModified": "2024-03-01T10:00:00+00:00" }
{ "errors": { "code": "ERR_ACCESS_USER", "message": "Insufficient access permissions" } }
// Error - No Body