The "authentication failed: Bad Request: {error: 'invalid client'}" error typically indicates that there's an issue with the client credentials used to connect ServiceTitan (ST) to Zapier. Here’s how you can troubleshoot and resolve this issue:
Steps to Resolve the "invalid client" Authentication Error:
1. Verify Client Credentials:
- Ensure that the client ID and client secret you are using in Zapier are correct. These credentials are typically provided by ServiceTitan when you register your app or integration.
2. Check Redirect URI:
- Make sure that the redirect URI specified in ServiceTitan matches the one expected by Zapier. Any mismatch here can cause an "invalid client" error.
3. Regenerate Credentials:
- If you suspect that the credentials might be incorrect or compromised, regenerate the client ID and client secret in ServiceTitan and update these in Zapier.
4. Clear Cache and Re-authenticate:
- Sometimes, stale data in your browser or application cache can cause authentication issues. Clear your cache or try re-authenticating in an incognito window.
5. Review ServiceTitan's API Documentation:
- Ensure that you are following the latest guidelines from ServiceTitan's API documentation for authentication. Any updates or changes to their API can impact how you need to set up the connection.
6. Check for Typos:
- Double-check for any typos or formatting issues in the client ID, client secret, or any other fields you are entering.
7. Contact ServiceTitan Support:
- If you have verified all the above steps and still face issues, it might be helpful to contact ServiceTitan support. They can provide specific insights or check if there are any issues on their end.
Example Configuration Steps:
Obtain Client Credentials:
- Go to your ServiceTitan developer portal.
- Register your application to obtain the client ID and client secret.
Set Up Authentication in Zapier:
- In Zapier, go to the "My Apps" section.
- Add a new connection for ServiceTitan.
- Enter the client ID and client secret obtained from ServiceTitan.
- Ensure that the redirect URI matches what is set in your ServiceTitan app configuration.
Test the Connection:
- Attempt to reconnect or re-authenticate.
- If successful, you should see a confirmation in both Zapier and ServiceTitan.
Additional Resources:
By following these steps, you should be able to resolve the "invalid client" error and successfully connect ServiceTitan to Zapier.
If you continue to experience issues, providing specific details about the steps you’ve taken so far can help in diagnosing the problem further.