APIS & INTEGRATIONS
XForms Mobile APIs & integrations
XForms uses RESTful APIs to communicate between its mobile apps, reporting/admin web app, and its form template designer toolset. This same set of APIs can also be used by other software tools to leverage the power of XForms’ field data capture into other systems.

GENERALIZED USE CASE
Capture in the field, report anywhere
With the XForms APIs, you could use XForms for field data capture, and then extract that data out of the XForms database for insertion into your existing enterprise reporting dashboard software.

DEVELOPER GUIDE
Basic actions
How to update a reference-list
To update any type of document, such as Form, Template, and Reference-List, you must follow these steps:
- Authenticate and obtain the Access-Token
- Get Reference-list ID (if not available)
- Read the reference-list
- Write the updated reference-list
Obtain auth-token
Before calling any endpoint in the XForms API, you need to obtain an access token. The Access-Token then needs to be sent along with any other requests.
Token
| URL | https://api.xformsweb.com/identity/token |
|---|---|
| Request type | POST |
| Request body |
|
| Response body |
expires_in is the number of seconds until the token expires. |
| Comments | The value of access_token must be preserved and used for subsequent calls. |
Get reference-list’s ID
The reference-list can be downloaded using its ID. If the ID is not available, you can first get a list of existing reference-lists with their IDs.
List of reference-lists
| URL | https://api.xformsweb.com/contents/type/refList?select=id,name |
|---|---|
| Header | Authorization: Bearer <access-token> |
| Request type | GET |
| Response body |
|
| Comments | By adding the “select” parameter in the URL above, you can request only certain fields from the document. |
Get reference-list by ID
If the reference-list ID is available, the full document can be retrieved by calling the get-by-ID endpoint.
Reference-list by ID
| URL | https://api.xformsweb.com/contents/9488501c-c27b-4b14-9890-8cfff3bd3349 |
|---|---|
| Request type | GET |
| Header | Authorization: Bearer <access-token> |
| Response body |
|
Updating a reference-list
The updated reference-list can be uploaded to the server by calling the PUT endpoint. Please note that only the “items” part of the reference-list can be updated. Changing the name or ID might break the link between the reference-list and the forms.
Reference-list by ID
| URL | https://api.xformsweb.com/contents/9488501c-c27b-4b14-9890-8cfff3bd3349 |
|---|---|
| Request type | PUT |
| Header | Authorization: Bearer <access-token> |
| Request body |
|
INTEGRATIONS
Connect XForms to the rest of your software
You can also use most third-party integration tools such as Zapier, Make.com, Integrately, etc. to connect XForms to other software. Some example integrations are listed below.

AIRTABLE
Using XForms + Airtable to build a low-cost EHS and safety incident investigations management system
Need help connecting XForms to your systems?
Talk to us about connecting XForms to your existing software.



