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

# Busca por telefone

> Busca reversa: dado um telefone, identifica os CPFs associados. Ponto de entrada quando voce tem apenas um numero de telefone.



## OpenAPI

````yaml /openapi/pessoas.json get /pessoas/telefone/{telefone}
openapi: 3.0.0
info:
  title: Sherlocker Pessoas API
  description: >-
    Perfil completo de uma pessoa: identidade, localizacao, contatos, rede
    familiar, beneficios, dividas, patrimonio, processos e historico
    profissional. Ponto de entrada principal para investigacoes a partir de CPF
    ou telefone.
  version: '2.0'
servers:
  - url: https://221b-api.sherlocker.com.br/api/v1
security:
  - tokenAuth: []
paths:
  /pessoas/telefone/{telefone}:
    get:
      tags:
        - Busca Reversa
      summary: Busca por telefone
      description: >-
        Busca reversa: dado um telefone, identifica os CPFs associados. Ponto de
        entrada quando voce tem apenas um numero de telefone.
      operationId: findByTelefone
      parameters:
        - name: telefone
          in: path
          required: true
          description: Telefone com DDD (10-11 digitos)
          schema:
            type: string
            example: '11999998888'
        - name: limit
          in: query
          required: false
          description: Maximo de registros retornados (max 200, padrao 50)
          schema:
            type: integer
            default: 50
            maximum: 200
            example: 50
        - name: offset
          in: query
          required: false
          description: Numero de registros a pular (padrao 0)
          schema:
            type: integer
            default: 0
            example: 0
      responses:
        '200':
          description: CPFs associados ao telefone
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TelefoneReversoResponse'
              example:
                telefone: '11999998888'
                pessoas:
                  - documento: 123.456.789-01
                    tipo_documento: CPF
                    nome: João Silva de Oliveira
                    data_nascimento: '1990-01-15'
                    genero: Masculino
                    falecido: false
                    obito: null
        '400':
          description: Parametro invalido
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Token ausente ou invalido
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    TelefoneReversoResponse:
      type: object
      description: Pessoas associadas ao telefone consultado
      properties:
        telefone:
          type: string
          description: Telefone consultado (somente digitos)
        pessoas:
          type: array
          items:
            $ref: '#/components/schemas/PessoaReversa'
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        erro:
          type: object
          properties:
            codigo:
              type: string
              description: 'Codigo do erro (ex: VALIDATION_ERROR, NOT_FOUND, UNAUTHORIZED)'
              example: VALIDATION_ERROR
            mensagem:
              type: string
              description: Mensagem descritiva do erro
              example: CPF invalido
    PessoaReversa:
      type: object
      description: Referencia de pessoa fisica retornada em buscas reversas
      properties:
        documento:
          type: string
          description: CPF formatado
        tipo_documento:
          type: string
          enum:
            - CPF
        nome:
          type: string
          nullable: true
        data_nascimento:
          type: string
          nullable: true
          description: Data ISO (YYYY-MM-DD)
        genero:
          type: string
          nullable: true
          description: Masculino, Feminino ou Intersexo
        falecido:
          type: boolean
        obito:
          type: object
          nullable: true
          properties:
            data_obito:
              type: string
            cartorio:
              type: string
  securitySchemes:
    tokenAuth:
      type: apiKey
      in: query
      name: token

````