Manage client ID & secret
Client ID & Secret key management
To access ServiceTitan APIs, your App must supply a Client ID & Secret key pair. As an App developer you can produce these or have your Tenant admin produce and configure.
Note: You will need one Client ID and Client Secret pair for tenant connection to your app. The Client ID, Client Secret, and Access Token are environment specific.
If you as an App developer want to generate and configure the credentials yourself, follow these steps to configure:
New Applications
Login to the Developer Portal
Select “My Apps” at the top of the page
Select “+ New App”
Fill all the required fields and scopes
Under “Client Credentials Management”, select “I, the app developer, will configure the credentials on behalf of each tenant”
Click “Create App”
Existing Applications
Login to the Developer Portal
Select “My Apps” at the top of the page
Click “Edit” on your application
Under “Client Credentials Management”, select “I, the app developer, will configure the credentials on behalf of each tenant”
Click Save
Generating a Client Secret
If you haven’t done so already, please add the client’s Tenant ID to your application. Once the Tenant Admin has allowed access and connected to your application through their “API Application Access” settings, you can begin the process of obtaining the tenant’s client ID and client secret in your developer portal:
Login to the Developer Portal
Select “My Apps” at the top of the page
Click “View Connections” for your app
Click “Generate” under Client Secret to create a new Client Secret
Reference the tenant’s Client ID on this page as well
Note: Until the Application is Allowed by the Tenant admin, you will continue to see the status as ‘Not Connected Yet’ as the status. Please contact your Tenant Admin if you see this message and ask that they connect to your app.
If you are a tenant admin and want to generate Client ID & Secret key
As a ServiceTitan admin, log into the ServiceTitan either in the integration or production environment.
Note: Client ID & Secret Key are specific to the environment in which they are generated and should be used accordingly.On the side menu, click Integrations>API Application Access.
The Manage API Application Access page opens.Click Connect New App. Existing apps, if any, are listed here.
Note: If you don't see the app you want to connect to ask the developer of the app to add your tenant ID through the developer portal.Choose the app to which you would like to connect.
The API scopes open (how the app wants to interact with your resources and data). You can choose to Allow or Decline access.
If you allow access, your Client ID & Secret Key are generated. Share the Client ID & Secret Key along with your Tenant ID to the app developer in a secure way. App developers will embed the Client ID & Secret Key into the app.
Note: Enabling a Client ID and Secret Key and sharing it with an app developer means, you, as the admin (resource owner), are granting access to the app to operate on your resources (data).
Note: If you have multiple tenants, say X number of tenants, then you need to obtain X tenant specific Client ID & Secret pairs.
ServiceTitan Developer: If you are a ServiceTitan developer, you will only have access to a Client ID and Secret Key for the integration environment. You can use the Integration environment to test your app. If you are marketing your app to a ServiceTitan customer, you should obtain the Client ID and Secret Key from the customer who wants to use your app.
Upgrade an existing App version
Sometimes developers add or remove API scopes. Adding new API scopes means access to more data for an app developer.
On the side menu, click Integrations>API Application Access.
The Manage API Application Access page opens.Look for the New Version Available tag and the Upgrade to New Version button.
Click Upgrade to New Version.
The API scopes opens. This is how the app wants to interact with your resources and data. You may choose to Allow or Decline access.
Newly added versions are highlighted in green. Removed versions are struck out.
Click Allow to accept the API scope changes. You will see an upgrade success message. Click Decline if you do not accept the API scope changes.
Note:You need not generate a new Client ID & Secret key after upgrading to a new version.Disabling Client ID & Secret
If you have previously enabled a Client ID & Secret Key and for some reason you want to disable it, you can. By disabling, you are pausing the previously granted access to the developer. In this state, the app cannot access your resources. You will still have the ability to restore access.
To Disable the Client ID & Secret Key
From Manage API Application Access, select the app from the list of apps that you want to disable.
Click Disable>Confirm and Continue.