ReasonBlocks Pattern Library API

The Pattern Library API from ReasonBlocks — 2 operation(s) for pattern library.

Operations 3

GET /v1/library/patterns List Patterns #
DELETE /v1/library/patterns/{tier}/{pattern_id} Delete Pattern #
PATCH /v1/library/patterns/{tier}/{pattern_id} Patch Pattern #

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/reasonblocks-pattern-library-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

reasonblocks-pattern-library-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ReasonBlocks Billing Pattern Library API
  description: 'ReasonBlocks REST API. Public routes are versioned under `/v1/`.


    **Auth:** every route requires `Authorization: Bearer <api_key>`. Issue keys from the dashboard (per-org), or set `REASONBLOCKS_KEYS` for static dev keys. See `docs/rest-api-setup.md` and `docs/custom-harness-quickstart.md` in the repo for end-to-end setup.


    **Back-compat:** unversioned aliases (e.g. `POST /traces/retrieve`) remain mounted for already-deployed SDK clients but are intentionally hidden from this schema. New integrations should target `/v1/...`.'
  version: 0.1.0
servers:
- url: https://rb-api.reasonblocks.com
  description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: Pattern Library
paths:
  /v1/library/patterns:
    get:
      tags:
      - Pattern Library
      summary: List Patterns
      description: 'List patterns scoped to the caller''s tenant.


        Per-customer keys: only their own E1 patterns. E2/E3 are commons /

        universal so they''re returned to anyone (no per-tenant data).

        Static keys: optional ``?org_id=`` filter; otherwise all patterns.

        JWT (dashboard): must pass ``?org_id=`` and the org must be in

        ``allowed_orgs``.'
      operationId: list_patterns_v1_library_patterns_get
      security:
      - HTTPBearer: []
      parameters:
      - name: tier
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Tier
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 1000
          minimum: 1
          default: 200
          title: Limit
      - name: org_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            maxLength: 256
          - type: 'null'
          title: Org Id
      - name: token
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: API key (EventSource fallback)
          title: Token
        description: API key (EventSource fallback)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  additionalProperties: true
                title: Response List Patterns V1 Library Patterns Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/library/patterns/{tier}/{pattern_id}:
    delete:
      tags:
      - Pattern Library
      summary: Delete Pattern
      operationId: delete_pattern_v1_library_patterns__tier___pattern_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: tier
        in: path
        required: true
        schema:
          type: string
          title: Tier
      - name: pattern_id
        in: path
        required: true
        schema:
          type: string
          title: Pattern Id
      - name: org_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            maxLength: 256
          - type: 'null'
          title: Org Id
      - name: token
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: API key (EventSource fallback)
          title: Token
        description: API key (EventSource fallback)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Delete Pattern V1 Library Patterns  Tier   Pattern Id  Delete
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - Pattern Library
      summary: Patch Pattern
      operationId: patch_pattern_v1_library_patterns__tier___pattern_id__patch
      security:
      - HTTPBearer: []
      parameters:
      - name: tier
        in: path
        required: true
        schema:
          type: string
          title: Tier
      - name: pattern_id
        in: path
        required: true
        schema:
          type: string
          title: Pattern Id
      - name: org_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            maxLength: 256
          - type: 'null'
          title: Org Id
      - name: token
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: API key (EventSource fallback)
          title: Token
        description: API key (EventSource fallback)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatternPatch'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Patch Pattern V1 Library Patterns  Tier   Pattern Id  Patch
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PatternPatch:
      properties:
        fields:
          additionalProperties: true
          type: object
          title: Fields
      type: object
      title: PatternPatch
      description: 'Free-form payload patch. Whitelisted in the service to prevent

        overwriting structural keys (``pattern_id``, ``tier``, ``customer_id``).'
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer