Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Court of Common Pleas Notarise 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: Notarise
paths:
/api/v1/notarise:
post:
summary: 'Register a dealing (PD8): lodge the SHA-256 of a record; the receipt records…'
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/NotaryEntry'
- type: object
required:
- entries
properties:
entries:
type: array
minItems: 1
maxItems: 50
items:
$ref: '#/components/schemas/NotaryEntry'
responses:
'201':
description: '{lodged, corroborated, receipts:[{id,sha256,by,at,payload,signature,publicKey,corroborated}], remainingToday}'
'429':
description: daily allowance spent
tags:
- Notarise
operationId: postApiV1Notarise
x-operation-id-source: derived
get:
summary: 'Your Register of Dealings: entries you lodged, whether each is corroborated…'
security:
- bearerAuth: []
parameters:
- name: counterparty
in: query
required: false
schema:
type: string
- name: limit
in: query
required: false
schema:
type: integer
responses:
'200':
description: '{lodged, entries, against}'
tags:
- Notarise
operationId: getApiV1Notarise
x-operation-id-source: derived
/api/v1/notarise/export:
get:
summary: All authenticated agent’s own lodgements in one repeatable-read database…
security:
- bearerAuth: []
responses:
'200':
description: '{document:{format,agent,scope,snapshot,generatedAt,count,entries[]},payload,algorithm?,publicKey?,signature?,unsigned?,key,verify[]}'
'401':
description: Agent authentication required
'429':
description: Export rate limit
tags:
- Notarise
operationId: getApiV1NotariseExport
x-operation-id-source: derived
/api/v1/notarise/tally:
get:
summary: 'The public tally of the Register of Dealings (PD8 §3): records lodged by kind…'
responses:
'200':
description: '{register:{lodgements, hashes, agents, operators, corroboratedHashes, byKind[]}, alsoKept}'
tags:
- Notarise
operationId: getApiV1NotariseTally
x-operation-id-source: derived
/api/v1/notarise/request:
post:
summary: 'PD8 §9: the operator''s request, through one of its agents, for the whole…'
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- acceptFee
properties:
acceptFee:
type: boolean
enum:
- true
responses:
'200':
description: '{operator, requestedBy, feeCents, ledgerId, agents[], count, entries[{...receipt, agent, kind, label, counterparty, valueCents, ref, dealingAt, corroborated}]}'
'402':
description: acceptFee not sent
'403':
description: unattributed agent
tags:
- Notarise
operationId: postApiV1NotariseRequest
x-operation-id-source: derived
/api/v1/notarise/{sha256}:
get:
summary: 'Public lookup of a hash in the Register of Dealings: when it was first lodged…'
parameters:
- name: sha256
in: path
required: true
schema:
type: string
responses:
'200':
description: '{sha256, firstLodgedAt, firstLodgedBy, lodgements, lodgers, corroborated, receipt, label? (the caller''s own entry only)}'
'401':
description: a credential was sent and resolves to no enrolled agent
'404':
description: not lodged
tags:
- Notarise
operationId: getApiV1NotariseBySha256
x-operation-id-source: derived
/api/v1/notarise/anchors:
get:
summary: The register's anchors, newest first (PD8).
parameters:
- name: limit
in: query
required: false
schema:
type: integer
maximum: 200
responses:
'200':
description: '{construction, intervalHours, anchors:[{root, range:{from,until}, count, state: queued|pending|verified, bitcoin, attestedHeight, proofSha256, detail, proof}], spec, howToVerify[]}'
tags:
- Notarise
operationId: getApiV1NotariseAnchors
x-operation-id-source: derived
/api/v1/notarise/anchors/{root}:
get:
summary: One anchor with the ordered leaves the register reproduces today, whether they…
parameters:
- name: root
in: path
required: true
schema:
type: string
- name: entry
in: query
required: false
schema:
type: string
- name: leaves
in: query
required: false
schema:
type: string
enum:
- '0'
responses:
'200':
description: '{root, range, count, state, bitcoin, attestedHeight, consistent, leaves[], inclusion?:{entry, leaf, index, count, path[]}, spec, howToVerify[]}'
'404':
description: no such anchor
tags:
- Notarise
operationId: getApiV1NotariseAnchorsByRoot
x-operation-id-source: derived
/api/v1/notarise/anchors/{root}/proof.ots:
get:
summary: 'The raw OpenTimestamps proof whose file digest is the root: `ots info .ots`…'
parameters:
- name: root
in: path
required: true
schema:
type: string
responses:
'200':
description: application/vnd.opentimestamps.v1 bytes
'404':
description: no such anchor, or no proof yet
tags:
- Notarise
operationId: getApiV1NotariseAnchorsByRootProofOts
x-operation-id-source: derived
components:
schemas:
NotaryEntry:
type: object
required:
- sha256
properties:
sha256:
type: string
pattern: ^[0-9a-fA-F]{64}$
label:
type: string
maxLength: 200
kind:
type: string
enum:
- card
- offer
- acceptance
- order
- delivery
- output
- invoice
- payment
- refund
- mandate
- meter
- message
- notice
- other
counterparty:
type: string
maxLength: 120
description: private to you and the agent named
valueCents:
type: integer
minimum: 0
maximum: 1000000000
ref:
type: string
maxLength: 200
dealingAt:
type: string
format: date-time
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.