---
updatedAt: 2025-09-25T21:07:04.000Z
agentTools:
  projectIndex: https://developers.toriihq.com/llms.txt
---

# Quickstart - Introduction to Custom Integrations

Build your first custom integration in 10 minutes.

In this tutorial, you will learn how to create an app within Torii. You will send this app data about users, licenses, and usage using Torii's REST APIs. This tutorial should take approximately 10 minutes, even if you have no prior experience building custom integrations.

By the end of this guide, you will have a custom app called **Hello World** with data about users and their usage of licenses in the app.

You can follow the documentation for detailed instructions and screenshots or watch this tutorial video on building your custom integration.

<Embed url="https://www.youtube.com/watch?v=HqO0bVqAfKw" title="Build your first integration in less than 10 minutes!" favicon="https://www.google.com/favicon.ico" image="https://i.ytimg.com/vi/HqO0bVqAfKw/hqdefault.jpg" provider="youtube.com" href="https://www.youtube.com/watch?v=HqO0bVqAfKw" typeOfEmbed="youtube" html="%3Ciframe%20class%3D%22embedly-embed%22%20src%3D%22%2F%2Fcdn.embedly.com%2Fwidgets%2Fmedia.html%3Fsrc%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252FHqO0bVqAfKw%253Ffeature%253Doembed%26display_name%3DYouTube%26url%3Dhttps%253A%252F%252Fwww.youtube.com%252Fwatch%253Fv%253DHqO0bVqAfKw%26image%3Dhttps%253A%252F%252Fi.ytimg.com%252Fvi%252FHqO0bVqAfKw%252Fhqdefault.jpg%26key%3D7788cb384c9f4d5dbbdbeffd9fe4b92f%26type%3Dtext%252Fhtml%26schema%3Dyoutube%22%20width%3D%22854%22%20height%3D%22480%22%20scrolling%3D%22no%22%20title%3D%22YouTube%20embed%22%20frameborder%3D%220%22%20allow%3D%22autoplay%3B%20fullscreen%22%20allowfullscreen%3D%22true%22%3E%3C%2Fiframe%3E" />

### Prerequisites

Before you begin, ensure you complete the following steps:

1. Ensure you have a trial or active subscription to Torii.

### Step 1:  Create your API Key using the steps in [Getting Started with the Torii API](https://developers.toriihq.com/docs/getting-started)

1. Follow the steps to create your API key.

### Step 2:  Create a custom app in Torii

This example uses a **Custom Application** called **Hello World**.

1. In the **Settings** tab view, select **[Custom Applications](https://app.toriihq.com/team/settings/customApps)**, then select **Add application** from the right side of the page.

<Image align="center" className="border" border={true} src="https://files.readme.io/adf74b1-custom_applications.png" />

2. Fill out details for the app and select **Add Application**.

<Image align="center" className="border" border={true} src="https://files.readme.io/0bde328-add_custom_app_detail.png" />

### Step 3:  Add a custom integration for your app

1. Select the **Integrations** tab and scroll to the bottom of the page. Select the **Add Custom Integration** tile.

<Image align="center" className="border" border={true} src="https://files.readme.io/2e72239-add_custom_integration_on_integrations_page.png" />

2. A dialog box will pop up. Select the **Hello World** app you just added to Torii.

<Image align="center" className="border" border={true} src="https://files.readme.io/99776fb-add_custom_integration_search_for_app.png" />

3. Select **Add Integration**.

<Image align="center" className="border" border={true} src="https://files.readme.io/c1a07d9-add_custom_integration_add_integration.png" />

4. Select **Copy App account ID**. This ID will be used in our API calls.

> 📘 Tip
>
> You can retrieve this App account ID at any time in the future. If you lose the App account ID, you can navigate to the integrations page and hover over the corresponding app tile.

<Image align="center" className="border" border={true} src="https://files.readme.io/fff2398-add_custom_integration_copy_account_id_blurred.png" />

<Image align="center" className="border" border={true} src="https://files.readme.io/2e5730a-view_custom_integration_app_account_id_on_integrations_page.png" />

### Step 4:  Use the [Get URL call](https://developers.toriihq.com/reference/getfilesurl) to create the file

1. Within the  **API Explorer**, navigate to **[Get URL](https://developers.toriihq.com/reference/getfilesurl)**. Within that page, under **QUERY PARAMS**, change the **name** query string parameter to **hello\_world**.
2. On the right side of the page, set the **Authentication** token value as your App Account ID that you copied in the previous section.

<Image align="center" className="border" border={true} src="https://files.readme.io/9f3caa9-get_url_config_filename_param.png" />

2. Set the **type** query string parameter to **customIntegrationData** using the example value provided.

<Image align="center" className="border" border={true} src="https://files.readme.io/a10d291-get_url_config_type_param.png" />

3. Select the **Try It** button within the **cURL** section on the right side of your page.

![](https://files.readme.io/5268aa5-get_url_configured_try_it.png)

4. This should result in a generated response that will include the **url** and the **filePath** to be used in the next steps. **Copy the entire response** to a text editor or similar tool where it will be accessible. You will need the data in this response in the upcoming steps. **You will only have 5 minutes to submit the next request**

> 📘 Tip
>
> You can use a tool like [JSON Editor Online](https://jsoneditoronline.org/#left=local.vetepe) to temporarily store your responses so you can use the data in API Explorer.

### Step 5:  Upload JSON file that contains your users, licenses, and usage dataStep

Below is a button that allows you to paste the value from **url** that you received in your **Get URL** response directly into a Postman request.  This [guide](https://developers.toriihq.com/docs/using-postman-to-validate-your-json-payload) provides additional information on using Postman to validate your JSON payload.  Select the 'Upload Users and Licenses' request and either use the example JSON or format the data you require.  See Screenshot below.

<Image align="center" className="border" border={true} src="https://files.readme.io/53f3bb8-example_json_upload_file.png" />

[![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/19631555-9c6c389b-3e02-4a51-a1cc-237adf8a64e3?action=collection%2Ffork\&source=rip_markdown\&collection-url=entityId%3D19631555-9c6c389b-3e02-4a51-a1cc-237adf8a64e3%26entityType%3Dcollection%26workspaceId%3D0e91e34f-cc1a-4233-b040-d5ddb2c7aa90)

### Step 6: Use the [GET File ID](https://developers.toriihq.com/reference/postfiles) request

1. Navigate to  [GET File ID](https://developers.toriihq.com/reference/postfiles) and find the **BODY PARAMS** section. In the **path string**, paste the **filePath** value that we generated in the **GET URL** response in **Step 4**. The value for **type** should always be **customIntegrationData** - do not change the default in the API Explorer, and ensure this is set in your code when building.  Select **Try It!**

<Image align="center" className="border" border={true} src="https://files.readme.io/cb9d475-get_file_id_configure_path_blurred.png" />

2. In the response, look for an **HTTP 201** success code, with the **id** of the file in the body. Copy this **id** value for use in the next step.

![](https://files.readme.io/a5fa9a6-get_file_id_success_201_response_with_id_blurred.png)

### Step 7:  Use [Sync Integration](https://developers.toriihq.com/reference/putservicessynccustom) to push the contents of the file to the Torii DB so it can be viewed through the console

1. Navigate to the [Sync Integration](https://developers.toriihq.com/reference/putservicessynccustom) page. Under **BODY PARAMS**, paste your **id** value from the **Step 6** into the **idFile string** field. Paste **App account ID** from **Step 3**. Select **Try It**.

<Image align="center" className="border" border={true} src="https://files.readme.io/331aa8a-sync_integration_setup_blurred.png" />

2. Look for an **HTTP 200** response code with success set to **true** as in the screenshot below.

<Image align="center" className="border" border={true} src="https://files.readme.io/417deaf-sync_integration_success_blurred.png" />

3. Within Torii, navigate to the **Integrations** tab. Find the tile for your custom integration, **Hello World**. Confirm that you see a green check for your custom integration. This indicates a successful connection.

<Image align="center" className="border" border={true} src="https://files.readme.io/53dccd4-integration_connect_success_torii.png" />

4. To confirm that your example usage data was pushed, navigate to the **Licenses** tab and find **Hello World** from the list of applications. You should see active and inactive licenses listed on the **Licenses** page.

<Image align="center" className="border" border={true} src="https://files.readme.io/bbd9c3b-hello_world_licenses_page.png" />

> 👍 Congratulations!
>
> You successfully created and integrated an app with Torii! You also sent data about users, licenses, and usage. That's one less shadow IT app in your ecosystem (even if you built it in the first place).