The request
Send the request from a server, never from the visitor’s browser, so the secret stays private.
Carescale stores the submission and answers
200 at once, then creates or updates the lead within seconds. Every other answer means the submission was refused and not stored. See Troubleshooting.
The body
Send one flat JSON object. Each key is one form question, and its value is the answer.- Keys become labels.
first_namereads “First name” andbestTimeToReachreads “Best time to reach”. Carescale matches each label to a lead field, so plain words work best. - Values are strings or numbers. A list of strings works for a question with several answers. An empty string counts as unanswered. Nested objects are ignored.
- Unmatched answers are kept. Carescale keeps every answer on the lead, word for word, even when it can’t match it to a lead field.
Example
200 answer reads Received.
Who the inquiry is for
When someone fills in a form for a loved one or a client, send both people. Carescale makes the person the inquiry is about the lead, and records the person who filled in the form as the caller.who_for: “Myself”, “A loved one” or “A client I’m referring”.first_name,last_name,phone,email: the person the inquiry is about.your_first_name,your_last_name,your_phone,your_email,relationship: the person filling in the form.
Campaign tracking
Send these keys, usually from hidden fields filled from the landing page’s address, and Carescale records them on the new lead’s referral history:utm_source, utm_medium, utm_campaign, utm_term, utm_content, gclid, landing_page
Any spelling of these works, such as UTM Source or utmSource. Values are capped at 2,000 characters.
File uploads
Send an insurance card photo as its URL underinsurance_card_front or insurance_card_back. Carescale links those keys to the lead’s insurance card and downloads each file in the background:
- HTTPS only, from the same host as
source_url, with no port and no login. - JPEG, PNG, WebP, HEIC or PDF, at most 20 MB.
- At most 3 redirects, each on the same host.
- A busy or unreachable site is tried again 10 and then 50 minutes later.
- At most 10 files from one submission. Any more show on the lead as not retrieved.