# API - Creating a Lead

### Route

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

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

### Query Params

<table><thead><tr><th width="291">Key</th><th width="450">Description</th></tr></thead><tbody><tr><td>i</td><td>Identifier of your instance, 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 (cep)</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>

## Example of Lead creation

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 the moment of creation, including unfilled fields.

<figure><img src="/files/a9831d3747e1f53453f10827055083b933c3d9ab" alt=""><figcaption><p><em>POST request to create a Lead.</em></p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sprinthub.com/en/topics/api/api-creating-a-lead.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
