AFI AFI

ServiceTitan

Estimated reading: 2 minutes Updated August 1, 2026

ServiceTitan is a field service management platform for home and commercial service businesses. Advanced Form Integration creates leads in ServiceTitan from WordPress form submissions using the ServiceTitan API.

What you’ll need

  • An active ServiceTitan account.
  • Your ServiceTitan API credentials (see below).
  • The Advanced Form Integration plugin installed and activated.

Get your ServiceTitan API credentials

  1. Sign in to the ServiceTitan Developer Portal.
  2. Create a new application and note the App Key, Tenant ID, Client ID, and Client Secret.
  3. Select your Environment (Production or Sandbox).
  4. In WordPress, go to AFI → Settings → ServiceTitan.
  5. Click Add Account, enter all four credentials plus the environment, and give the account a name.
  6. Click Save.

AFI authenticates via the OAuth2 client credentials flow. The token is cached and refreshed automatically. The App Key is sent as a header on every request, and the Tenant ID identifies your ServiceTitan environment.

Create the integration

  1. Go to AFI → Add New.
  2. Give the integration a name, for example Form to ServiceTitan.
  3. Under Trigger, pick the form plugin and the specific form.
  4. Under Action → Platform, select ServiceTitan.
  5. In Task, choose Create Lead.
  6. Pick the saved account.
  7. Map your form fields onto the fields listed below.
  8. Optional: open Conditional Logic to limit which submissions are sent.
  9. Click Save Integration.

Screenshot: AFI field-mapping screen with ServiceTitan lead fields visible

Tasks supported

Create Lead

Creates a lead in ServiceTitan via the leads API.

Field Field key Required Notes
Name name No
Phone phone Recommended
Email email No
Address address No
City city No
State state No
Zip zip No
Business Unit ID business_unit_id No
Job Type ID job_type_id No
Campaign ID campaign_id No

Pro features

The Pro integration extends the free version with additional capabilities. Pro uses the same ServiceTitan connection.

Feature comparison

Feature Free Pro
Create lead
Standard lead fields
OAuth2 client credentials flow
Custom fields No

Conditional logic example

Only send data to ServiceTitan when specific conditions are met. For example, add a condition on a form field to control which submissions are forwarded.

Troubleshooting

Nothing arrives in ServiceTitan

Open AFI → Log and find the most recent entry. AFI stores the request URL, body, and raw response.

API credentials rejected

Verify your credentials in your ServiceTitan account settings. If they were regenerated, update them in AFI → Settings → ServiceTitan.

Related docs