dialogbrain-com Prompt Blocks API

The Prompt Blocks API from dialogbrain-com — 6 operation(s) for prompt blocks.

Operations 9

GET /api/v1/prompt-blocks List Prompt Blocks #
GET /api/v1/agents/{agent_id}/prompt-blocks Get Agent Prompt Blocks #
PUT /api/v1/agents/{agent_id}/prompt-blocks Put Agent Prompt Blocks #
GET /api/prompt-blocks/registry Get Registry #
GET /api/prompt-blocks/workspace Get Workspace Blocks #
PUT /api/prompt-blocks/workspace Put Workspace Blocks #
GET /api/prompt-blocks/agents/{agent_id} Get Agent Blocks #
PUT /api/prompt-blocks/agents/{agent_id} Put Agent Blocks #
POST /api/prompt-blocks/agents/{agent_id}/preview Preview Agent Prompt #

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/dialogbrain-com:dialogbrain-com-prompt-blocks-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

dialogbrain-com-prompt-blocks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DialogBrain v2 API Gateway Prompt Blocks API
  description: Clean refactored API gateway with minimal vertical slice
  version: 0.1.0
tags:
- name: Prompt Blocks
paths:
  /api/v1/prompt-blocks:
    get:
      tags:
      - Prompt Blocks
      summary: List Prompt Blocks
      description: 'List every block the platform assembles into an agent''s system prompt: id, kind, order and whether it can be disabled or rewritten.'
      operationId: list_prompt_blocks_api_v1_prompt_blocks_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /api/v1/agents/{agent_id}/prompt-blocks:
    get:
      tags:
      - Prompt Blocks
      summary: Get Agent Prompt Blocks
      description: 'Return the agent''s prompt-block overrides layered on the workspace''s: which blocks are disabled and which have custom text.'
      operationId: get_agent_prompt_blocks_api_v1_agents__agent_id__prompt_blocks_get
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: integer
          title: Agent Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - Prompt Blocks
      summary: Put Agent Prompt Blocks
      description: Replace the agent's prompt-block overrides. Send the complete desired set; blocks not listed revert to the workspace default.
      operationId: put_agent_prompt_blocks_api_v1_agents__agent_id__prompt_blocks_put
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: integer
          title: Agent Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PromptBlocksPut'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/prompt-blocks/registry:
    get:
      tags:
      - Prompt Blocks
      summary: Get Registry
      operationId: get_registry_api_prompt_blocks_registry_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /api/prompt-blocks/workspace:
    get:
      tags:
      - Prompt Blocks
      summary: Get Workspace Blocks
      operationId: get_workspace_blocks_api_prompt_blocks_workspace_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
    put:
      tags:
      - Prompt Blocks
      summary: Put Workspace Blocks
      operationId: put_workspace_blocks_api_prompt_blocks_workspace_put
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PromptBlocksPayload'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/prompt-blocks/agents/{agent_id}:
    get:
      tags:
      - Prompt Blocks
      summary: Get Agent Blocks
      operationId: get_agent_blocks_api_prompt_blocks_agents__agent_id__get
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: integer
          title: Agent Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - Prompt Blocks
      summary: Put Agent Blocks
      operationId: put_agent_blocks_api_prompt_blocks_agents__agent_id__put
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: integer
          title: Agent Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PromptBlocksPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/prompt-blocks/agents/{agent_id}/preview:
    post:
      tags:
      - Prompt Blocks
      summary: Preview Agent Prompt
      operationId: preview_agent_prompt_api_prompt_blocks_agents__agent_id__preview_post
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: integer
          title: Agent Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/src__api__prompt_blocks__PreviewRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    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
    PromptBlocksPut:
      properties:
        prompt_blocks:
          additionalProperties: true
          type: object
          title: Prompt Blocks
          description: '{block_id: {enabled, text, order, hidden_rows}}. Omit a key to remove its override; null only for one already stored. Read GET /api/v1/prompt-blocks for valid ids.'
      type: object
      required:
      - prompt_blocks
      title: PromptBlocksPut
      description: 'The complete set of prompt-block overrides for this agent. Replacement is per block: a block you omit is removed; inside a block, fields you omit keep their stored value. To remove an override, omit its key; null is accepted only for an override that is already stored.'
    src__api__prompt_blocks__PreviewRequest:
      properties:
        thread_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Thread Id
      type: object
      title: PreviewRequest
    PromptBlocksPayload:
      properties:
        prompt_blocks:
          additionalProperties:
            anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          type: object
          title: Prompt Blocks
      type: object
      title: PromptBlocksPayload