API connections allow form templates to automatically retrieve information from other Asite forms or external systems. Internal API Connections can retrieve data from forms within the same Project or from other accessible Projects. External API Connections can pull information from third-party systems using a configured API request.
Required Privileges
Privilege | Description |
Certified App Builder Designer | Allows users to create and manage AppBuilder apps, form templates, and API Connections. |
NOTE: This privilege is enabled by Asite Support at the user level. Contact support@asite.com for assistance.
How Do I Create an API Connection?
Select the required Project.

Navigate to the Projects tab.

Right-click the Project and select Apps > Edit App Settings.

In the Manage App Settings pop-up, click the Edit icon for the required app.

NOTE: The chosen Form must have an Active status.
In the Edit App Settings pop-up, navigate to Form Template Settings.
Click Edit next to the uploaded form template.

In the App Template Editor, click the three-dot menu (top-right).

The API Connection Editor pop-up will open.

Click Add Connection.

API Connections
API Connections can be created in two ways:
Connection Type | Description |
Internal API Connection | Retrieves data from within the Asite platform. |
External API Connection | Retrieves data from an external source using an API request. |
Create an Internal API Connection
Internal API connections are used to access data available within the Asite platform.
In the Create API Connection pop-up, fill in the basic information.
For additional information on these fields, check Internal API Connection – Basic Information.

Click Next.

In the API Filters screen, enter values for the available fields.
The filters define the data the API connection will retrieve.
For Project Name, select a Project from the dropdown list in the Value column.

For Form Name, select a form from the dropdown list in the Value column.

NOTE: The Field and Operator fields are system-defined and cannot be edited. Use the Value dropdown to select the required filter value.
Click Next to open the Response section.

Click Test Run to verify that the API Connection returns the expected data.

NOTE: A successful test run displays the XML API response in Results. If the test is unsuccessful, an empty XML response is displayed.
After a successful test, click Save.

A pop-up confirmation will appear when the API Connection has been established.

Create an External API Connection
In the Create API Connection pop-up, complete the required details:
Name
API Link
Append URL
OAuth
Description
For additional information on these fields, check External API Connection - Basic Information.

Click Next.

Add any required query parameters.
Key - Enter the parameter name.
Value - Enter the value to pass for the parameter.

Under the Body tab, select the required body type.
Form Data - Use when the API expects data as form fields in a key-value format.
Raw - Use when the API expects the request body in a raw format such as JSON, XML or plain text.
x-www-form-urlencoded - Use when the API expects form values encoded in URL format.

After adding filters, click Next to continue to the Response section.

NOTE: Click Back to return to the previous section or Cancel to exit the setup.
Click Test Run.

A successful test run displays the XML API response in the Results. If the test is unsuccessful, an empty XML response is displayed.

After a successful test, click Save.
How Do I Use an API Connection in a Form?
After an API Connection has been created, it can be added to a form field using the Code Editor.
Open the App Template Editor.

Select the form field where the API connection should be added.

In the Properties panel (top-right), select Advanced.

Under Events, select the required trigger for the API Connection.

NOTE: For detailed information on event triggers, see Events Properties in AppBuilder Designer.
Clicking the trigger will open the Code Editor pop-up.

Configure the API connection logic in the editor.

NOTE: For more information on AppBuilder Code Editor, see Blocks and Block Categories in AppBuilder Code Editor.
Click Done to save the configuration.
Click Publish to make the changes live.
API Connections - Basic Information
Internal API Connection – Basic Information
Option | Description |
Name | Enter a name for the API Connection. |
API Link | From the dropdown, choose from the available options:
|
Description | Enter a suitable description. |
External API Connection - Basic Information
Option | Description |
Name | Enter a name for the API Connection. |
API Link |
|
Append URL |
|
OAuth | Check the OAuth checkbox if the API requires OAuth or token-based authentication.
NOTE: For more information on how to create an OAuth Integration, check OAuth Integration for External Systems. |
Description | Enter a suitable description. |
Additional Resources
Watch the following demo videos to learn how to use API Configuration.
Learn how to connect Asite forms using API Configuration.
Learn how to connect to an external source using API Configuration.








