Cortex · Configuration & integration
Manage identity pairing and revocation
Inspect GET /api/v1/identity/state or System → Identity & Access before admitting a sender or pairing a device. Canonical principals can bind multiple channel/device surfaces. Unknown external senders enter a perimeter hold. An owner can admit a collaborator or link the surface to an existing person; approval can route the held message immediately. Read its content and target, not only a display name.
| Role | Boundary |
|---|---|
owner |
Full system/identity administration, pairing and terminal access. |
collaborator |
Shared durable conversation mutation/steering with attribution; not owner administration. Identity-aware supervisory terminal controls are restricted. |
viewer |
Durable conversation reads/subscriptions; conversation mutation and escalation/pairing initiation are forbidden (403). This is not a blanket deny rule on all management routes. |
Use dedicated surface tokens for revocable device enrollment rather than distributing an owner/bootstrap API token. Consider HTTP and WebSocket authorization together. Keep unauthenticated listeners confined to a trusted environment; channel signatures do not secure every HTTP route.
- As an authenticated owner, POST
/api/v1/identity/pair/initiate, or select System → Identity & Access → Pair device. Choose principal/surface and a reachable host URL. The response includes aCX-XXXXXXchallenge andcortex://pair?...URI. Default lifetime is 60 seconds; optionalttlMsis clamped to 5–600 seconds. - From the unpaired client, POST
/api/v1/identity/pair/exchangewithcode, optionaldeviceName, and surface (ios,macos,web). Successful exchange returns protocol/daemon information and a dedicated surface token. Codes are one-time; invalid, expired or reused codes return 400. Protect both code and token and use an appropriately protected connection. Protocol surface names do not mean native clients are shipped. - To revoke access, DELETE
/api/v1/identity/surfaces/{id}. Active/wsand/ws/voiceconnections for that surface close with 4001; subsequent authenticated requests fail with 401. Re-pair with owner authorization rather than retrying the old token.