> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinglog.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Leia /llms.txt antes de explorar páginas. A API HTTP usa Authorization: Bearer com o JWT da conta. A chave kl_live_ serve só ao assistente MCP e não substitui o JWT. Não invente rotas, hosts públicos, SDKs ou CLI. companyId e userId vêm da sessão. Consultas não aceitam SQL. Exclusão no assistente exige confirm=true. O webhook público é POST /webhook/leads.

# Cliente

> Quem recebe a entrega. O uuid deste cadastro é o campo `client` da tarefa.

Quem recebe a entrega. O uuid deste cadastro é o campo `client` da tarefa.

> [card] Obrigatório
>
> A API valida o payload de criação. Use o uuid devolvido, nunca o nome.

## Fluxo

1. Crie ou liste o cliente.
2. Guarde o uuid.
3. Use esse uuid em `client` na tarefa.

## Operações

| Você quer | Método | Caminho |
| - | - | - |
| [Clientes](https://docs.kinglog.com.br/pages/reference/clients/clients-list.md) | `POST` | `/client/getAll` |
| [Criar cliente](https://docs.kinglog.com.br/pages/reference/clients/clients-create.md) | `POST` | `/client/create` |
| [Atualizar cliente](https://docs.kinglog.com.br/pages/reference/clients/clients-update.md) | `POST` | `/client/update` |
| [Arquivar cliente](https://docs.kinglog.com.br/pages/reference/clients/clients-archive.md) | `GET` | `/client/archive/:companyId/:userId/:id/:value` |
| [Excluir cliente](https://docs.kinglog.com.br/pages/reference/clients/clients-delete.md) | `DELETE` | `/client/delete` |

## Exemplo de resposta

```json theme={null}
{
  "success": true,
  "data": {
    "id": "UUID_DO_CLIENTE",
    "name": "Ana Lima"
  },
  "code": "SUCCESS"
}
```

> [!TIP]
>
> Em tarefa, `client` é uuid. Enviar o nome volta 400.

## Relacionado

* [Tarefa](https://docs.kinglog.com.br/pages/reference/trabalho/tarefa.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.