API reference

KYE Protocol™ — Reality Coupling™ API

25 operations · reality-coupling.openapi.yaml

Servers
https://admin.kyeprotocol.com https://app.kyeprotocol.com
Version
1.0.0
Source
reality-coupling.openapi.yaml

Admin authoring (owner-gated) and tenant-scoped read endpoints for the KYE™ Reality Coupling™ surface — reality anchors, snapshots, runtime coupling checks, and stable-drift events.

All POST endpoints accept an Idempotency-Key header; if present, the response is cached per (tenant_id, scope, key) and returned verbatim on retry. Soft-delete only — deleted_at is set; the row is never physically removed.

V1.1 endpoints (assumptions, revalidation requests, coupling evidence packs, cross-system consistency checks) are intentionally deferred and NOT documented here.

Base path: /api/v1/

reality-coupling

GET/api/v1/reality-anchorsList reality anchors

Auth: bearerAuth

Parameters

nameintypedescription
tenant_idquerystring
anchor_typequerystring
statusquerystring
qquerystring

Responses

  • 200 OK
POST/api/v1/reality-anchorsCreate a reality anchor (admin)

Auth: bearerAuth

Parameters

nameintypedescription
Idempotency-Keyheaderstring

Request body (required)

fieldtypedescription
tenant_id requiredstring
anchor_type requiredstringOne of system_of_record, external_source_of_truth, policy_context, risk_context, market_context, environment_state, clinical_context, financial_context, infrastructure_context, vendor_context, identity_context
display_name requiredstring
descriptionstring
authority requiredobject
freshness_contractobject
grounds_actionsarray
grounds_profilesarray
sourceobject
tagsarray

Responses

  • 201 Created
  • 400 Validation error
GET/api/v1/reality-anchors/{id}Fetch a reality anchor

Auth: bearerAuth

Parameters

nameintypedescription
id requiredpathstring

Responses

  • 200 OK
  • 404 Not found
PATCH/api/v1/reality-anchors/{id}Update a reality anchor (admin)

Auth: bearerAuth

Parameters

nameintypedescription
id requiredpathstring

Request body (required)

fieldtypedescription
display_namestring
descriptionstring
statusstringOne of draft, active, deprecated
freshness_contractobject
grounds_actionsarray
grounds_profilesarray
sourceobject
tagsarray

Responses

  • 200 OK
DELETE/api/v1/reality-anchors/{id}Soft-delete a reality anchor (admin)

Auth: bearerAuth

Parameters

nameintypedescription
id requiredpathstring

Responses

  • 200 OK
POST/api/v1/reality-anchors/{id}/verifyMark an anchor as verified (admin)

Auth: bearerAuth

Parameters

nameintypedescription
id requiredpathstring
Idempotency-Keyheaderstring

Responses

  • 200 OK
POST/api/v1/reality-anchors/{id}/deprecateMark an anchor as deprecated (admin)

Auth: bearerAuth

Parameters

nameintypedescription
id requiredpathstring
Idempotency-Keyheaderstring

Request body

fieldtypedescription
reasonstring

Responses

  • 200 OK
GET/api/v1/reality-snapshotsList reality snapshots

Auth: bearerAuth

Parameters

nameintypedescription
tenant_idquerystring
anchor_idquerystring
is_stalequerystring
sincequerystring

Responses

  • 200 OK
POST/api/v1/reality-snapshotsRecord a reality snapshot (admin)

Auth: bearerAuth

Parameters

nameintypedescription
Idempotency-Keyheaderstring

Request body (required)

fieldtypedescription
tenant_id requiredstring
anchor_id requiredstring
anchor_typestringOne of system_of_record, external_source_of_truth, policy_context, risk_context, market_context, environment_state, clinical_context, financial_context, infrastructure_context, vendor_context, identity_context
sampled_at requiredstring
valid_untilstring
source_versionstring
content_hash requiredstring
content_summaryobject
content_refstring
freshnessobject
observationsarray
tagsarray
signatureobject

Responses

  • 201 Created
GET/api/v1/reality-snapshots/{id}

Auth: bearerAuth

Parameters

nameintypedescription
id requiredpathstring

Responses

  • 200 OK
  • 404 Not found
DELETE/api/v1/reality-snapshots/{id}

Auth: bearerAuth

Parameters

nameintypedescription
id requiredpathstring

Responses

  • 200 OK
POST/api/v1/reality-snapshots/{id}/verifyMark a snapshot as verified (admin)

Auth: bearerAuth

Parameters

nameintypedescription
id requiredpathstring
Idempotency-Keyheaderstring

Responses

  • 200 OK
GET/api/v1/reality-coupling-checksList coupling checks

Auth: bearerAuth

Parameters

nameintypedescription
tenant_idquerystring
action_idquerystring
coupling_resultquerystring
sincequerystring

Responses

  • 200 OK
POST/api/v1/reality-coupling-checksRecord a coupling check (admin)

Auth: bearerAuth

Parameters

nameintypedescription
Idempotency-Keyheaderstring

Request body (required)

fieldtypedescription
tenant_id requiredstring
action_id requiredstring
actor_entity_idstring
principal_entity_idstring
purpose_grant_idstring
evaluated_atstring
pipeline_nodestring
anchors_consultedarray
assumptionsarray
coupling_result requiredstringOne of coupled, coupled_with_warnings, decoupling_detected, revalidation_required, quarantine_required, deny_required, unknown
runtime_effect requiredstringOne of continue, continue_with_warning, require_revalidation, require_human_review, quarantine, deny
severitystringOne of low, medium, high, critical
reason_codesarray
drift_event_idstring
snapshot_refsarray
evidence_refsarray
notesstring

Responses

  • 201 Created
GET/api/v1/reality-coupling-checks/{id}

Auth: bearerAuth

Parameters

nameintypedescription
id requiredpathstring

Responses

  • 200 OK
  • 404 Not found
DELETE/api/v1/reality-coupling-checks/{id}

Auth: bearerAuth

Parameters

nameintypedescription
id requiredpathstring

Responses

  • 200 OK
POST/api/v1/reality-coupling-checks/{id}/checkRun/re-run a coupling check via the engine (admin)

Auth: bearerAuth

Parameters

nameintypedescription
id requiredpathstring
Idempotency-Keyheaderstring

Responses

  • 202 Accepted
POST/api/v1/reality-coupling-checks/{id}/decideRecord an owner decision on a coupling check (admin)

Auth: bearerAuth

Parameters

nameintypedescription
id requiredpathstring
Idempotency-Keyheaderstring

Request body (required)

fieldtypedescription
decision requiredstringOne of override, accept, escalate
rationalestring

Responses

  • 200 OK
GET/api/v1/stable-drift-eventsList stable-drift events

Auth: bearerAuth

Parameters

nameintypedescription
tenant_idquerystring
statusquerystring
severityquerystring
drift_typequerystring
sincequerystring

Responses

  • 200 OK
POST/api/v1/stable-drift-eventsOpen a stable-drift event (admin)

Auth: bearerAuth

Parameters

nameintypedescription
Idempotency-Keyheaderstring

Request body (required)

fieldtypedescription
tenant_id requiredstring
check_id requiredstring
action_id requiredstring
actor_entity_idstring
principal_entity_idstring
drift_type requiredstringOne of stable_drift, verified_but_stale, source_of_truth_stale, operational_context_stale, policy_context_shifted, environment_state_mismatch, system_of_record_conflict, assumption_expired, semantic_anchor_drift, cross_…
severity requiredstringOne of low, medium, high, critical
detected_atstring
anchors_implicatedarray
expected_stateobject
observed_stateobject
descriptionstring
reason_codesarray
recommended_runtime_effectstringOne of continue, continue_with_warning, require_revalidation, require_human_review, quarantine, deny
recommended_obligationsarray
evidence_refsarray

Responses

  • 201 Created
GET/api/v1/stable-drift-events/{id}

Auth: bearerAuth

Parameters

nameintypedescription
id requiredpathstring

Responses

  • 200 OK
  • 404 Not found
DELETE/api/v1/stable-drift-events/{id}

Auth: bearerAuth

Parameters

nameintypedescription
id requiredpathstring

Responses

  • 200 OK
POST/api/v1/stable-drift-events/{id}/acknowledgeAcknowledge a drift event (admin)

Auth: bearerAuth

Parameters

nameintypedescription
id requiredpathstring
Idempotency-Keyheaderstring

Request body

fieldtypedescription
notestring

Responses

  • 200 OK
POST/api/v1/stable-drift-events/{id}/resolveResolve a drift event (admin)

Auth: bearerAuth

Parameters

nameintypedescription
id requiredpathstring
Idempotency-Keyheaderstring

Request body (required)

fieldtypedescription
resolution requiredstringOne of recoupled, tolerated, escalated, revoked
rationalestring

Responses

  • 200 OK
POST/api/v1/stable-drift-events/{id}/quarantineQuarantine a drift event (admin)

Auth: bearerAuth

Parameters

nameintypedescription
id requiredpathstring
Idempotency-Keyheaderstring

Request body

fieldtypedescription
reasonstring

Responses

  • 200 OK