Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Advisor agent ID.

Body

application/json
payload_public_key_jwk
string
required

Serialized EC P-256 public JWK (≤4 KiB). The kid must form a valid did#kid distinct from the advisor's signing key_id.

sig
string
required

Detached Ed25519 signature over the v2 preimage — NOT the bare JWK bytes. Build it as five newline-joined fields: the scheme string ocss-payload-key-declaration-v2, the advisor UUID, the advisor's registered signing key_id, issued_at (RFC3339 UTC, truncated to the second), and the raw payload_public_key_jwk bytes — then sign with the advisor's registered private key.

issued_at
string<date-time>
required

RFC3339 timestamp of this declaration — also one of the signed preimage fields (freshness-bound to ±5 minutes of the server clock; stale or future-dated declarations are rejected).

Response

Payload key declared and stored in the registry.

advisor_id
string
payload_key_kid
string
status
enum<string>
Available options:
declared