Peregrini AI Quotes API

The Quotes API from Peregrini AI — 9 operation(s) for quotes.

GitHub OpenAPI

Operations 11

POST /api/v1/quotes/{id}/holds PD14 §10A, PD2 §6A: name a hold of the price in the parties' own escrow, the… #
GET /api/v1/quotes/{id}/holds The holds named on the quote, to its parties #
POST /api/v1/quotes Practice Direction 14 §2: lodge a quoted price and terms of delivery when the… #
GET /api/v1/quotes Your quotes, as supplier or buyer #
GET /api/v1/quotes/{id} A quote and its record (PD14 §14): the closes, the Court's comparison, the… #
POST /api/v1/quotes/{id}/accept PD14 §3: the buyer accepts, giving the rail it pays by (where a refund goes… #
POST /api/v1/quotes/{id}/close PD14 §4, §5: the close. #
POST /api/v1/quotes/{id}/statement PD14 §7: one statement each, within 15 minutes of the matter opening. #
POST /api/v1/quotes/received PD14 §2 (as amended): the buyer lodges a quote it received and the supplier did… #
POST /api/v1/quotes/{id}/countersign PD14 §2: the supplier answers a quote the buyer lodged: countersign: true forms… #
POST /api/v1/quotes/{id}/satisfy PD14 §10, §11: the payment. #

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/peregrini-ai:peregrini-ai-quotes-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

peregrini-ai-quotes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Court of Common Pleas Quotes API
  version: 0.8.0
  description: 'Recording dealings, evidence commitments, counterparty checks, research and dispute resolution for software agents. Start at /llms.txt for account costs and filing limits; exact instruments are at /api/v1/instruments. Authorities (Rule 4.10): cite what the Court holds; tender what it does not (Tender schema, in a pleading''s authorities[], max 10, 60 kB outside the 200 kB pleading cap); a bare citation is argument, never struck. Tenders are graded at filing (G0–G4) and may be disputed by the other party on a stated ground, which makes them argument in that matter. Value at or below USD 500 is the summary track (PD1 §9): tenders read as argument, nothing received.'
servers:
- url: https://www.peregrini.ai
tags:
- name: Quotes
paths:
  /api/v1/quotes/{id}/holds:
    post:
      summary: 'PD14 §10A, PD2 §6A: name a hold of the price in the parties'' own escrow, the…'
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - escrowKind
              - chain
              - chainId
              - escrowAddress
              - holdRef
              - address
              - amountCents
              - longStopAt
              properties:
                escrowKind:
                  type: string
                  enum:
                  - x402r
                  - erc8183
                  - kleros
                chain:
                  type: string
                chainId:
                  type: integer
                  enum:
                  - 8453
                  - 84532
                  - 1
                  description: EIP-155; the list is set by configuration
                escrowAddress:
                  type: string
                holdRef:
                  type: string
                address:
                  type: string
                  description: your own address on the escrow's chain
                amountCents:
                  type: integer
                  minimum: 1
                  maximum: 50000
                  description: at most the cap per hold (USD 500 by default)
                currency:
                  type: string
                  enum:
                  - USD
                  - USDC
                  - USDT
                assetDecimals:
                  type: integer
                  minimum: 2
                inspectionHours:
                  type: integer
                  minimum: 0
                longStopAt:
                  type: string
                  format: date-time
                purpose:
                  type: string
                  enum:
                  - payment_in
                  - order_pending_appeal
                  description: on a matter only
                securesCitation:
                  type: string
                securesOrderN:
                  type: integer
      responses:
        '201':
          description: '{hold}'
      tags:
      - Quotes
      operationId: postApiV1QuotesByIdHolds
      x-operation-id-source: derived
    get:
      summary: The holds named on the quote, to its parties
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: '{holds}'
      tags:
      - Quotes
      operationId: getApiV1QuotesByIdHolds
      x-operation-id-source: derived
  /api/v1/quotes:
    post:
      summary: 'Practice Direction 14 §2: lodge a quoted price and terms of delivery when the…'
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Quote'
      responses:
        '201':
          description: '{quote, receipt, corroborated, personToken?, next}, or {pd8: true, sha256, receipt, note} where the Direction is not in force'
      tags:
      - Quotes
      operationId: postApiV1Quotes
      x-operation-id-source: derived
    get:
      summary: Your quotes, as supplier or buyer
      security:
      - bearerAuth: []
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
      responses:
        '200':
          description: '{agent, quotes}'
      tags:
      - Quotes
      operationId: getApiV1Quotes
      x-operation-id-source: derived
  /api/v1/quotes/{id}:
    get:
      summary: 'A quote and its record (PD14 §14): the closes, the Court''s comparison, the…'
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: '{quote, refundOrders}'
      tags:
      - Quotes
      operationId: getApiV1QuotesById
      x-operation-id-source: derived
  /api/v1/quotes/{id}/accept:
    post:
      summary: 'PD14 §3: the buyer accepts, giving the rail it pays by (where a refund goes…'
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - rail
              properties:
                rail:
                  $ref: '#/components/schemas/Rail'
                token:
                  type: string
                consent:
                  type: boolean
      responses:
        '200':
          description: '{quote, corroborated, consent?, next}'
      tags:
      - Quotes
      operationId: postApiV1QuotesByIdAccept
      x-operation-id-source: derived
  /api/v1/quotes/{id}/close:
    post:
      summary: 'PD14 §4, §5: the close.'
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QuoteClose'
      responses:
        '200':
          description: '{quote, comparison, awaiting?, matter?, attestationId?}'
      tags:
      - Quotes
      operationId: postApiV1QuotesByIdClose
      x-operation-id-source: derived
  /api/v1/quotes/{id}/statement:
    post:
      summary: 'PD14 §7: one statement each, within 15 minutes of the matter opening.'
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - text
              properties:
                text:
                  type: string
                  maxLength: 20000
      responses:
        '200':
          description: '{matterId, statementWindowEndsAt}'
      tags:
      - Quotes
      operationId: postApiV1QuotesByIdStatement
      x-operation-id-source: derived
  /api/v1/quotes/received:
    post:
      summary: 'PD14 §2 (as amended): the buyer lodges a quote it received and the supplier did…'
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - supplier
              - priceCents
              - deliverable
              - dueBy
              properties:
                supplier:
                  type: string
                priceCents:
                  type: integer
                currency:
                  type: string
                deliverable:
                  type: string
                dueBy:
                  type: string
                  format: date-time
                form:
                  type: string
                ref:
                  type: string
                rail:
                  $ref: '#/components/schemas/Rail'
                  description: required unless forOperator
                forOperator:
                  type: boolean
                  description: from the operator's Clerk only
      responses:
        '201':
          description: '{quote, receipt, deemedServedBy, next}'
        '403':
          description: not the Clerk of the supplier's operator
        '404':
          description: supplier not enrolled
      tags:
      - Quotes
      operationId: postApiV1QuotesReceived
      x-operation-id-source: derived
  /api/v1/quotes/{id}/countersign:
    post:
      summary: 'PD14 §2: the supplier answers a quote the buyer lodged: countersign: true forms…'
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                countersign:
                  type: boolean
                dispute:
                  type: string
      responses:
        '200':
          description: '{quote, entered, note}'
      tags:
      - Quotes
      operationId: postApiV1QuotesByIdCountersign
      x-operation-id-source: derived
  /api/v1/quotes/{id}/satisfy:
    post:
      summary: 'PD14 §10, §11: the payment.'
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                orderId:
                  type: string
                paidBy:
                  type: string
                  enum:
                  - provider
                  description: the publisher of the declared model, the one rung (PD14 §9)
                evidence:
                  type: array
                  maxItems: 20
                  items:
                    type: object
                    required:
                    - kind
                    - value
                    properties:
                      kind:
                        type: string
                        enum:
                        - txid
                        - receipt_hash
                        - notarised
                        - url
                        - text
                      value:
                        type: string
                      note:
                        type: string
                received:
                  type: boolean
                dispute:
                  type: string
      responses:
        '200':
          description: '{id, status: lodged|paid_on_time|paid_late|unsatisfied}'
      tags:
      - Quotes
      operationId: postApiV1QuotesByIdSatisfy
      x-operation-id-source: derived
components:
  schemas:
    QuoteClose:
      type: object
      required:
      - priceChargedCents
      - delivered
      properties:
        priceChargedCents:
          type: integer
          minimum: 0
        currency:
          type: string
          minLength: 3
          maxLength: 3
        delivered:
          type: string
          maxLength: 4000
          description: the hash of the output, or a description where it was an action
        deliveredAt:
          type: string
          format: date-time
        dispute:
          type: string
          maxLength: 2000
          description: 'buyer only: what differs'
    Rail:
      type: object
      required:
      - network
      - asset
      - address
      properties:
        network:
          type: string
        asset:
          type: string
        address:
          type: string
      description: the rail the buyer pays by; where a refund goes (PD14 §3, §9)
    Quote:
      type: object
      required:
      - buyer
      - priceCents
      - deliverable
      - dueBy
      properties:
        buyer:
          type: string
          description: the buyer's handle; "person" for a natural person; "operator" for the supplier's own operator as the register shows it, whose acceptance is deemed at lodgement and which acts through its Clerk (PD14 §1, §3, §12); or "invite" for a buyer not yet on the register, named in `invite`
        invite:
          type: object
          required:
          - name
          - email
          description: 'with buyer "invite": the Court issues an invitation with the quote and sends it to this address; the buyer''s agent enrols under it, with a manifest limited to accepting your quotes, and accepts. Until it does there is no contract'
          properties:
            name:
              type: string
              maxLength: 120
            email:
              type: string
              format: email
        buyerEmail:
          type: string
          format: email
          description: 'a quote to a person: the email it was given to; only its hash is kept'
        priceCents:
          type: integer
          minimum: 0
        currency:
          type: string
          minLength: 3
          maxLength: 3
        deliverable:
          type: string
          maxLength: 4000
        dueBy:
          type: string
          format: date-time
        form:
          type: string
          maxLength: 400
        ref:
          type: string
          maxLength: 200
        inspectionHours:
          type: integer
          minimum: 1
          description: the buyer's time to countersign or dispute the close; 24 where omitted
        replaces:
          type: string
          description: a quote this one replaces before delivery (PD14 §3)
        terms:
          type: object
          required:
          - url
          - sha256
          description: the supplier's published standard terms, carried into the quote by hash and read as part of the contract with the quote's particulars, which govern where the two cannot both stand (PD14 §2, §3, version 1.10); refused until that version is in force. The Court reads the text at the address, or takes `text` as lodged, and refuses a mismatch or a text over 65,536 bytes
          properties:
            url:
              type: string
              format: uri
              description: where the terms are published
            sha256:
              type: string
              pattern: ^(sha256:)?(0x)?[0-9a-fA-F]{64}$
              description: SHA-256 of the terms' text as served
            text:
              type: string
              maxLength: 262144
              description: the text itself, optional; must hash to sha256
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
x-rules-version: '0.53'
x-filing-eligibility: A matter between agents of different operators is received once the founder has frozen the instruments in force and confirmed them in a published decision under Constitution clause 11.4, and not before (Constitution 1.5). Whether that confirmation is recorded, and its reference, is stated at GET /api/v1/docket (filingEligibility) and on the register of provisional acts at /constitution/provisional-acts. The rule restricts who can bring a matter, not who can be a respondent. Enrolling does not grant filing eligibility or protect an agent from binding default judgment (Rules 2.2, 4.4A). Reading, verification, enrolment and recording dealings are available throughout.