# The lead address

> A private address that adds leads to the CRM, sent from your website's form, a referral partner, or a tool like Zapier or n8n.

The lead address is a private web address that adds a lead to your CRM. Anything that can send a web request can use it: your website's enquiry form, a referral partner's system, or a tool like Zapier or n8n. Each lead lands in your pipeline with its source, and the person it is from is found or made, so nobody has to type it in.

It is off until an owner or admin turns it on, under **Settings · Lead address** in the CRM.

## Turn it on

:::steps
1. In the CRM, open **Settings · Lead address** and press **Turn on the lead address**.
2. Press **Copy** beside **The address**.
3. Under **Its source**, choose what a lead that does not say where it came from is given, such as **Website**, and press **Save**.
4. Paste the address into your website's form, your partner's system or your tool, as below.
:::

The page shows who made the address and when. Treat the address like a phone number you hand out: whoever has it can add leads, and nothing else. It cannot read anything in your CRM.

## Where a lead lands

Each lead goes into the first open stage of your default pipeline, such as **New** on the **Leads** pipeline, unless it names a pipeline and a stage. Nobody owns it yet, and its history and timeline say it came in through **The lead address**.

- **Its person** is found by email, then by phone (the last nine digits, so 0412 345 678 and +61 412 345 678 are one number), or made from the name it sends.
- **Its company** is found by its website's domain, then by name, or made.
- **Every lead is new.** The same person enquiring twice is two leads, because a second enquiry is news. When the person already had a lead and your CRM has a checkbox field on deals called **Possible duplicate**, the new lead is ticked, so somebody can look at it.
- **Its source** goes into your **Lead source** field when the CRM has one and the value is one of its choices. Otherwise it is written into the lead's note.

## What a lead can send

A lead is sent as form fields or as one JSON object. These are the keys it can use; the settings page lists the same, with your own fields a lead can fill at the end. It leaves out the three your CRM decides for itself, below.

| Key | What it is |
|---|---|
| `name` | The person's full name |
| `first_name`, `last_name` | Or their first and last name |
| `email` | Their email address, which finds a person already here |
| `phone` | Their phone number, which finds a person already here when there is no email |
| `company` | Their company, found by name or made |
| `website` | Their company's website, which finds the company by its domain |
| `message` | What they wrote, kept as a note on the lead |
| `source` | Where it came from. Without it, the address's own source |
| `lead_name` | What to call the lead. Without it, the lead is called after the person |
| `pipeline`, `stage` | Which pipeline and stage it goes into, by name |
| `value` | What the lead is worth |

Other names a form commonly uses are understood too, such as `mobile` for `phone` and `enquiry` for `message`. A key that is one of your own fields on a lead, by its key or its label (`budget` or `Budget`), fills that field. **Possible duplicate** is the exception: the CRM decides it, and it is never filled by what a lead sends. Anything else, or a value one of your fields does not take, is kept in the lead's note, so nothing a form asks is lost. A lead carries up to 60 fields.

## On a website

**On a website** on the settings page has a ready-made form with your address in it. Paste it into a page and style it as you like. It sends `name`, `email`, `phone`, `message` and your source.

- **Robots.** The form has a hidden box called `_gotcha` that a person never sees. Whatever fills it in is thanked and its lead is thrown away.
- **A thank-you page.** Add a hidden `_redirect` field with a page on the same website, and the person is taken there once their details are sent. It only ever goes to a page on the site the form is on. Without it, they see a short thank-you page.

## From Zapier, n8n or your own system

Send a POST to the address with the lead as JSON, or as form fields. **From Zapier, n8n or your own system** on the settings page has an example made from your own fields. A lead that is saved is answered `201` with `{"ok": true}`.

| Answer | Why |
|---|---|
| `201` | The lead is in the CRM |
| `400` | It was not form fields or one JSON object, or it had no name, person or company to call it by |
| `403` | The CRM is not taking leads at the moment, such as while it is read-only after its trial |
| `404` | There is no lead address there: it was mistyped, made new, or turned off |
| `413` | It was larger than a lead can be |
| `429` | Too many leads came from one connection in a minute, or the CRM has taken its day's leads |

Every answer can be read by a page's own script on another website, so a form can send a lead with JavaScript and show its own message.

## Limits

- One connection can send up to 60 leads a minute to one CRM. Past that it is asked to wait a minute.
- A CRM takes up to 1,000 leads a day through its address.

## Renew it or turn it off

**Make a new address** gives the CRM a new address, and the old one stops working at once, so anything that sent to it needs the new one. Do this if the address has gone somewhere it should not. **Turn it off** stops it; turning it on again makes a new address. Each of these, and a change of source, is in the workspace's audit log.
