Get started with API dev portal V2

Prev Next

Overview

Know what to do to get started with Version 2 (V2) of ServiceTitan APIs. Once you complete the first steps, visit developer.servicetitan.io for full access to self-serve tools, including documentation, reference, FAQs, and more to help you build powerful and dynamic integrations to address your business needs.


 Who uses this feature

  • Developers and office employees consuming APIs and managing other integrations for their business

  • To have an integration environment instance created, visit developer.servicetitan.io, then click Request Access. These instances are used for development and testing activities. For customers with production systems, your integration environment instance will be a clone of your production system and production data.  

Things to know

  • This is a quick reference guide to get you started. For a full version of all the items mentioned in this article, visit developer.servicetitan.io/docs/welcome/.

  • Tokens and information used in the images are for example only.

  • Administrators can access the Dev Portal directly by logging into their ServiceTitan account at https://developer.servicetitan.io/signin/ and using the Login as Production Environment User option. This can be used to generate or obtain your Client ID, Client Secret, and Tenant ID.

    Note: You must log in with your ServiceTitan account. You cannot log in with Enterprise Hub or Partner Portal logins.

API infrastructure

Before you start using our API dev portal, understand how it works, including how it validates key pairs, returns access tokens, and how to make a successful call.

Our V2 APIs offer a range of endpoints for features like Jobs, Projects, Invoices, Payroll, Pricebook, and more. We follow OAuth2.0 protocol and machine-to-machine grant flow.

A successful V2 API call looks like this:

  1. Call OAuth 2.0 API, Pass Client ID and Secret Key. ServiceTitan validates the key pair and returns an access token.

  2. Call individual API & Pass Access Token and App Key. ServiceTitan validates credentials and processes the API call.

For more information, see Make your first API call.

Step 1: Create an app

Before you start using our dev portal, you'll need to create an app and generate an app key to move to the next step:

  1. Go to developer.servicetitan.io.

  2. Click Login to My Apps.

  3. In the ServiceTitan Customers section, click Login as Integration Environment user or Login as Production Environment User.
    The ServiceTitan sign-in screen appears.

    Note: Selections are based on your account access.

  4. Enter your ServiceTitan credentials to sign in.

  5. In My Apps, click +New App.

  6. Enter your app details in all the fields.

    1. In the Tenant(s) section, add tenant IDs.

    2. In API Scope, select your endpoints.

  7. An Application created! confirmation appears.

  8. In the Keys > Application Key section, copy your key. You'll need it to generate a Client ID and Secret Key.

Step 2: Generate a Client ID and Secret Key

Now that you've created an app and generated an app key, you'll need to generate a Client ID and Secret Key:

  1. In ServiceTitan, go to the top toolbar and click Settings A simple icon representing a settings gear. .

  2. In the side panel, search for Integrations.

  3. Click API Application Access.

    The Manage API Application Access section opens.

  4. Click Connect New App.

    A Connect New App pop-up opens to the available app for your account.

  5. Find the application you want and click to select it. The list of available options is generated from the apps you created in Step 1. If you can't find your app, please contact Technical Support.

  6. Click Connect. A message appears, asking you to access your account.

  7. Review the access request. If it's correct, click Allow Access.

    An App connected! message appears.

  8. In Application Details > Client ID, copy your Client ID. Go to Client Secret and click Generate to generate a secret key.

  9. Share the Client ID and Secret Key with your app developer.

Note: Depending on the app you are trying to connect, the setup may differ from what appears in this article.

Additional API dev portal V2 resources

Want to learn more?