PromptDNA Blocks API

The Blocks API from PromptDNA — 3 operation(s) for blocks.

GitHub OpenAPI

Operations 4

GET /blocks/{block_id} Block Detail #
POST /blocks/{block_id}/rate Rate Block #
GET /blocks/{block_id}/fork Fork Form #
POST /blocks/{block_id}/fork Fork Block #

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/promptdna-org:promptdna-org-blocks-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

promptdna-org-blocks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PromptDNA Blocks API
  version: 0.1.0
tags:
- name: Blocks
paths:
  /blocks/{block_id}:
    get:
      summary: Block Detail
      operationId: block_detail_blocks__block_id__get
      parameters:
      - name: block_id
        in: path
        required: true
        schema:
          type: string
          title: Block Id
      - name: submitted
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Submitted
      - name: delete_error
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Delete Error
      - name: access_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Access Token
      - name: refresh_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Refresh Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Blocks
  /blocks/{block_id}/rate:
    post:
      summary: Rate Block
      operationId: rate_block_blocks__block_id__rate_post
      parameters:
      - name: block_id
        in: path
        required: true
        schema:
          type: string
          title: Block Id
      - name: access_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Access Token
      - name: refresh_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Refresh Token
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_rate_block_blocks__block_id__rate_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Blocks
  /blocks/{block_id}/fork:
    get:
      summary: Fork Form
      operationId: fork_form_blocks__block_id__fork_get
      parameters:
      - name: block_id
        in: path
        required: true
        schema:
          type: string
          title: Block Id
      - name: access_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Access Token
      - name: refresh_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Refresh Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Blocks
    post:
      summary: Fork Block
      operationId: fork_block_blocks__block_id__fork_post
      parameters:
      - name: block_id
        in: path
        required: true
        schema:
          type: string
          title: Block Id
      - name: access_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Access Token
      - name: refresh_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Refresh Token
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_fork_block_blocks__block_id__fork_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Blocks
components:
  schemas:
    Body_fork_block_blocks__block_id__fork_post:
      properties:
        name:
          type: string
          title: Name
        template:
          type: string
          title: Template
      type: object
      required:
      - name
      - template
      title: Body_fork_block_blocks__block_id__fork_post
    Body_rate_block_blocks__block_id__rate_post:
      properties:
        overall:
          type: string
          title: Overall
        accuracy:
          anyOf:
          - type: string
          - type: 'null'
          title: Accuracy
        consistency:
          anyOf:
          - type: string
          - type: 'null'
          title: Consistency
        clarity:
          anyOf:
          - type: string
          - type: 'null'
          title: Clarity
        efficiency:
          anyOf:
          - type: string
          - type: 'null'
          title: Efficiency
        comment:
          anyOf:
          - type: string
          - type: 'null'
          title: Comment
      type: object
      required:
      - overall
      title: Body_rate_block_blocks__block_id__rate_post
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError