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

# Detalhes do Cliente

> Consultar detalhes de um cliente específico

# Detalhes do Cliente

Retorna o cadastro resumido de um cliente específico da empresa autenticada.

## Comportamento atual

* a resposta usa o mesmo shape de `PublicClientResponse`
* os campos retornados atualmente são `id`, `nome`, `email`, `telefone`, `pontos` e `created_at`
* campos analíticos adicionais não fazem parte do contrato atual desta rota

## Exemplo de resposta

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "nome": "João Silva",
    "email": "joao@email.com",
    "telefone": "+5511999999999",
    "pontos": 1250,
    "created_at": "2026-03-20T08:15:00Z"
  }
  ```

  ```json 404 Not Found theme={null}
  {
    "detail": "Cliente não encontrado"
  }
  ```
</ResponseExample>

## Status comuns

* `200` cliente encontrado
* `401` API Key inválida ou revogada
* `403` plano sem `api_access`
* `404` cliente inexistente ou sem vínculo com a empresa
* `422` header ou path inválidos
* `429` limite global da API pública excedido


## OpenAPI

````yaml GET /api/v1/public/clients/{client_id}
openapi: 3.1.0
info:
  contact:
    email: support@indiqai.com
    name: IndiqAI Support
    url: https://indiqai.com/
  description: Especificação OpenAPI da API Pública IndiqAI.
  license:
    name: Proprietary
    url: https://indiqai.com/license
  title: IndiqAI API Pública
  version: 1.5.0
servers:
  - description: Produção
    url: https://api.indiqai.com
security: []
paths:
  /api/v1/public/clients/{client_id}:
    get:
      tags:
        - API Pública
      summary: Buscar cliente
      description: Busca dados de um cliente específico.
      operationId: get_client_api_v1_public_clients__client_id__get
      parameters:
        - in: path
          name: client_id
          required: true
          schema:
            title: Client Id
            type: string
        - description: Chave de API
          in: header
          name: X-API-Key
          required: true
          schema:
            description: Chave de API
            title: X-Api-Key
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicClientResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    PublicClientResponse:
      description: Dados de um cliente.
      properties:
        created_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Created At
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
        id:
          title: Id
          type: string
        nome:
          title: Nome
          type: string
        pontos:
          default: 0
          title: Pontos
          type: integer
        telefone:
          anyOf:
            - type: string
            - type: 'null'
          title: Telefone
      required:
        - id
        - nome
      title: PublicClientResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````