Connect your website to the lead queue.
Keep the forms you already use and send homeowner inquiries to the right TuCasa workspace. Create separate sources for estimate pages, contact forms or lead feeds.
Create a source
In Lead forms, open API sources and name the form or feed you’re connecting. Copy its endpoint and token when TuCasa displays them.
Send the request from your server
Keep the bearer token in server-side settings. Have your website or form service send the JSON request when a homeowner submits the form.
Check the lead queue
Send a controlled test and confirm the homeowner and service appear in the intended workspace. Check Identity review for requests returned with a 202 response.
Lead intake API
Use the source-specific endpoint shown in the workspace. Send JSON with Authorization, Content-Type and Idempotency-Key headers.
Required fields
Send a UUID in request_id that matches the idempotency header, first_name, an email or US phone, service and contact_ok set to true when you have permission to contact the homeowner.
Optional fields
Add last_name, a US state abbreviation, five-digit zip, property_address, project_scope or channel.
Services include roofing, solar, battery_backup, hvac, windows_doors, other.
Channels include paid, organic_search, organic_social, referral, direct, unknown, manual.
Example request
POST https://tucasacrm.com/api/leads/<source-id>
Authorization: Bearer <source-token>
Content-Type: application/json
Idempotency-Key: 00000000-0000-4000-8000-000000000000
{
"request_id": "00000000-0000-4000-8000-000000000000",
"first_name": "Sam",
"last_name": "Example",
"email": "sam@example.test",
"service": "roofing",
"channel": "direct",
"project_scope": "Homeowner requested a roof inspection.",
"contact_ok": true
}Responses
- 200
- Accepted
The inquiry was recorded. Keep the request ID with the submission receipt. - 202
- Identity review
The inquiry was saved for a manager to resolve an uncertain contact match. - 400
- Invalid request
Check the required fields, JSON body and matching request IDs. - 401
- Unauthorized
Check the source endpoint and bearer token. Confirm the source is enabled. - 409
- Request conflict
That request ID was already used with a different payload. - 415
- Unsupported media type
Send the request with Content-Type: application/json. - 503
- Temporarily unavailable
Retry with backoff using the same request ID and unchanged payload.
Frequently asked questions
Can I use a form builder or lead feed?
Yes, if your integration can send a server-side JSON POST and set the required headers. Use a separate intake source for each feed you want to manage independently.
Can I retry the same inquiry?
Yes. Retry with the same UUID and payload. A different payload with the same ID returns a conflict.
How do I replace a token?
Open Manage source and choose Replace token. Save the new token to your integration right away. The earlier token stops working immediately.