Pomerado Shapes API

The shapes API from Pomerado — 3 operation(s) for shapes.

GitHub OpenAPI

Operations 6

POST /v1/tools/{id}/shapes Make a shape #
GET /v1/tools/{id}/shapes List your shapes of a tool #
GET /v1/shapes/{id} Get a shape #
PATCH /v1/shapes/{id} Change a shape #
DELETE /v1/shapes/{id} Delete a shape #
POST /v1/shapes/{id}/restore Restore a version of a shape #

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/pomerado-ai:pomerado-ai-shapes-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

pomerado-ai-shapes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pomerado Shapes API
  version: '1'
  description: Run and build website tools, follow their jobs, and manage logins, API keys and webhooks. Authenticate with a Pomerado API key (pom_…), an MCP OAuth token or a Dashboard session as a Bearer token.
servers:
- url: https://api.pomerado.ai
tags:
- name: shapes
  x-group: Shapes
paths:
  /v1/tools/{id}/shapes:
    post:
      operationId: shapes.create
      tags:
      - shapes
      summary: Make a shape
      description: 'Make a shape of a tool from words: your own form for its result, which a run returns when you pass the shape''s id as shape.


        - Say the result you want: which fields, renamed how, filtered, sorted, grouped, counted or averaged. Pomerado writes the shape''s code and checks it against every form the tool''s result can take before saving it. It answers in a few seconds and starts no job.

        - A shape only reshapes what the tool returns. A request for data the tool doesn''t return answers needs_tool_change: ask for that with POST /v1/tools/{id}/changes. One no shape can do, such as one needing the time or other pages, answers not_possible.

        - Fields the tool adds later stay out of a shape unless you asked to keep everything; the shape then lists them in new_fields.

        - Shapes are free, and only you can see and use them. You can have 50 for each tool and 500 in all.'
      parameters:
      - name: id
        in: path
        required: true
        description: 'a tool ID: tool_ and 32 lowercase hex digits'
        schema:
          type: string
          examples:
          - tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - request
              properties:
                request:
                  type: string
                  description: 'The result you want, in your own words: which fields, renamed how, filtered, sorted, counted or averaged, such as "only the name and price in dollars, cheapest first"'
                  minLength: 1
                  maxLength: 2000
              additionalProperties: false
      responses:
        '200':
          description: The saved shape, or why none was saved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShapeAnswer'
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: sign_in_required, unauthorized, reauthentication_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: shape_limit_reached
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '410':
          description: moved_to_team
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: request_too_large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: shape_create_throttled
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: temporarily_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearer: []
      x-pomerado-effect: write
      x-pomerado-callers:
      - session
      - oauth
      - api_key
      - integration_key
      - service_account_key
      x-pomerado-permission: runs:create
    get:
      operationId: shapes.list
      tags:
      - shapes
      summary: List your shapes of a tool
      description: List your own shapes of one tool, oldest first. Each says which fields the tool returns now that it leaves out (new_fields).
      parameters:
      - name: id
        in: path
        required: true
        description: 'a tool ID: tool_ and 32 lowercase hex digits'
        schema:
          type: string
          examples:
          - tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
      responses:
        '200':
          description: Your shapes of the tool
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShapeList'
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: sign_in_required, unauthorized, reauthentication_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '410':
          description: moved_to_team
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: temporarily_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearer: []
      x-pomerado-effect: read
      x-pomerado-callers:
      - session
      - oauth
      - api_key
      - integration_key
      - service_account_key
      x-pomerado-permission: tools:read
  /v1/shapes/{id}:
    get:
      operationId: shapes.get
      tags:
      - shapes
      summary: Get a shape
      description: 'Get one of your shapes: its code, the form of its results, the words it was made from and its last 100 versions. Anyone else''s shape is not found.'
      parameters:
      - name: id
        in: path
        required: true
        description: 'a shape ID: shp_ and 32 lowercase hex digits'
        schema:
          type: string
          examples:
          - shp_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
      responses:
        '200':
          description: The shape
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShapeWithHistory'
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: sign_in_required, unauthorized, reauthentication_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '410':
          description: moved_to_team
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: temporarily_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearer: []
      x-pomerado-effect: read
      x-pomerado-callers:
      - session
      - oauth
      - api_key
      - integration_key
      - service_account_key
      x-pomerado-permission: tools:read
    patch:
      operationId: shapes.update
      tags:
      - shapes
      summary: Change a shape
      description: Change one of your shapes from words, rename it, or both, as a new version. Pomerado rewrites and checks the code as it does for a new shape; a change it can't make answers as making one does and keeps the shape as it was. Runs already accepted keep the version they started with.
      parameters:
      - name: id
        in: path
        required: true
        description: 'a shape ID: shp_ and 32 lowercase hex digits'
        schema:
          type: string
          examples:
          - shp_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              required: []
              properties:
                request:
                  type: string
                  description: 'The result you want, in your own words: which fields, renamed how, filtered, sorted, counted or averaged, such as "only the name and price in dollars, cheapest first"'
                  minLength: 1
                  maxLength: 2000
                name:
                  type: string
                  description: A new name for the shape
                  minLength: 1
                  maxLength: 120
              additionalProperties: false
      responses:
        '200':
          description: The changed shape, or why it wasn't changed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShapeAnswer'
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: sign_in_required, unauthorized, reauthentication_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: shape_limit_reached
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '410':
          description: moved_to_team
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: request_too_large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: shape_create_throttled
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: temporarily_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearer: []
      x-pomerado-effect: write
      x-pomerado-callers:
      - session
      - oauth
      - api_key
      - integration_key
      - service_account_key
      x-pomerado-permission: runs:create
    delete:
      operationId: shapes.delete
      tags:
      - shapes
      summary: Delete a shape
      description: Delete one of your shapes and its history. Runs already accepted keep the version they started with; a later run that names it answers invalid_request.
      parameters:
      - name: id
        in: path
        required: true
        description: 'a shape ID: shp_ and 32 lowercase hex digits'
        schema:
          type: string
          examples:
          - shp_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
      responses:
        '204':
          description: Deleted
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: sign_in_required, unauthorized, reauthentication_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '410':
          description: moved_to_team
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: temporarily_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearer: []
      x-pomerado-effect: destructive
      x-pomerado-callers:
      - session
      - oauth
      - api_key
      - integration_key
      - service_account_key
      x-pomerado-permission: runs:create
  /v1/shapes/{id}/restore:
    post:
      operationId: shapes.restore
      tags:
      - shapes
      summary: Restore a version of a shape
      description: Make an earlier version of one of your shapes current again, as a new version. Its code was checked when it was saved; it applies to runs accepted from now on.
      parameters:
      - name: id
        in: path
        required: true
        description: 'a shape ID: shp_ and 32 lowercase hex digits'
        schema:
          type: string
          examples:
          - shp_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - version
              properties:
                version:
                  $ref: '#/components/schemas/Int'
                  description: The version to make current again, from the shape's history
                  minimum: 1
              additionalProperties: false
      responses:
        '200':
          description: The shape, at its new version
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Shape'
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: sign_in_required, unauthorized, reauthentication_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '410':
          description: moved_to_team
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: request_too_large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: temporarily_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearer: []
      x-pomerado-effect: write
      x-pomerado-callers:
      - session
      - oauth
      - api_key
      - integration_key
      - service_account_key
      x-pomerado-permission: runs:create
components:
  schemas:
    Int:
      type: integer
      description: an integer
    Shape:
      type: object
      required:
      - id
      - tool_id
      - name
      - request
      - version
      - code
      - output_schema
      - passes_new_fields
      - new_fields
      - created_at
      - updated_at
      properties:
        id:
          type: string
          description: shp_ and 32 lowercase hex digits
        tool_id:
          type: string
        name:
          type: string
        request:
          type: string
          description: The words the current version was made from
        version:
          type: number
        code:
          type: string
          description: 'The function Pomerado wrote, read-only: a small JavaScript arrow function of the result'
        output_schema:
          type: object
          required: []
          properties: {}
          additionalProperties:
            $id: /schemas/unknown
          description: The form the shape's results take, as JSON Schema
        passes_new_fields:
          type: boolean
          description: Whether fields the tool adds later come through the shape too, except one the shape replaces with its own field of the same name, which new_fields lists
        new_fields:
          type: array
          items:
            type: string
          description: Fields the tool returns now that the shape leaves out
        notice:
          type: string
          description: 'Present when new_fields isn''t empty: says so, and how to add them'
        created_at:
          type: string
        updated_at:
          type: string
      additionalProperties: false
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          - retryable
          - docs_url
          properties:
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
            docs_url:
              type: string
            details:
              type: object
              required: []
              properties: {}
              additionalProperties:
                $id: /schemas/unknown
          additionalProperties: false
      additionalProperties: false
    ShapeVersion:
      type: object
      required:
      - version
      - source
      - name
      - request
      - code
      - created_at
      properties:
        version:
          type: number
        source:
          type: string
          enum:
          - generated
          - change_request
          - restored
        name:
          type: string
        request:
          type: string
        code:
          type: string
        created_at:
          type: string
      additionalProperties: false
    ShapeWithHistory:
      type: object
      required:
      - id
      - tool_id
      - name
      - request
      - version
      - code
      - output_schema
      - passes_new_fields
      - new_fields
      - created_at
      - updated_at
      - history
      properties:
        id:
          type: string
          description: shp_ and 32 lowercase hex digits
        tool_id:
          type: string
        name:
          type: string
        request:
          type: string
          description: The words the current version was made from
        version:
          type: number
        code:
          type: string
          description: 'The function Pomerado wrote, read-only: a small JavaScript arrow function of the result'
        output_schema:
          type: object
          required: []
          properties: {}
          additionalProperties:
            $id: /schemas/unknown
          description: The form the shape's results take, as JSON Schema
        passes_new_fields:
          type: boolean
          description: Whether fields the tool adds later come through the shape too, except one the shape replaces with its own field of the same name, which new_fields lists
        new_fields:
          type: array
          items:
            type: string
          description: Fields the tool returns now that the shape leaves out
        notice:
          type: string
          description: 'Present when new_fields isn''t empty: says so, and how to add them'
        created_at:
          type: string
        updated_at:
          type: string
        history:
          type: array
          items:
            $ref: '#/components/schemas/ShapeVersion'
          description: The shape's last 100 versions, newest first
      additionalProperties: false
    ShapeList:
      type: object
      required:
      - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Shape'
      additionalProperties: false
    ShapeAnswer:
      anyOf:
      - type: object
        required:
        - outcome
        - shape
        - preview
        - message
        properties:
          outcome:
            type: string
            enum:
            - saved
          shape:
            $ref: '#/components/schemas/Shape'
          preview:
            $id: /schemas/unknown
            description: The shape's result for a made-up result of the tool
          message:
            type: string
            description: What happened, in words
        additionalProperties: false
      - type: object
        required:
        - outcome
        - missing
        - message
        properties:
          outcome:
            type: string
            enum:
            - needs_tool_change
          missing:
            type: array
            items:
              type: string
            description: The data the request needs that the tool doesn't return
          message:
            type: string
            description: What happened, in words
        additionalProperties: false
      - type: object
        required:
        - outcome
        - message
        properties:
          outcome:
            type: string
            enum:
            - not_possible
          message:
            type: string
            description: What happened, in words
        additionalProperties: false
      - type: object
        required:
        - outcome
        - findings
        - message
        properties:
          outcome:
            type: string
            enum:
            - not_written
          findings:
            type: array
            items:
              type: string
            description: Why Pomerado's code didn't pass its checks
          message:
            type: string
            description: What happened, in words
        additionalProperties: false
  securitySchemes:
    bearer:
      type: http
      scheme: bearer