lit posture (see Access plane).
Acting-principal headers
Every route refuses a request that sends the retired
X-Nexio-* spelling of an identity or consumer header with 400. Records routes (/records/..., /actions and /operations/{id}) answer INVALID_ARGUMENT, reason LEGACY_HEADER, and refuse any other X-Nexio-* header the same way; every other route answers legacy_header. Send the Nexio-* names. To read another person’s data, see Lens.
These headers are asserted by a server you trust, never by a browser. The API sends no CORS headers, so it can only be called server to server.
Authenticated identity
The org key authenticates the trusted server. The API resolves the acting person within that organization and applies their seat and record permissions. Identity headers need no separate secret, signature or timestamp. For a View-as request, sendNexio-Impersonator with the operator’s principal and Nexio-Impersonation-Kind: act_as beside the target identity. The API verifies that operator’s View-as authority in the authenticated organization. Nexio-Acted-By-Email provides audit attribution; it does not grant permission. A support session uses workos and retains its read-only restrictions.
data.scope block for this person reads:
Posture
Each organization has an access-plane posture. It decides where a person’s authority comes from, and it is not a setting: it follows from whether the access plane governs your organization.
Send the acting principal on every Records request. Under
lit, a request without it is refused with 403 CAPABILITY_DENIED, reason IDENTITY_UNMAPPED. How the entitlement is derived from your own systems is on Access plane.
Scope kinds
The resolved scope decides which rows exist for this person. It appears assource.subject.scope in the scope block, lowercase.
Selection
A selection narrows rows inside the scope. It never widens it. Nexio applies no default selection: a person-scoped caller that sends none is served everything they may open, and the response says so. A Records read that takes a selection takes it assubject tokens. Repeat the parameter for each token, for example ?subject=producer:me&subject=client_manager:me.
Repeated
producer tokens match any of their codes, and so do repeated client_manager tokens. When both kinds are sent, a row must match both. own and book cannot be combined.
me resolves to the person’s own verified codes. A person with none, asking for me, answers 403 CAPABILITY_DENIED, reason SCOPE_UNAVAILABLE, never an empty list. A well-formed producer or client_manager code that matches none of the person’s rows answers either 200 with no rows or 403 CAPABILITY_DENIED, reason SCOPE_UNAVAILABLE, depending on how the person’s access is bounded. A book code outside the person’s scope answers 403 CAPABILITY_DENIED, reason SCOPE_UNAVAILABLE.
A malformed selection answers 400 INVALID_ARGUMENT:
To read the records of one account, use the account’s own routes (
/records/accounts/{id}/...) or the account_id filter where a collection documents one.
Send the same subject tokens on every page, exactly as you resend the acting-principal headers. A cursor remembers the tokens it was issued for, in any order, and a page request with different tokens answers 400 INVALID_ARGUMENT, reason CURSOR_SUBJECT_MISMATCH (see What a cursor fixes).
GET /records/seats/current takes no subject. It previews a selection through its own mine, book, producer and client_manager query parameters.
The scope block
On every list and record read under/records, the scope and selection the rows were served at are in source.subject. GET /records/seats/current also carries its own, fuller scope block inside data (Preflight with the seat read). Graph reads carry neither. The block looks like this:
Use
selection_kind to label what you show. A boundary read is not “my accounts”; it is every account this person may open.
Field classes
Some fields belong to a field class, and a role policy can deny a class. On a Records read that returns the field among others, a denied field is blanked:null on a nullable field, and the type’s empty value (0, "" or false) on the few fields that are not nullable. It stays in the shape, so your parser does not change. A run read is different: with an acting principal, a denied compensation key is removed from the run’s output (see Runs). A route whose whole answer is one denied class refuses instead, with 403 CAPABILITY_DENIED, reason FIELD_DENIED, because an all-null answer would read as a real zero.
The field classes are fixed in code and are the same for every organization. Which classes a person may see follows from their security groups in your system of record.
Lens
A caller whose own scope isAll or Platform can read another person’s data, read-only, by sending the subject token member:principal:<id> (subject=member:principal:<id>, where <id> is that person’s identity provider user id) on a Records read that takes subject. The response names that person in source.subject.member. A write cannot be made as another member: writes take no subject.
Refusal codes
Every refusal is a problem whosecode says what to render and whose reason names the cause (see The problem body). Every refusal is distinct and none falls back to a wider scope.
When a qualifying connection exists,
GET /records/seats/current answers five of these refusals as data (200, with data.scope.refused set to the reason in lowercase) so an application can explain them before the first read: identity_unmapped, identity_needs_review, identity_suspended, identity_stale and scope_unavailable. With no qualifying connection, it admits the caller as other governed routes do, and an identity refusal answers as a problem with its HTTP status. The other refusals in this table, including lens refusals, answer as problems on /records/seats/current as on every other route.
Next
Registers and pagination
Page through a scoped list.
Access plane
How each person’s access comes from your own systems.