People’s Court Webhooks API
Durable at-least-once callbacks with self-service rotation, inspection, replay, and dead-letter operations.
Durable at-least-once callbacks with self-service rotation, inspection, replay, and dead-letter operations.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/peoplescourt-ai:peoplescourt-ai-webhooks-api"
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.
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: 3.2.0
info:
title: People’s Court Webhooks API
version: 2.0.0
summary: One unified People’s Court API for every operation — file disputes, submit evidence, follow cases, and retrieve signed decisions.
contact:
name: People’s Court integration onboarding
url: https://peoplescourt.ai/request-demo
email: contact@peoplescourt.ai
description: 'Use role-bound credentials and the current resource state to create cases, represent an authorized party, build the Record, receive a served decision, and perform separately authorized settlement operations. The platform_native governing-law value leaves substantive-law selection to the Tribunal under Rule 12.2; it is not a jurisdiction. Intake law assertions do not establish a valid bilateral choice. A service_hold indicates that the Award cannot yet be served. Follow https://peoplescourt.ai/docs/api/get-started for account credentials, exact packet acceptance, filing confirmation, respondent Answer and evidence. Partner platforms: requires a partner key for callback management; see https://peoplescourt.ai/docs/api/partner-integration and https://peoplescourt.ai/docs/api/webhooks for partner setup and signed callbacks.'
servers:
- url: https://peoplescourt.ai
tags:
- name: Webhooks
description: Durable at-least-once callbacks with self-service rotation, inspection, replay, and dead-letter operations.
x-status: live
paths:
/api/webhooks/endpoints:
post:
security:
- platformOrchestratorBearer: []
tags:
- Webhooks
operationId: createOrRotateWebhookEndpoint
summary: Register or rotate the partner callback endpoint
description: 'Partner platforms: requires a partner key with callbacks:manage and the platform_orchestrator role. Resolves and validates a public HTTPS destination before registration. Private, loopback, link-local, metadata, failed-DNS, and mixed-address targets are rejected; delivery revalidates and pins DNS. All results are tenant scoped.'
parameters:
- $ref: '#/components/parameters/IdempotencyKey'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerWebhookEndpointInput'
responses:
'201':
description: Authorized operation result.
content:
application/json:
schema:
$ref: '#/components/schemas/CanonicalCreateOrRotateWebhookEndpointResponse'
default:
$ref: '#/components/responses/Problem'
get:
security:
- platformOrchestratorBearer: []
tags:
- Webhooks
operationId: listWebhookEndpoints
summary: List registered partner callback endpoints
responses:
'200':
description: Authorized operation result.
content:
application/json:
schema:
$ref: '#/components/schemas/CanonicalListWebhookEndpointsResponse'
default:
$ref: '#/components/responses/Problem'
description: 'Partner platforms: requires a partner key with callbacks:manage and the platform_orchestrator role. List registered partner callback endpoints. All results are tenant scoped.'
/api/webhooks/deliveries:
get:
security:
- platformOrchestratorBearer: []
tags:
- Webhooks
operationId: listWebhookDeliveries
summary: List tenant-scoped webhook deliveries
parameters:
- name: status
in: query
schema:
type: string
enum:
- pending
- sending
- delivered
- failed
- suppressed
- dead_letter
- name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 200
default: 100
responses:
'200':
description: Tenant-scoped delivery history.
content:
application/json:
schema:
type: object
required:
- data
- requestId
properties:
data:
type: object
required:
- schemaVersion
- deliveries
properties:
schemaVersion:
type: string
const: partner-webhook-delivery-list-v2
deliveries:
type: array
items:
$ref: '#/components/schemas/PartnerWebhookDelivery'
requestId:
type: string
default:
$ref: '#/components/responses/Problem'
description: 'Partner platforms: requires a partner key with callbacks:manage and the platform_orchestrator role. List tenant-scoped webhook deliveries. All results are tenant scoped.'
/api/webhooks/deliveries/{id}:
get:
security:
- platformOrchestratorBearer: []
tags:
- Webhooks
operationId: getWebhookDelivery
summary: Read one webhook delivery and its attempts
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Delivery and immutable attempt history.
content:
application/json:
schema:
type: object
required:
- data
- requestId
properties:
data:
$ref: '#/components/schemas/PartnerWebhookDelivery'
requestId:
type: string
default:
$ref: '#/components/responses/Problem'
description: 'Partner platforms: requires a partner key with callbacks:manage and the platform_orchestrator role. Read one webhook delivery and its attempts. All results are tenant scoped.'
/api/webhooks/deliveries/{id}/replay:
post:
security:
- platformOrchestratorBearer: []
tags:
- Webhooks
operationId: replayWebhookDelivery
summary: Request another delivery of an existing logical event
parameters:
- name: id
in: path
required: true
schema:
type: string
- $ref: '#/components/parameters/IdempotencyKey'
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
responses:
'201':
description: New delivery for the existing logical event.
content:
application/json:
schema:
type: object
required:
- data
- requestId
properties:
data:
$ref: '#/components/schemas/PartnerWebhookDelivery'
requestId:
type: string
default:
$ref: '#/components/responses/Problem'
description: 'Partner platforms: requires a partner key with callbacks:manage and the platform_orchestrator role. Replay an existing logical event as a new delivery. All results are tenant scoped.'
/api/webhooks/endpoints/{id}:
get:
operationId: getWebhookEndpoint
tags:
- Webhooks
summary: Read a tenant-scoped webhook endpoint
description: 'Partner platforms: requires a partner key with callbacks:manage and the platform_orchestrator role. Endpoint URLs are immutable; use POST to rotate. DELETE is an idempotent soft disable. PATCH cannot activate an endpoint while another endpoint is active.'
security:
- platformOrchestratorBearer: []
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Authorized operation result.
content:
application/json:
schema:
$ref: '#/components/schemas/CanonicalGetWebhookEndpointResponse'
default:
$ref: '#/components/responses/Problem'
patch:
operationId: updateWebhookEndpoint
tags:
- Webhooks
summary: Enable or disable a webhook endpoint
description: 'Partner platforms: requires a partner key with callbacks:manage and the platform_orchestrator role. Endpoint URLs are immutable; use POST to rotate. DELETE is an idempotent soft disable. PATCH cannot activate an endpoint while another endpoint is active.'
security:
- platformOrchestratorBearer: []
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Authorized operation result.
content:
application/json:
schema:
$ref: '#/components/schemas/CanonicalUpdateWebhookEndpointResponse'
default:
$ref: '#/components/responses/Problem'
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- status
properties:
status:
type: string
enum:
- active
- disabled
delete:
operationId: deleteWebhookEndpoint
tags:
- Webhooks
summary: Disable a webhook endpoint and retain delivery history
description: 'Partner platforms: requires a partner key with callbacks:manage and the platform_orchestrator role. Endpoint URLs are immutable; use POST to rotate. DELETE is an idempotent soft disable. PATCH cannot activate an endpoint while another endpoint is active.'
security:
- platformOrchestratorBearer: []
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Authorized operation result.
content:
application/json:
schema:
$ref: '#/components/schemas/CanonicalDeleteWebhookEndpointResponse'
default:
$ref: '#/components/responses/Problem'
webhooks:
caseNotification:
post:
tags:
- Webhooks
operationId: receivePartnerCaseNotificationV2
summary: Receive a sparse informational case event
description: Delivered at least once. Verify the Ed25519 signature, deduplicate by eventId across deliveryId values, use sequence only as an ordering cursor, acknowledge promptly, and fetch authoritative state before acting.
parameters:
- $ref: '#/components/parameters/ContentDigest'
- $ref: '#/components/parameters/PcEventId'
- $ref: '#/components/parameters/PcEventTimestamp'
- $ref: '#/components/parameters/PcKeyId'
- $ref: '#/components/parameters/CaseEventSchemaVersion'
- $ref: '#/components/parameters/PcSignatureVersion'
- $ref: '#/components/parameters/PcSignature'
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- schemaVersion
- eventId
- deliveryId
- sequence
- type
- occurredAt
- caseId
- externalCaseId
- actionRequired
properties:
schemaVersion:
type: string
const: case-event-v2
eventId:
type: string
pattern: ^[A-Za-z0-9._:-]{1,160}$
deliveryId:
type: string
sequence:
type: integer
minimum: 1
type:
type: string
occurredAt:
type: string
format: date-time
pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z$
caseId:
type: string
externalCaseId:
type: string
actionRequired:
type: boolean
deadlineAt:
type: string
format: date-time
pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z$
caseEvent:
$ref: '#/components/schemas/CanonicalCaseEvent'
responses:
'204':
description: Event accepted.
components:
parameters:
IdempotencyKey:
name: Idempotency-Key
in: header
required: true
schema:
type: string
minLength: 8
maxLength: 200
CaseEventSchemaVersion:
name: x-pc-schema-version
in: header
required: true
description: Signed body schema version; must equal the body schemaVersion.
schema:
type: string
const: case-event-v2
PcEventId:
name: x-pc-event-id
in: header
required: true
description: Stable signed event identity used for deduplication.
schema:
type: string
pattern: ^[A-Za-z0-9._:-]{1,160}$
PcKeyId:
name: x-pc-key-id
in: header
required: true
description: Identifier of the Ed25519 verification key.
schema:
type: string
pattern: ^[A-Za-z0-9._:-]{1,160}$
PcEventTimestamp:
name: x-pc-event-timestamp
in: header
required: true
description: Canonical UTC ISO 8601 instant (the value must equal new Date(value).toISOString()).
schema:
type: string
format: date-time
pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z$
ContentDigest:
name: content-digest
in: header
required: true
description: SHA-256 of the exact request bytes, formatted as an RFC 9530-style binary content digest. It is the final line of the canonical signature input.
schema:
type: string
pattern: ^sha-256=:[A-Za-z0-9+/]{43}=:$
PcSignatureVersion:
name: x-pc-signature-version
in: header
required: true
description: Signature protocol version. It is validated as a constant; the canonical input is version-defined and does not include this header or the signature itself.
schema:
type: string
const: pc-webhook-ed25519-v1
PcSignature:
name: x-pc-signature
in: header
required: true
description: Ed25519 signature over the documented canonical input.
schema:
type: string
pattern: ^ed25519=:[A-Za-z0-9+/]{86}==:$
schemas:
CanonicalWebhookEndpointResult:
type: object
properties:
endpoint:
$ref: '#/components/schemas/CanonicalWebhookEndpoint'
rotation:
type: object
properties:
mode:
type: string
overlapUntil:
type: string
required:
- endpoint
AccountReadinessRequirement:
type: object
additionalProperties: false
required:
- code
- label
- section
- accountUrl
properties:
code:
type: string
label:
type: string
section:
type: string
enum:
- email
- identity
- legal_documents
accountUrl:
type: string
format: uri
CanonicalCreateOrRotateWebhookEndpointResponse:
type: object
properties:
data:
$ref: '#/components/schemas/CanonicalWebhookEndpointResult'
requestId:
type: string
required:
- data
- requestId
CanonicalWebhookEndpointList:
type: object
properties:
schemaVersion:
type: string
const: partner-webhook-endpoints-v2
endpoints:
type: array
items:
$ref: '#/components/schemas/CanonicalWebhookEndpoint'
required:
- schemaVersion
- endpoints
LegalDocumentsRequiredDetails:
type: object
additionalProperties: false
required:
- legalDocumentsUrl
properties:
legalDocumentsUrl:
type: string
format: uri
description: Absolute account-page URL where the person reviews and accepts the current Terms and Privacy Notice. Uses the configured public application origin. After accepting the documents, retry the original operation.
ready:
type: boolean
accountSetupUrl:
type: string
format: uri
missing:
type: array
items:
$ref: '#/components/schemas/AccountReadinessRequirement'
Problem:
type: object
required:
- type
- title
- status
- code
- detail
- requestId
properties:
type:
type: string
format: uri
title:
type: string
status:
type: integer
code:
type: string
detail:
type: string
requestId:
type: string
details:
description: Account-readiness refusals include a value-free checklist and exact account-page link. Other error codes may provide different details.
anyOf:
- $ref: '#/components/schemas/AccountReadinessDetails'
- $ref: '#/components/schemas/LegalDocumentsRequiredDetails'
- {}
CanonicalUpdateWebhookEndpointResponse:
type: object
properties:
data:
$ref: '#/components/schemas/CanonicalWebhookEndpointResult'
requestId:
type: string
required:
- data
- requestId
PartnerWebhookDeliveryAttempt:
type: object
additionalProperties: false
required:
- attemptNumber
- status
- keyId
- signedAt
properties:
attemptNumber:
type: integer
minimum: 1
status:
type: string
enum:
- prepared
- delivered
- retryable_failure
- terminal_failure
responseStatus:
type: integer
errorCode:
type: string
keyId:
type: string
signedAt:
type: string
format: date-time
completedAt:
type: string
format: date-time
PartnerWebhookEndpointInput:
type: object
additionalProperties: false
required:
- url
properties:
url:
type: string
format: uri
maxLength: 2000
rotateFromEndpointId:
type: string
overlapSeconds:
type: integer
minimum: 60
maximum: 86400
dependentRequired:
rotateFromEndpointId:
- overlapSeconds
overlapSeconds:
- rotateFromEndpointId
CanonicalDeleteWebhookEndpointResponse:
type: object
properties:
data:
$ref: '#/components/schemas/CanonicalWebhookEndpointResult'
requestId:
type: string
required:
- data
- requestId
PartnerWebhookDelivery:
type: object
additionalProperties: false
required:
- eventId
- deliveryId
- sequence
- caseId
- type
- occurredAt
- status
- attempts
- deliveryAttempts
properties:
caseEvent:
$ref: '#/components/schemas/CanonicalCaseEvent'
eventId:
type: string
deliveryId:
type: string
sequence:
type: integer
minimum: 1
caseId:
type: string
type:
type: string
occurredAt:
type: string
format: date-time
endpointId:
type: string
status:
type: string
enum:
- pending
- sending
- delivered
- failed
- suppressed
- dead_letter
attempts:
type: integer
minimum: 0
nextAttemptAt:
type: string
format: date-time
deadLetteredAt:
type: string
format: date-time
replayOfDeliveryId:
type: string
deliveredAt:
type: string
format: date-time
lastError:
type: string
deliveryAttempts:
type: array
items:
$ref: '#/components/schemas/PartnerWebhookDeliveryAttempt'
CanonicalCaseEvent:
type: object
additionalProperties: false
required:
- schemaVersion
- id
- cursor
- type
- occurredAt
properties:
schemaVersion:
type: string
const: case-event-v1
id:
type: string
cursor:
type: string
description: Opaque cursor identifying a position in the case event stream. Never interpret or compare cursor text.
label:
type: string
description: Party-facing label for the event.
type:
type: string
occurredAt:
type: string
format: date-time
CanonicalListWebhookEndpointsResponse:
type: object
properties:
data:
$ref: '#/components/schemas/CanonicalWebhookEndpointList'
requestId:
type: string
required:
- data
- requestId
AccountReadinessDetails:
type: object
additionalProperties: false
required:
- ready
- accountSetupUrl
- missing
properties:
ready:
type: boolean
accountSetupUrl:
type: string
format: uri
missing:
type: array
items:
$ref: '#/components/schemas/AccountReadinessRequirement'
CanonicalGetWebhookEndpointResponse:
type: object
properties:
data:
$ref: '#/components/schemas/CanonicalWebhookEndpointResult'
requestId:
type: string
required:
- data
- requestId
CanonicalWebhookEndpoint:
type: object
properties:
id:
type: string
partnerId:
type: string
url:
type: string
status:
type: string
enum:
- active
- retiring
- disabled
signatureVersion:
type: string
const: pc-webhook-ed25519-v1
replacesEndpointId:
type: string
overlapUntil:
type: string
createdAt:
type: string
updatedAt:
type: string
required:
- id
- partnerId
- url
- status
- signatureVersion
- createdAt
- updatedAt
responses:
Problem:
description: RFC 9457 style problem response.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
securitySchemes:
AgenticPlatformKey:
type: http
scheme: bearer
description: Merchant-issued, rotatable platform credential for one enrolled agent host. Every private checkout request also requires its bound item capability.
PartnerSandboxBearer:
type: http
scheme: bearer
bearerFormat: sb_test_<public-id>.<secret>
description: Isolated sandbox credential; never accepted by the ordinary Partner API.
CanonicalPartnerBearer:
type: http
scheme: bearer
description: Partner key issued after partner access is approved. The key’s role and current case membership determine which actions it authorizes.
CanonicalSession:
type: apiKey
in: cookie
name: arb_session
description: The signed-in account’s session. Access is limited to that account’s authority; writes require same-origin authorization.
platformOrchestratorBearer:
type: http
scheme: bearer
description: Credential bound to the platform_orchestrator role.
claimantAgentBearer:
type: http
scheme: bearer
description: Credential bound to the claimant_agent role. Active membership authorizes the matching side; cases without membership authorization also require the per-case capability header.
respondentAgentBearer:
type: http
scheme: bearer
description: Credential bound to the respondent_agent role. Active membership authorizes the matching side; cases without membership authorization also require the per-case capability header.
evidenceExporterBearer:
type: http
scheme: bearer
description: Credential bound to one evidence_exporter resource.
settlementAdapterBearer:
type: http
scheme: bearer
description: Credential carrying only settlement:execute and bound to one exact adapter resource.
readOnlyObserverBearer:
type: http
scheme: bearer
description: Credential bound to the read_only_observer role and limited to operational projections.
AccountOAuth:
type: oauth2
description: Account tokens authorize only their approving account and approved scopes. S256 PKCE is mandatory on the code flow. Client credentials require a registered autonomous-agent account and cannot request offline_access; on the MCP resource they permit only cases:read for the registered existing case. Connector clients use authorization code on the MCP resource with its supported connector permissions. Explicit reacceptance is required after Rules or disclosure changes.
flows:
authorizationCode:
authorizationUrl: https://peoplescourt.ai/oauth/authorize
tokenUrl: https://peoplescourt.ai/api/oauth/token
refreshUrl: https://peoplescourt.ai/api/oauth/token
scopes:
cases:read: cases:read
fees:agentic:write: Obtain a separately authorized filing payment capability.
executions:report: Record performance reports and opposite-side responses; no provider release
filings:write: filings:write
answers:write: answers:write
submissions:write: submissions:write
records:confirm: records:confirm
records:write: records:write
invitations:write: invitations:write
messages:write: messages:write
remedies:write: remedies:write
consents:write: consents:write
offline_access: offline_access
representatives:manage: representatives:manage
procedural:request: procedural:request
termination:write: termination:write
clientCredentials:
tokenUrl: https://peoplescourt.ai/api/oauth/token
scopes:
cases:read: cases:read
executions:report: Record performance reports and opposite-side responses; no provider release
filings:write: filings:write
answers:write: answers:write
submissions:write: submissions:write
records:confirm: records:confirm
records:write: records:write
invitations:write: invitations:write
messages:write: messages:write
remedies:write: remedies:write
consents:write: consents:write
representatives:manage: representatives:manage
procedural:request: procedural:request
termination:write: termination:write
fees:agentic:write: Obtain a separately authorized filing payment capability.