# Send leads from your own form

To keep your own form design, open **Lead capture** in XgenPlus CRM, stay on the **Share** tab and choose **Use your own form**. Select **Copy form** for a plain HTML form, or **Copy example** to send JSON from a server or tool. Every submission becomes a lead.

## How to send leads from your own form

1. Open **Lead capture** from the menu on the left.
2. Stay on the **Share** tab and choose **Use your own form**.
3. For a plain HTML form, select **Copy form** and paste it into your page. For a server or tool, select **Copy example**.
4. Check that your fields use the names the CRM reads: name, phone, email, company, message and source.
5. Submit a test and look for the new lead on your **Pipeline**.

## A plain HTML form

Point your form at the **Endpoint** shown in the CRM. Use `YOUR-FORM-ID` as a stand-in here. **Copy form** gives you the real thing, with your own address already filled in.

```html
<form method="POST" action="https://crm.xgenplus.com/api/leads/YOUR-FORM-ID">
  <input type="hidden" name="source" value="website">
  <input name="name" placeholder="Your name">
  <input name="phone" placeholder="Phone">
  <input name="email" placeholder="Email">
  <input name="company" placeholder="Company">
  <textarea name="message"></textarea>
  <button type="submit">Send</button>
</form>
```

Keep the hidden field that **Copy form** includes. It helps catch bots.

## From a server or any tool that sends JSON

Send a POST with a JSON body to the same address.

```bash
curl -X POST https://crm.xgenplus.com/api/leads/YOUR-FORM-ID \
  -H "Content-Type: application/json" \
  -d '{"name":"Priya Sharma","phone":"98765 43210","email":"priya@sharmatextiles.example","message":"Need 500 metres of cotton","source":"website"}'
```

## Good to know

- A name and a phone number or email is enough for a lead.
- Set **source** so the lead shows where it came from. Use website, facebook, linkedin, instagram or google.
- Forms on forms.xgenplus.com can also send their answers here by webhook. The steps are on the Facebook, LinkedIn and Google page.

## Common questions

**Which fields does the CRM read?**

name, phone, email, company, message and source. The source can be website, facebook, linkedin, instagram or google.

**Will my form be turned away if a question is empty?**

No. Forms of your own and automation tools are never turned away over a question.

**Where do I find the address to send to?**

It is shown as **Endpoint** on the **Use your own form** card.


Source: https://docs.xgenplus.com/crm/send-leads-from-your-own-form/
