Rulebase Regulatory corpus API

The Regulatory corpus API from Rulebase — 3 operation(s) for regulatory corpus.

Operations 3

GET /regulatory-corpus/frameworks List frameworks with regulatory chat corpus #
GET /regulatory-corpus/frameworks/{slug} Get regulatory chat metadata for a framework #
POST /regulatory-corpus/chat Stream regulatory corpus chat for a framework #

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/rulebase:rulebase-regulatory-corpus-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

rulebase-regulatory-corpus-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Rulebase API2 Regulatory corpus API
  version: 0.0.1
tags:
- name: Regulatory corpus
paths:
  /regulatory-corpus/frameworks:
    get:
      tags:
      - Regulatory corpus
      summary: List frameworks with regulatory chat corpus
      responses:
        '200':
          description: Frameworks available for corpus-backed chat
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        slug:
                          type: string
                        shortName:
                          type: string
                        name:
                          type: string
                        description:
                          type: string
                        sourceCount:
                          type: integer
                        totalBytes:
                          type: integer
                        contextHash:
                          type: string
                      required:
                      - slug
                      - shortName
                      - name
                      - description
                      - sourceCount
                      - totalBytes
                      - contextHash
                  meta:
                    type: object
                    properties:
                      corpusGeneratedAt:
                        type: string
                      disclaimer:
                        type: string
                    required:
                    - corpusGeneratedAt
                    - disclaimer
                required:
                - data
                - meta
      operationId: getRegulatoryCorpusFrameworks
      x-operation-id-source: derived
  /regulatory-corpus/frameworks/{slug}:
    get:
      tags:
      - Regulatory corpus
      summary: Get regulatory chat metadata for a framework
      parameters:
      - schema:
          type: string
        required: true
        name: slug
        in: path
      responses:
        '200':
          description: Framework corpus metadata
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      slug:
                        type: string
                      shortName:
                        type: string
                      name:
                        type: string
                      description:
                        type: string
                      sourceCount:
                        type: integer
                      totalBytes:
                        type: integer
                      contextHash:
                        type: string
                      sourceIndex:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            title:
                              type: string
                            regulationTitle:
                              type: string
                            url:
                              type: string
                            category:
                              type: string
                            byteLength:
                              type: integer
                          required:
                          - id
                          - title
                          - regulationTitle
                          - url
                          - category
                          - byteLength
                      corpusGeneratedAt:
                        type: string
                    required:
                    - slug
                    - shortName
                    - name
                    - description
                    - sourceCount
                    - totalBytes
                    - contextHash
                    - sourceIndex
                    - corpusGeneratedAt
                required:
                - data
        '404':
          description: Unknown framework
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
      operationId: getRegulatoryCorpusFrameworksBySlug
      x-operation-id-source: derived
  /regulatory-corpus/chat:
    post:
      tags:
      - Regulatory corpus
      summary: Stream regulatory corpus chat for a framework
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                frameworkSlug:
                  type: string
                model:
                  type: string
                messages:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                      role:
                        type: string
                        enum:
                        - user
                        - assistant
                        - system
                    required:
                    - id
                    - role
                  default: []
              required:
              - frameworkSlug
      responses:
        '200':
          description: UI message stream (SSE)
          content:
            text/event-stream:
              schema:
                type: string
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
      operationId: postRegulatoryCorpusChat
      x-operation-id-source: derived
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Rulebase organization API key