CPZ Lab Order Approvals API

The order-approvals API from CPZ Lab — 2 operation(s) for order-approvals.

GitHub OpenAPI

Operations 2

GET /order-approvals List order-approvals #
GET /order-approvals/{id} Get order-approvals by id #

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/cpz-lab-com:cpz-lab-com-order-approvals-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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cpz-lab-com-order-approvals-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CPZAI Order Approvals API
  version: 2.0.0
  description: Programmatic access to CPZAI for agents, scripts, and integrations. Manage strategies, execute backtests, place orders, monitor risk, and subscribe to real-time events — all via API key or OAuth2 access token.
  contact:
    name: CPZAI Support
    url: https://cpz-lab.com
  license:
    name: Proprietary
servers:
- url: https://api.cpz-lab.com/rest/v1
  description: Production REST v1
- url: https://api.cpz-lab.com/cpz/v1
  description: Production CPZ gateway v1
security:
- ApiKeyHeader: []
- ApiKeyBearer: []
- OAuth2: []
tags:
- name: order-approvals
paths:
  /order-approvals:
    get:
      summary: List order-approvals
      tags:
      - order-approvals
      parameters:
      - name: status
        in: query
        schema:
          type: string
          enum:
          - pending
          - approved
          - rejected
          - consumed
          - placed
          - failed
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 50
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
      - name: sort_by
        in: query
        required: false
        schema:
          type: string
      - name: sort_order
        in: query
        required: false
        schema:
          type: string
          enum:
          - asc
          - desc
          default: desc
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/OrderApproval'
                  count:
                    type: integer
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: getOrderApprovals
      x-operation-id-source: derived
  /order-approvals/{id}:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
    get:
      summary: Get order-approvals by id
      tags:
      - order-approvals
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/OrderApproval'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: getOrderApprovalsById
      x-operation-id-source: derived
components:
  responses:
    RateLimited:
      description: Rate limit exceeded
      headers:
        Retry-After:
          schema:
            type: integer
        X-RateLimit-Limit:
          schema:
            type: integer
        X-RateLimit-Remaining:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid credentials
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
      required:
      - error
    OrderApproval:
      type: object
      description: An order from a confirm_orders credential, held for the owner. Approve or reject in the app; resubmit POST /orders with approval_id once approved.
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          enum:
          - pending
          - approved
          - rejected
          - consumed
          - placed
          - failed
        effective_status:
          type: string
          enum:
          - pending
          - approved
          - rejected
          - consumed
          - placed
          - failed
          - expired
        summary:
          type: object
        broker:
          type: string
          nullable: true
        environment:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        expires_at:
          type: string
          format: date-time
        decided_at:
          type: string
          format: date-time
          nullable: true
        consumed_at:
          type: string
          format: date-time
          nullable: true
        completed_at:
          type: string
          format: date-time
          nullable: true
        result_status:
          type: integer
          nullable: true
        error:
          type: string
          nullable: true
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-CPZ-Key
      description: Paired with X-CPZ-Secret. Recommended for SDK and server-to-server use.
    ApiKeyBearer:
      type: http
      scheme: bearer
      bearerFormat: cpz_key
      description: 'Single-header API key: Authorization: Bearer cpz_key_PREFIX.SECRET'
    OAuth2:
      type: oauth2
      description: OAuth 2.0 + PKCE issued by the CPZAI authorization server.
      flows:
        authorizationCode:
          authorizationUrl: https://api.cpz-lab.com/oauth/authorize
          tokenUrl: https://api.cpz-lab.com/oauth/token
          refreshUrl: https://api.cpz-lab.com/oauth/token
          scopes:
            openid: openid
            profile: profile
            email: email
            offline_access: offline_access
            strategies: strategies
            data: data
            orders: orders
            orders_paper: orders_paper
            confirm_orders: confirm_orders
            data_connections: data_connections
            trading_credentials: trading_credentials
            storage: storage
        clientCredentials:
          tokenUrl: https://api.cpz-lab.com/oauth/token
          scopes:
            strategies: strategies
            data: data
            orders: orders
            orders_paper: orders_paper
            confirm_orders: confirm_orders
            data_connections: data_connections
            trading_credentials: trading_credentials
            storage: storage