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.

StatusBodyMeaning
200{"ok":true,"case_id":"500…"}Case created.
400bad_json, unknown_siteFix the request.
403origin_not_allowed, turnstile_failedYour origin isn't on the allowlist yet, or the bot check failed.
413too_largeBody over 32 KB.
422missing_required (with fields), or a Salesforce codeSalesforce or validation rejected the lead. Show the failure state; do not auto-retry.
503relay_unavailableSalesforce 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"}