RAGJur Sistema API

Health e metadados

GitHub OpenAPI

Operations 2

GET /api/v1/health Health check (público) #
GET /api/v1/openapi.json Esta especificação (público) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ragjur-ai:ragjur-ai-sistema-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ragjur-ai-sistema-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: RAGJur Sistema API
  version: 1.3.0
  summary: Busca jurisprudencial e jurimetria sobre 114 milhões de julgados de 90+ tribunais brasileiros.
  description: 'API REST da RAGJur (Beans Tech Inova Simples (I.S.), CNPJ 64.160.205/0001-17).


    - **Busca**: BM25 sobre ementas/inteiro teor com analisador jurídico pt-BR; modo híbrido com kNN (`multilingual-e5-large-instruct`, 1024d) + rerank.

    - **Jurimetria**: taxa de provimento por tema/turma/relator, evolução, divergência (χ²), mudança de entendimento (CUSUM), predição multi-fator, intervalos de Wilson, decaimento temporal.

    - **IA**: verificação anti-alucinação de citações, chat com fontes e geração de peças fundamentadas em precedentes reais.


    Todas as rotas exigem `x-api-key` (exceto `/health` e `/openapi.json`). Também aceitamos tokens OAuth 2.1 emitidos pelo servidor MCP (`https://mcp.ragjur.ai`) para integrações Claude/ChatGPT/Copilot — ver `securitySchemes.OAuth2`.


    Convenções: `fonte` identifica a base (`GET /filtros`); sem `fonte`/`tribunal` os endpoints jurimétricos usam `tst_jurisprudencia`. Respostas em JSON UTF-8; percentuais em 0–100.'
  termsOfService: https://ragjur.ai/termos
  contact:
    name: Suporte RAGJur
    email: suporte@ragjur.ai
    url: https://ragjur.ai/suporte
  license:
    name: Proprietária — ver Termos de Uso
    url: https://ragjur.ai/termos
  x-logo:
    url: https://ragjur.ai/logo-512.png
    altText: RAGJur
servers:
- url: https://api.ragjur.ai
  description: Produção
- url: https://api.ragjur.com.br
  description: Legado (redireciona 301 para api.ragjur.ai)
security:
- ApiKeyAuth: []
- OAuth2:
  - ragjur:read
tags:
- name: Sistema
  description: Health e metadados
paths:
  /api/v1/health:
    get:
      tags:
      - Sistema
      operationId: getHealth
      summary: Health check (público)
      description: Estado do serviço e do Elasticsearch. Não exige credencial.
      security: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - ok
                    - degraded
                    - unhealthy
                  service:
                    type: string
                  version:
                    type: string
                  timestamp:
                    type: string
                    format: date-time
                  elastic:
                    type: object
                    properties:
                      status:
                        type: string
                        enum:
                        - ok
                        - degraded
                        - unreachable
                        - nao_configurado
                      doc_count:
                        type: integer
                      latency_ms:
                        type: integer
                      erro:
                        type: string
              example:
                status: ok
                service: ragjur-api
                version: 1.0.0
                timestamp: '2026-09-15T12:00:00.000Z'
                elastic:
                  status: ok
                  doc_count: 62412318
                  latency_ms: 41
        '429':
          description: Rate limit excedido (janela deslizante por chave). Ver `Retry-After`, `X-RateLimit-Limit`, `X-RateLimit-Remaining`.
          headers:
            Retry-After:
              schema:
                type: integer
              description: Segundos até a próxima janela
            X-RateLimit-Limit:
              schema:
                type: integer
            X-RateLimit-Remaining:
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Erro'
              example:
                error: Rate limit exceeded
  /api/v1/openapi.json:
    get:
      tags:
      - Sistema
      operationId: getOpenApi
      summary: Esta especificação (público)
      security: []
      responses:
        '200':
          description: Documento OpenAPI 3.1
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '429':
          description: Rate limit excedido (janela deslizante por chave). Ver `Retry-After`, `X-RateLimit-Limit`, `X-RateLimit-Remaining`.
          headers:
            Retry-After:
              schema:
                type: integer
              description: Segundos até a próxima janela
            X-RateLimit-Limit:
              schema:
                type: integer
            X-RateLimit-Remaining:
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Erro'
              example:
                error: Rate limit exceeded
components:
  schemas:
    Erro:
      type: object
      required:
      - error
      properties:
        error:
          type: string
      additionalProperties: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Chave `rj_…` criada no painel (https://app.ragjur.ai/painel/chaves). Nunca exponha em front-end.
    OAuth2:
      type: oauth2
      description: OAuth 2.1 (PKCE S256, DCR RFC 7591, metadata RFC 8414/9728) do servidor MCP. Escopo único `ragjur:read`.
      flows:
        authorizationCode:
          authorizationUrl: https://mcp.ragjur.ai/oauth/authorize
          tokenUrl: https://mcp.ragjur.ai/oauth/token
          refreshUrl: https://mcp.ragjur.ai/oauth/token
          scopes:
            ragjur:read: Busca jurisprudencial e jurimetria (somente leitura)
externalDocs:
  description: Documentação para desenvolvedores
  url: https://docs.ragjur.ai