Create Form Link

Prev Next
Post
/forms/createlink/{FORM_ID}

This API creates a link to a specified organizational form that can be sent to the customer to fill and/or sign.

Path parameters include the Form ID (appears next to the name of the form in the forms list screen).
Body Params:
Data – A JSON string consists of the following fields:
• streamProviderId – The identifier of the receiving customer by their phone number or email.
• streamProviderType – The type of the streamProviderId: 4 for email, 5 for phone number.
• referringObjectId (optional) – When the form link is opened, a new form object is created in the system. This object can be linked to another object, for example the initiating conversation, to give the agent an indicator of the filled form.
• properties (optional) – a JSON string contains initial values for the form fields. When the customers open the form, those are the values they will see.
The format includes the exact name of the field as it appears in the form, with the initial value as follows:
{“field 1 Name”: “field 1 Value”, “field 2 Name”: “field 2 Value”, etc…}
For example: {“first_name”: “First Name”, “last_name”: “Last Name, “uniqueId” : “123-45-6789”}

autoUpload - A Boolean field (optional)
• When true: The system automatically finalizes and uploads the form to S3, and a new object is created with no additional action required from the customer. In a typical use case, the information in the form came from a bot or other internal mechanisms.
• When false (default): The system only creates a link that needs to be sent to the customer. Object is created when the customer clicks Send.

Security
HTTP
Type bearer

API key is needed to authorize requests. You can get your API key via the management console.
A Bearer Token is needed to be set in the Authorization header of every API call.
For additional support you can contact us.

Path parameters
FORM_ID
Required

Form Id - Form number (as seen on the forms list screen)

Body parameters
Expand All
object
data
object
streamProviderId
string

The identifier of the receiving customer by their phone number or email

Example19175552345
streamProviderType
integer

4 for email, 5 for phone number

Example5
referringObjectId
integer (int64)

The object ID of the conversation related to the Form

Example312345
autoUpload
boolean

When 'true', the form is finalized and uploaded to S3 with no additional action required by the customer

Exampletrue
properties
object
field_0
string
ExampleJohn
field_1
string
ExampleDoe
my_own_field
string
Example123456
Responses
200

OK

Expand All
object
status
string
Example200
description
string
ExampleOperation successful
response_time
string
Example2024-08-06T07:51:52.2581942Z
data
object
conversation_id
string
Example312345
form_link
string
Examplehttps://apps.commbox.io/form/commbox/499fdc93aa804a4b8266251224944d6a
400

Bad Request - The request could not be understood by the server. Incoming parameters might not be valid

401

Unauthorized - The supplied credentials, if any, are not sufficient to access the resource

404

Not found - The requested resource is not found

429

Too Many Requests - Too many requests have been made in a short period of time (Throttling)

500

Server Error - The server could not return the representation due to an internal server error

501

Not Implemented - The requested operation is not supported