Pull ServiceTitan customers and import them as leads in one call.
POST/api/v1/integrations/servicetitan/sync-customers
Reads the tenant's ServiceTitan credentials from integration_configs, paginates through /crm/v2/customers, filters to mobile-phone customers modified within a lookback window, and bulk-imports them into a newly-created lead_list tagged "st-sync-{date}" (override via "tag"). Default filter: mobile-only, active, modified in last 12 months. Use dry_run=true to preview without writing. Pair with POST /v1/campaigns target=tag:"st-sync-..." for an end-to-end promo flow. Scope: write_crm.
Request
Responses
- 200
- 400
- 401
- 403
- 502
Sync result (or dry-run preview)
Missing or invalid parameters
Invalid or missing API key
API key lacks the required scope for this endpoint
ServiceTitan API error