> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/topics/api/api-creating-a-lead.md).

# API - Creating a Lead

How to create a Lead with data from a request.

### Route

<mark style="color:green;">`POST`</mark> `/leads?apitoken=seu-token&i=sua-instancia`

Full endpoint: <mark style="color:green;"><https://sprinthub-api-master.sprinthub.app/leads?apitoken=seu-token\\&i=sua-instancia></mark>

### Query Params

<table><thead><tr><th width="291">Key</th><th width="450">Description</th></tr></thead><tbody><tr><td>i</td><td>Your instance identifier, subdomain </td></tr><tr><td>apitoken</td><td>API Token</td></tr></tbody></table>

### Body - System default fields

<table><thead><tr><th width="234">Key</th><th width="513">Expected value</th></tr></thead><tbody><tr><td>firstname</td><td><em>String</em></td></tr><tr><td>lastname</td><td><em>String</em></td></tr><tr><td>email</td><td><p><em>String</em></p><p><br>Only one email: <code>"email@mail"</code></p><p>Multiple emails: <code>"email1@mail.com, email2@mail.com"</code></p></td></tr><tr><td>whatsapp,<br>mobile (cell phone),<br>phone (landline)</td><td><em>String</em><br><br>Format: <code>"+55 11 97107 1713"</code></td></tr><tr><td>country</td><td><em>String</em><br><br>Written in English, for example: <code>"Brazil"</code></td></tr><tr><td>state</td><td><em>String</em></td></tr><tr><td>city</td><td><em>String</em></td></tr><tr><td>address</td><td><em>String</em></td></tr><tr><td>zipcode (postal code)</td><td><em>String</em><br><br>Format: <code>"69092250"</code></td></tr><tr><td>timezone</td><td><em>String</em><br><br>Format: <code>"America/Sao_Paulo"</code></td></tr><tr><td>preferred_locale <br>(language)</td><td><em>String</em><br><br>Format: <code>"pt-BR"</code></td></tr></tbody></table>

## Lead creation example

The data to be added to the Lead were inserted in the request body. The request was sent using the software *Postman*. The expected response is the Lead data after creation, including unfilled fields.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FzMDJtwb9W4N8oRTqkaWO%2Freq-2.png?alt=media&amp;token=90d5a473-438a-4ece-9ae2-bf117015a3fc" alt=""><figcaption><p><em>POST request for Lead creation.</em></p></figcaption></figure>
