Skip to main content
This guide walks through the minimum path to write and read identity state. You’ll need a valid Bearer token — see Authentication first.
1

Create a tenant

A tenant is the accountable owner of subjects. Create one with an ID of your choice.
The calling principal is automatically added as account_admin (tenancy role) and tenant_admin (data-access role). See Principals & Roles for what each means.
2

Write initial identity state

Create the first snapshot for a subject. You must supply a complete entityStateEnvelopeV1 — the platform stores it verbatim.
The response returns snapshot_id, snapshot_version: 1, and the computed envelope_hash.
3

Read the latest snapshot

4

Propose and apply an update

Updates use RFC 6902 JSON Patch. First propose, then apply.
The apply creates snapshot_version: 2.
5

Verify snapshot integrity

Pass verify=hash on any snapshot read to check the RFC 8785 hash:
The response includes a verification block with valid: true when the stored hash matches the freshly computed one.

Next steps