Lead Capture API Docs

Documentation for Rechat's Lead Capture API.

On success, you may receive:

Response

  • Atomic parts follow the PostGIS stdaddr model.

  • line1, line2, and full can be provided directly.

  • If omitted, Rechat generates them from atomic fields.

address is an object. You can send atomic parts or full lines.

Address payload

source_type is required. Everything else is optional.

  • application/json

  • XML (LTS format)

  • application/x-www-form-urlencoded

The endpoint accepts:

Request format

lead_channel is both the endpoint identifier and the auth key.

Get it from Lead Routing in Rechat. See Lead Routing.

You need a lead_channel ID.

Before you start

Integrate lead capture into your site using Rechatโ€™s webhook.

  • 200 OK with the created lead record.

  • 204 with no content.

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 Routing interface).

Path parameters
lead_channelstringRequired
Body

Example JSON payload for Rechats lead capture API. All fields are optional with this exception of source_type, which must be specified.

first_namestringOptional

Contact's first name (optional)

Example: John
last_namestringOptional

Contact's last name (optional)

Example: Doe
emailstringOptional

Contact's email (optional)

Example: [email protected]
phone_numberstringOptional

Contact's phone number (optional)

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

An array of strings to be used as tags for categorization (optional)

Example: ["website_inquiry","new_leads"]
lead_sourcestringOptional

Source of the lead (optional)

Example: real_estate_website
notestringOptional

Additional notes or messages (optional)

Example: This is a note!
addressstringOptional

Property address of interest (optional)

Example: 123 Main Street, City, State 12345
referer_urlstringOptional

Referring URL (optional)

Example: https://example.com/property/123
mlsidstringOptional

MLS listing ID (optional)

Example: 22425783
agent_mlsidstringOptional

Agent's MLS ID (optional)

Example: 12345678
source_typestringOptional

Required string representing the source type (Website, in this case).

Example: Website
Responses
post
/leads/channels/{lead_channel}/webhook

Last updated

Was this helpful?