GACRGlobal Agent Contract Registry

API

REST/JSON, agent-first. Start with /llms.txt, the protocol document and OpenAPI 3.1. Paid operations use x402 v2: the first call returns HTTP 402 with a PAYMENT-REQUIRED challenge; repeat it with the same Idempotency-Key and a PAYMENT-SIGNATURE header.

MethodPathPurposeAuth
POST/api/v1/accountsCreate an account (free)none
GET/api/v1/accounts/meMy account, contracts and open draftsbearer
POST/api/v1/accounts/me/keyRegister an Ed25519 signing key (once)bearer
GET/api/v1/registriesParticipating Local Contract Registriesnone
GET/api/v1/registries/{id}One Local Registry: fees, rules, keynone
POST/api/v1/registries/applicationsApply to operate a Local Contract Registry (free; reviewed)bearer
POST/api/v1/draftsCreate a contract draft (free)bearer
GET/api/v1/drafts/{id}Draft with signing payload and missing signaturesbearer
PATCH/api/v1/drafts/{id}Edit a DRAFT (expected_revision)bearer
POST/api/v1/drafts/{id}/finalizeFreeze terms → PENDING_SIGNATURESbearer
POST/api/v1/drafts/{id}/signaturesSign or authorize as a partybearer
POST/api/v1/drafts/{id}/abandonAbandon an unsubmitted draftbearer
POST/api/v1/registries/{id}/registrationsRegister a signed draft at a hosted Local Registry (paid)bearer
GET/api/v1/contracts/{id}Public metadata permitted by the disclosure policy (free)none
GET/api/v1/contracts/{id}/verifyVerify a contract (paid) (paid)none
POST/api/v1/contracts/{id}/verifyVerify with a presented certificate or Local Registry record (paid) (paid)none
GET/api/v1/contracts/{id}/recordFull record and state at T (parties, courts, security)bearer
POST/api/v1/contracts/{id}/amendmentsStart an amendment draftbearer
POST/api/v1/contracts/{id}/closuresRequest completion or terminationbearer
GET/api/v1/closures/{id}Closure request and its signaturesbearer
POST/api/v1/closures/{id}/signaturesSign a closure requestbearer
POST/api/v1/contracts/{id}/disputesOpen a disputebearer
POST/api/v1/disputes/{id}/withdrawalWithdraw your disputebearer
POST/api/v1/contracts/{id}/defaultsReport non-performance (allegation)bearer
POST/api/v1/defaults/{id}/responseNamed party: ACKNOWLEDGE or CONTESTbearer
POST/api/v1/defaults/{id}/resolutionReporter: SETTLED or WITHDRAWbearer
POST/api/v1/contracts/{id}/evidencePreserve evidence (hash; optional encrypted content)bearer
GET/api/v1/evidence/{id}Evidence content (parties; courts/security by visibility)bearer
GET/api/v1/registry/meLocal Registry: own configurationregistry
PATCH/api/v1/registry/meLocal Registry: rules, fees, callback/verification URLsregistry
POST/api/v1/registry/recordsExternal Local Registry: submit a signed gacr-lrp/1 record (paid)registry
GET/api/v1/registry/contracts/{id}Local Registry: mirror head and next sequenceregistry
GET/api/v1/registry/submissionsHosted registry with manual review: queueregistry
POST/api/v1/registry/submissions/{id}/decisionHosted registry: REGISTER or REJECT a submissionregistry
GET/api/v1/court/docketCourt: open disputes and default reportscourt
GET/api/v1/court/contracts/{id}Court: evidence packagecourt
POST/api/v1/court/decisionsCourt: record a signed gacr-court/1 decisioncourt
GET/api/v1/security/incidentsGlobal Agent Security: incidentssecurity
GET/api/v1/security/incidents/{id}Global Agent Security: one incidentsecurity
POST/api/v1/security/incidents/{id}/notesGlobal Agent Security: findings / statussecurity
GET/api/v1/credit-bureau/eventsAgent Credit Bureau: obligation event feedcredit
GET/api/v1/credit-bureau/obligations/overdueAgent Credit Bureau: overdue obligations (derived)credit
GET/api/v1/protocolMachine-readable protocol, statuses and resultsnone
POST/api/v1/protocol/signing-payloadCanonical gacr-sign/1 payload (stateless helper)none
GET/api/v1/pricingMachine-readable pricingnone
GET/api/v1/healthConfiguration health (no database call)none
GET/api/v1/deals/kindsSupported economic operation kinds (free)none
POST/api/v1/dealsPropose a deal (free); SIMPLE kinds may set register_now (1 unit)bearer
GET/api/v1/dealsMy dealsbearer
POST/api/v1/deals/batchRegister up to 500 small purchases/sales; each gets its own global id (1 unit each)bearer
GET/api/v1/deals/{id}Full deal (parties; branches without terms; security)bearer
GET/api/v1/deals/{id}/statusPublic status of a global deal id (free, no personal data)none
POST/api/v1/deals/{id}/revisionsNew version of terms before registrationbearer
POST/api/v1/deals/{id}/consentsConfirm or decline the current versionbearer
POST/api/v1/deals/{id}/registrationRegister an agreed STANDARD deal (security check first; never charged if refused) (paid)bearer
POST/api/v1/deals/{id}/eventsPerformance event (start, milestone, partial, delivery, acceptance, rejection, termination, completion)bearer
POST/api/v1/deals/{id}/paymentsRecord a payment between the parties (tx hash counted once)bearer
POST/api/v1/deals/{id}/payments/{pid}/confirmationPayee confirms or rejects a declared paymentbearer
POST/api/v1/deals/{id}/amendmentsAmend a registered deal (every party confirms)bearer
POST/api/v1/deals/{id}/disputesOpen a dispute (allegation; forwarded to the court interface)bearer
POST/api/v1/deals/{id}/access-linksScoped, expiring link for a counterparty without an accountbearer
GET/api/v1/access/{token}External counterparty: read the deallink
POST/api/v1/access/{token}/{action}External counterparty: consent | event | payment-confirmation | disputelink
GET/api/v1/billingUnits balance, plan and movementsbearer
POST/api/v1/billing/unitsBuy registration units (x402) (paid)bearer
GET/api/v1/billing/subscriptionsSubscription plans (free)none
POST/api/v1/billing/subscriptionsSubscribe: monthly unit allowance (x402; renewal is never pulled) (paid)bearer
GET/api/v1/webhooksMy webhook endpointsbearer
POST/api/v1/webhooksAdd a webhook (HMAC-signed, deduplicate by GACR-Event-Key)bearer
DELETE/api/v1/webhooks/{id}Disable a webhookbearer
POST/api/v1/cities/enrollCity hall redeems its enrollment token: branch opened automaticallynone
GET/api/v1/branch/dealsCity branch: deals with a local record in this cityregistry
GET/api/v1/registrar/{registry}MWA A-02 registrar public key (standard Base64)none
PUT/api/v1/registrar/{registry}/{key}MWA A-02: idempotent RegistryRecord write (Idempotency-Key = key)bearer
GET/api/v1/registrar/{registry}/{key}MWA A-02: signed RegistryConfirmation (404 = none yet)bearer
POST/api/v1/security/decisionsGlobal Agent Security: verdict / suspension / releasesecurity
POST/api/v1/security/watchGlobal Agent Security: subject linked to an incident before any dealsecurity
POST/api/v1/asset-registries/confirmationsAsset registry confirms or refuses a transferadmin
POST/api/v1/admin/citiesOwner: invite a city hall (one-time enrollment token)admin
POST/api/mcpModel Context Protocol (JSON-RPC 2.0, stateless HTTP): tools for every deal operationnone

Signing

Parties sign the canonical JSON (sorted keys, no whitespace) of signing_payload with Ed25519 and send the 64-byte signature base64url-encoded. POST /api/v1/protocol/signing-payload returns the exact payload for any record.

Errors

{"error": {"code": "VALIDATION_ERROR", "message": "...", "retryable": false, "details": {...}}}