Guardian Lead Relay
One endpoint that takes website form submissions from any Guardian Recovery brand site and creates the lead in Salesforce. Internal service; for the full integration guide ask marketing.
Embed on a static HTML site
<script async src="https://175166.tctm.co/t.js"></script>
<script src="/v1/gr-forms.js" data-site="guardianrecovery" data-phone="+18667053233" defer></script>
<form data-gr-lead data-form-type="callback" data-location="hero"
data-vertical="sud" data-state="FL" data-geo="Florida">
<!-- first_name, last_name, phone, help_for (Self | Loved One),
.gr-rel-field > caller_relationship, insurance, sms_optin -->
</form>
Use the script's absolute URL on your own domain. See the complete example form. The SDK handles first-touch attribution, the conditional relationship dropdown, double-submit protection, the payload, thank-you and error states.
Post directly (React, Next.js, anything)
POST /v1/lead with Content-Type: application/json and a body of { form_meta, lead, marketing_data }. Include form_meta.site. The response is {"ok":true,"case_id":"…"}; treat anything else as failure.
| Status | Body | Meaning |
|---|---|---|
| 200 | {"ok":true,"case_id":"500…"} | Case created. |
| 400 | bad_json, unknown_site | Fix the request. |
| 403 | origin_not_allowed, turnstile_failed | Your origin isn't on the allowlist yet, or the bot check failed. |
| 413 | too_large | Body over 32 KB. |
| 422 | missing_required (with fields), or a Salesforce code | Salesforce or validation rejected the lead. Show the failure state; do not auto-retry. |
| 503 | relay_unavailable | Salesforce unreachable. Show the failure state. |
Testing
Use the last name QA Ignore exactly. Those Cases are recognised as tests and can be cleaned up; any other name reaches a real admissions specialist.
Health
GET /v1/health → {"ok":true,"version":"1.0.0","mode":"live"}