Lead Capture API Docs

Documentation for Rechat's Lead Capture API.

Capture leads using a known lead channel ID (webhook).

post

Integrate Rechat's lead capture functionality into your website using your lead_channel id (which you can get through Rechat's Lead Routingarrow-up-right interface).

Path parameters
lead_channelstring ยท uuidRequired

Your lead channel ID. This serves as both the endpoint identifier and authentication key.

Example: 55f50bdd-fc93-4737-84e4-6fa5ad97745f
Body

JSON payload for Rechat's lead capture API. All fields are optional.

first_namestringOptional

Contact's first name

Example: John
last_namestringOptional

Contact's last name

Example: Doe
emailstring ยท emailOptional

Contact's email address

Example: [email protected]
phone_numberstringOptional

Contact's phone number

Example: (555) 123-4567
tagstring[]Optional

Array of tags for categorization

Example: ["Lead","Website Inquiry"]
lead_sourcestringOptional

Source of the lead

Example: Lead Capture Demo
notestringOptional

Additional notes or messages

Example: Interested in downtown properties
referer_urlstring ยท uriOptional

Referring URL

Example: https://example.com/property/123
Responses
chevron-right
200

OK

application/json
codestringOptionalExample: OK
post
/leads/channels/{lead_channel}/webhook

Post activity to a lead's timeline

post

Track contact activities such as viewing listings, creating searches, signing up, and other interactions. This endpoint allows you to post various activity types to a contact's timeline for better engagement tracking.

Path parameters
lead_idstring ยท uuidRequired

The UUID of the lead/contact

Example: 0e17f1d9-b9cb-4732-9185-fd80f990f693
Body

Payload for posting activities to a contact's timeline. Different activity types require different fields.

actionstring ยท enumRequired

The type of activity being reported

Example: ContactViewedListingPossible values:
notesstringOptional

Optional notes about the activity

Example: User showed strong interest in this property
Responses
chevron-right
200

Activity posted successfully

application/json
successbooleanOptionalExample: true
post
/leads/{lead_id}/timeline

Reassign a lead to different agents or team members

put

Reassign an existing lead to different agents or team members. This endpoint updates the assignees for a lead, replacing the current assignees with the new ones provided in the request body.

Path parameters
lead_idstring ยท uuidRequired

The UUID of the lead/contact to reassign

Example: 0e17f1d9-b9cb-4732-9185-fd80f990f693
Bodyobject ยท Assignee[]

Agent or team member assigned to the lead

emailstring ยท emailOptional

Assignee's email address

Example: [email protected]
phone_numberstringOptional

Assignee's phone number

Example: (555) 987-6543
first_namestringOptional

Assignee's first name

Example: Jane
last_namestringOptional

Assignee's last name

Example: Smith
mlsstringOptional

MLS board name

Example: NTREIS
mls_idstringOptional

Assignee's MLS ID

Example: 12345678
Responses
chevron-right
200

Lead reassigned successfully

application/json
successbooleanOptionalExample: true
messagestringOptionalExample: Lead reassigned successfully
put
/leads/{lead_id}/assignees

Last updated

Was this helpful?