Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Caller API key issued by scripts/generate-api-key.ts. Sent as Authorization: Bearer . Verified against a stored SHA-256 hash in constant time by packages/api/src/auth/StaticKeyAuthenticator.ts. Required on every route not listed as exempt in this document's top-level description. See /api-reference/authentication.

Body

application/json
name
string
required
dataOwner
string
required
signer
object
required
keyId
string
required
publicKeyPem
string
required

The Ed25519 public key (PEM) the source signs its answers with.

claims
object
required

Claim name to the unit the source states for it.

canApprove
boolean
required

True if any policy uses this source to approve.

Response

The register record the change produced (for example a source, threshold, action, policy version, approver key or role grant). The shape depends on the change (EXPERIMENTAL Policy v2 route).

The response is of type object.