> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pomerado.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a shape

> Get one of your shapes: its code, the form of its results, the words it was made from and its last 100 versions.

> [accordion] Details
>
> Anyone else's shape is not found.
>
> * **Callers:** an API key, an integration's API key, an MCP OAuth token or a Dashboard session.
> * **Permission:** `tools:read`.
> * **Effect:** Changes nothing.
> * **Errors:** [`not_found`](https://docs.pomerado.ai/errors#not_found), [`sign_in_required`](https://docs.pomerado.ai/errors#sign_in_required), and the [errors any request can get](https://docs.pomerado.ai/errors.md).


## OpenAPI

````yaml /api-reference/openapi.json get /v1/shapes/{id}
openapi: 3.1.0
info:
  title: Pomerado 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
security: []
tags:
  - name: account
    x-group: Account
  - name: api_keys
    x-group: API keys
  - name: connected_apps
    x-group: Connected apps
  - name: usage
    x-group: Usage
  - name: quota
    x-group: Quota
  - name: spend_controls
    x-group: Spend controls
  - name: usage_alerts
    x-group: Usage alerts
  - name: usage_summary
    x-group: Usage summary
  - name: billing
    x-group: Billing
  - name: integrations
    x-group: Integrations
  - name: connect
    x-group: Connect
  - name: code
    x-group: Code
  - name: logins
    x-group: Saved logins
  - name: two_factor
    x-group: 2FA
  - name: login_access
    x-group: Login access
  - name: tools
    x-group: Tools
  - name: shapes
    x-group: Shapes
  - name: webhooks
    x-group: Webhooks
  - name: payer_profiles
    x-group: Payer profiles
  - name: payer_addresses
    x-group: Payer addresses
  - name: payment_methods
    x-group: Payment methods
  - name: runs
    x-group: Runs
  - name: builds
    x-group: Builds
  - name: jobs
    x-group: Jobs
  - name: suggestions
    x-group: Suggestions
  - name: audit
    x-group: Audit
  - name: files
    x-group: Files
  - name: team
    x-group: Team
  - name: sso
    x-group: Single sign-on
  - name: issue_reports
    x-group: Problem reports
paths:
  /v1/shapes/{id}:
    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.
      operationId: shapes.get
      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: []
components:
  schemas:
    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
    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
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.