> ## 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.

# Obter estatísticas de quarentena

> Obtém estatísticas sobre telefones em quarentena (apenas administradores)



## OpenAPI

````yaml https://raw.githubusercontent.com/prefeitura-rio/app-rmi/refs/heads/main/docs/openapi-v3.json get /admin/phone/quarantine/stats
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: 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
paths:
  /admin/phone/quarantine/stats:
    get:
      tags:
        - phone
      summary: Obter estatísticas de quarentena
      description: >-
        Obtém estatísticas sobre telefones em quarentena (apenas
        administradores)
      responses:
        '200':
          description: Estatísticas de quarentena obtidas com sucesso
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.QuarantineStats'
        '401':
          description: Token de autenticação não fornecido ou inválido
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handlers.ErrorResponse'
        '403':
          description: >-
            Acesso negado - somente administradores podem obter estatísticas de
            quarentena
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handlers.ErrorResponse'
        '429':
          description: Muitas requisições - limite de taxa excedido
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handlers.ErrorResponse'
        '500':
          description: Erro interno do servidor
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handlers.ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    models.QuarantineStats:
      type: object
      properties:
        active_quarantines:
          type: integer
        expired_quarantines:
          type: integer
        quarantine_history_total:
          type: integer
        quarantines_with_cpf:
          type: integer
        quarantines_without_cpf:
          type: integer
        total_quarantined:
          type: integer
    handlers.ErrorResponse:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````