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

# Listar chamados do cidadão

> Proxy para GET /api/private/chamados usando o JWT do usuário (Community User).



## OpenAPI

````yaml https://raw.githubusercontent.com/prefeitura-rio/app-rmi/refs/heads/main/docs/openapi-v3.json get /salesforce/chamados
openapi: 3.0.0
info:
  description: >-
    API para gerenciamento de dados de cidadãos do Rio de Janeiro, incluindo
    autodeclaração de informações e verificação de contato.
  title: API RMI
  termsOfService: http://swagger.io/terms/
  contact:
    name: Suporte RMI
    url: http://www.rio.rj.gov.br
    email: suporte@rio.rj.gov.br
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: https://services.pref.rio/rmi/v1
    description: Production
  - url: https://services.staging.app.dados.rio/rmi/v1
    description: Staging
security: []
tags:
  - description: >-
      Operações relacionadas a cidadãos, incluindo consulta e atualização de
      dados autodeclarados
    name: citizen
  - description: >-
      Carteira de veículos (bicicleta elétrica, autopropelido, ciclomotor),
      condutores e catálogo
    name: mobilidade
  - description: Operações relacionadas a departamentos/unidades administrativas (UA)
    name: departments
  - description: Gerenciamento de categorias de notificação (admin) e listagem pública
    name: notification-categories
  - description: Gerenciamento de preferências de notificação por CPF e telefone
    name: notification-preferences
  - description: Operações de verificação de saúde da API
    name: health
  - description: >-
      Integração Salesforce Person Account: login sync, webhook inbound (delta),
      proxies CRM e push assíncrono RMI→SF via sync worker
    name: salesforce
paths:
  /salesforce/chamados:
    get:
      tags:
        - salesforce
      summary: Listar chamados do cidadão
      description: >-
        Proxy para GET /api/private/chamados usando o JWT do usuário (Community
        User).
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/clients.SalesforceChamadosList'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handlers.ErrorResponse'
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handlers.ErrorResponse'
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handlers.ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    clients.SalesforceChamadosList:
      type: object
      properties:
        ouvidoriaWindow:
          $ref: '#/components/schemas/clients.SalesforceOuvidoriaWindow'
        protocolos:
          type: array
          items:
            $ref: '#/components/schemas/clients.SalesforceProtocolo'
    handlers.ErrorResponse:
      type: object
      properties:
        error:
          type: string
    clients.SalesforceOuvidoriaWindow:
      type: object
      properties:
        days:
          type: integer
        label:
          type: string
    clients.SalesforceProtocolo:
      type: object
      properties:
        categoria:
          type: string
        dataAbertura:
          type: string
        dataFechamento:
          type: string
        dataUltimaAtualizacao:
          type: string
        ordens_de_servico:
          type: array
          items:
            $ref: '#/components/schemas/clients.SalesforceOrdemServico'
        origem:
          type: string
        protocolo:
          type: string
        status:
          type: string
        subcategoria:
          type: string
    clients.SalesforceOrdemServico:
      type: object
      properties:
        andamentos:
          type: array
          items:
            $ref: '#/components/schemas/clients.SalesforceAndamento'
        bairro:
          type: string
        canOpen:
          $ref: '#/components/schemas/clients.SalesforceCanOpen'
        categoria:
          type: string
        codigoOs:
          type: string
        dataAbertura:
          type: string
        dataFechamento:
          type: string
        dataTermino:
          type: string
        descricao:
          type: string
        endereco:
          $ref: '#/components/schemas/clients.SalesforceEnderecoChamado'
        id:
          type: string
        idCatalogoServico:
          type: string
        isClosed:
          type: boolean
        isOverdue:
          type: boolean
        orgaoResponsavel:
          $ref: '#/components/schemas/clients.SalesforceOrgao'
        orgaoResponsavelPai:
          $ref: '#/components/schemas/clients.SalesforceOrgao'
        ouvidoriaUrl:
          type: string
        ouvidoriaWindow:
          $ref: '#/components/schemas/clients.SalesforceOuvidoriaWindow'
        previsaoSLA:
          type: string
        prioridade:
          type: string
        servico:
          type: string
        status:
          type: string
        subtema:
          type: string
        tema:
          type: string
    clients.SalesforceAndamento:
      type: object
      properties:
        dataInsercao:
          type: string
        descricao:
          type: string
        evento:
          type: string
        status:
          type: string
        tipoEvento:
          type: string
    clients.SalesforceCanOpen:
      type: object
      properties:
        elogio:
          $ref: '#/components/schemas/clients.SalesforceCanOpenAction'
        reclamacao:
          $ref: '#/components/schemas/clients.SalesforceCanOpenAction'
        sugestao:
          $ref: '#/components/schemas/clients.SalesforceCanOpenAction'
    clients.SalesforceEnderecoChamado:
      type: object
      properties:
        bairro:
          type: string
        cep:
          type: string
        complemento:
          type: string
        coordenadaX:
          type: number
        coordenadaY:
          type: number
        logradouro:
          type: string
        numero:
          type: string
        pontoReferencia:
          type: string
        tipoEndereco:
          type: string
    clients.SalesforceOrgao:
      type: object
      properties:
        id:
          type: string
        nome:
          type: string
        sigla:
          type: string
    clients.SalesforceCanOpenAction:
      type: object
      properties:
        available:
          type: boolean
        categoryId:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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