# API GTFgts

## Cria um novo lead

> Cadastra um novo lead no sistema

```json
{"openapi":"3.0.0","info":{"title":"GTFgts API","version":"1.0.0"},"servers":[{"url":"https://gtfgts.staging.giro.tech/api","description":"Ambiente de Teste"},{"url":"https://gtfgts.giro.tech/api","description":"Ambiente de Produção"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"apiKey","in":"header","name":"Authorization"}}},"paths":{"/leads":{"post":{"summary":"Cria um novo lead","description":"Cadastra um novo lead no sistema","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","identification","phone"],"properties":{"name":{"type":"string","maxLength":100,"description":"Nome completo do lead"},"identification":{"type":"string","maxLength":11,"description":"CPF do lead"},"phone":{"type":"string","maxLength":11,"description":"Telefone do lead"},"birthDate":{"type":"string","format":"date","description":"Data de nascimento do lead"},"email":{"type":"string","format":"email","maxLength":100,"description":"Email do lead"},"address":{"type":"object","required":["street","number","neighborhood","city","state","zipcode"],"properties":{"street":{"type":"string","maxLength":200,"description":"Rua do endereço"},"number":{"type":"string","maxLength":20,"description":"Número do endereço"},"complement":{"type":"string","maxLength":100,"description":"Complemento do endereço"},"neighborhood":{"type":"string","maxLength":100,"description":"Bairro do endereço"},"city":{"type":"string","maxLength":100,"description":"Cidade do endereço"},"state":{"type":"string","maxLength":2,"description":"Estado do endereço"},"zipcode":{"type":"string","maxLength":10,"description":"CEP do endereço"}}},"pix":{"type":"object","required":["key","keyType"],"properties":{"key":{"type":"string","maxLength":255,"description":"Chave PIX"},"keyType":{"type":"string","maxLength":50,"description":"Tipo da chave PIX"}}},"partner":{"type":"string","maxLength":255,"description":"Nome do parceiro"}}}}}},"responses":{"201":{"description":"Lead criado com sucesso","content":{"application/json":{"schema":{"type":"object","properties":{"publicId":{"type":"string","description":"ID público do lead para URL personalizada"},"url":{"type":"string","description":"URL personalizada do lead"}}}}}},"400":{"description":"Dados inválidos para criação do lead","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string"},"status":{"type":"integer"},"message":{"type":"string"},"errors":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}},"401":{"description":"Não autorizado"},"500":{"description":"Erro interno do servidor"}}}}}}
```


---

# 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.giro.tech/desenvolvedores/api-gtfgts.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.
