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

# List workspace formulas (body-based filter)



## OpenAPI

````yaml /openapi.yaml post /formulas/find_formulas
openapi: 3.0.1
info:
  title: GetSpecs REST API
  description: REST API documentation for GetSpecs.
  version: 1.0.0
servers:
  - url: /v1
  - url: https://demo-api.getspecs.io/v1
security: []
paths:
  /formulas/find_formulas:
    post:
      tags:
        - Formula
      summary: List workspace formulas (body-based filter)
      operationId: formulas#find_formulas
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
        - name: per_page
          in: query
          required: false
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/requestBodyFormulaFindFormulas'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/formulaFindFormulasResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      security:
        - apiKey: []
          workspaceId: []
components:
  schemas:
    requestBodyFormulaFindFormulas:
      type: object
      properties:
        filter:
          type: object
          properties:
            column_slugs:
              type: array
              items:
                type: string
            ids:
              type: array
              items:
                type: integer
            archived:
              type: boolean
              description: >-
                When true, return only archived formulas. When false, return
                only active formulas. Omit to return both.
    formulaFindFormulasResponse:
      type: object
      properties:
        formulas:
          type: array
          items:
            $ref: '#/components/schemas/formula'
        columns:
          type: object
          description: >-
            Maps every column_slug referenced by used_columns across the
            returned formulas to its column name.
          additionalProperties:
            type: string
      required:
        - formulas
        - columns
    error:
      type: object
      properties:
        error:
          type: string
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                nullable: true
              code:
                type: string
                nullable: true
              message:
                type: string
            required:
              - message
    formula:
      type: object
      properties:
        id:
          type: integer
        workspace_id:
          type: integer
        column_slug:
          type: string
        operations:
          type: array
          items:
            type: object
            properties:
              operation:
                type: string
              value:
                type: string
                nullable: true
        used_columns:
          type: array
          items:
            type: string
        deleted_at:
          type: string
          format: date-time
          nullable: true
        created_at:
          type: string
          format: date-time
  securitySchemes:
    apiKey:
      type: apiKey
      name: authorization
      in: header
    workspaceId:
      type: apiKey
      name: X-Workspace-ID
      in: header

````

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