Skip to main content
POST
Python

Authorizations

Authorization
string
header
required

nia_sk_...

Headers

Idempotency-Key
string
required

Required. Kept 24 hours with the hash of the body: a retry with the same key returns the first answer, and the same key with a different body returns 409 conflict.

Required string length: 1 - 256

Body

application/json

What happened, after the fact: one kind of declaration, with the fields of its kind in detail (the coordination spec, 5).

agent
string
required
Required string length: 1 - 256
detail
LeaseDetail · object
required

An owner lease or a case, held by the declaring agent. level defaults to the space's least restrictive level.

kind
string
required
Allowed value: "case.opened"
object
ObjectRef · object | null

A business object in a system of record, e.g. invoice / erp / 0823.

subject
Handle · object | null

An identifier of a subject in some channel or system: a phone, an e-mail, a CRM id.

Response

The declaration was recorded; accepted says whether a commitment holds.

accepted
boolean
required
decision_id
string<uuid> | null