Routes are written as
/api/v1/.... Inside TRUSTIVAN they are served under /nhi and take your TRUSTIVAN session.
The Delegation and lineage screen
Agents → Delegation needsagent:read. It does not list authority delegations. It reports, for up to 100 agents, the “acts for” field on each agent profile: the principal whose reach the agent borrows when it runs, which is a different question from who owns it.
- Three tiles: agents Acting for a known principal, agents Naming somebody unresolved, and agents Saying nothing.
- Whose authority each agent exercises: one row per agent with who it acts for, on what basis, who owns it and its autonomy. A name the provider gave that matches nobody in your organization stays an unresolved hint. NHI Security never matches it to a person by name.
- Agents nothing has profiled (needs
identity:read): identities a provider typed as an agent that have no agent profile, so every agent policy passes them in silence. - What this platform cannot yet establish (needs
policy:read): the provenance policies, includingagent_lineage_unknownandagent_delegates_to_agent, each marked Can be evaluated or Cannot be evaluated here with the fact it is waiting on.
Permissions
Inside TRUSTIVAN only Organization Admin (Owner, Admin), Security Analyst (Member) and Viewer are reachable. A Member can request a delegation and answer a campaign; an Owner or Admin approves and organizes. An Owner’s or Admin’s own delegation needs a second Owner or Admin to approve it.
Authority delegations
A delegation is a record that one person handed a named, narrow piece of authority to someone else for a period, and that a second person approved it.
You are always the delegator: there is no field for naming anyone else. The answer is
201 with the new id, in state requested.
- The window starts at the request.
startsAtis when you asked andexpiresAtis that moment plusdurationDays. Time spent waiting for approval is not added back. - Approval is someone else’s.
POST /api/v1/delegations/{id}/decisionwith{"approve": true}or{"approve": false}moves it toactiveorrefused. Deciding your own is403and written to the audit trail as a failure. - Revoke with a reason.
POST /api/v1/delegations/{id}/revocationwith{"reason": "..."}ends anactivedelegation. Anything else is409. - There is no edit. To change a scope or a window, revoke and request again.
- Passing it along is bounded. A delegation naming a
parentIdmust have the same scope as its parent, must end no later than its parent, and the parent must be in force. A chain holds at most three delegations, counting the first. Breaking any of these is422, or409for a parent that has ended. - Revoking does not cascade. Delegations derived from a revoked one keep their own state. Revoke each one you want ended.
- Other refusals. Delegating to yourself is
403. The same authority already delegated to the same principal is409. A delegate or scope that is not in your organization is404.
GET /api/v1/delegations (filter by state, awaitingDecisionOnly=true or delegatedBy), GET /api/v1/delegations/{id}, /chain (this delegation and its ancestors, child first) and /events (each state change, who made it and when).
Every delegation carries originatingDelegator, the person at the root of the chain, and isActive. isActive is true only while the state is active, the clock is inside the window, and the delegator’s own account is still active: authority from someone who has left is not in force whatever its end date says. Trust isActive, not state.
The states are requested, active, refused, revoked, withdrawn and expired. Nothing sets the last two today.
Access certification campaigns
A campaign puts one dated question about one kind of subject to a named reviewer, and records an answer with a reason for each subject.1
Create a draft
POST /api/v1/certification-campaigns with certification:manage:subjectKind is identity, credential, tool or team, one kind per campaign. reviewer.kind is user or team. durationDays is 1 to 180, and the due date is counted from this moment, not from when you open the campaign.2
Add what is being reviewed
POST /api/v1/certification-campaigns/{campaignId}/subjects once per subject, for example {"subject": {"kind": "identity", "identityId": "..."}}. A subject of another kind is 422, a duplicate is 409, and subjects can only be added while the campaign is a draft.3
Open it
POST /api/v1/certification-campaigns/{campaignId}/opening with no body. A campaign with no subjects is refused with 409.4
Answer each item
The reviewer calls
POST /api/v1/certification-campaigns/{campaignId}/items/{itemId}/decision with certification:review:decision is certified or revoked, and note is required for both. There is no bulk decision route and no way to change an answer. A campaign over identities can also be built in one call from a scope; see Access reviews.5
Close it
POST /api/v1/certification-campaigns/{campaignId}/closure with {} closes it. {"cancel": true} cancels one that should not have run. A draft can only be cancelled.certification:review is not enough. The item must be assigned to you or to a team you belong to, and you must not be the person who created the campaign. Either failure is 403, and an attempt on your own campaign is audited as a failure. Hand one item to someone else with POST .../items/{itemId}/assignment and {"assignTo": {"kind": "user", "userId": "..."}}. A campaign_review delegation does not change who may answer: reassign the item.
What a decision changes. Only the item. A revoked decision is an instruction that something should go. It does not quarantine an identity, revoke a credential, withdraw an entitlement or open a remediation. Act on it yourself, for example through Remediation.
Reading a campaign. GET /api/v1/certification-campaigns (filter by state, subjectKind or overdueOnly=true), /{campaignId}, /items and /events. A campaign carries progress (total, pending, certified, revoked, expired) and coverage, the share of items somebody answered, which is null for an empty campaign. Unanswered items never count as approvals.
Past the due date. isOverdue turns true on the due date, and answers are still accepted. When the in-process scheduler is on (DISCOVERY_SCHEDULER_ENABLED), an hourly sweep marks the campaign overdue and, seven days after the due date, closes it with every unanswered item expired, audited as the platform. A person closing a campaign leaves unanswered items pending. Either way an unanswered identity gets a finding; see When nobody answers.
Opening, each decision, each reassignment, closing and cancelling are written to the audit trail.
The drift report
Drift is the difference between the tool entitlements people declared for an agent and the tool use a connector observed. It is computed when you ask. There is no drift record, no id and nothing to dismiss: a difference goes away when one of the two facts changes.windowDays is 1 to 365 and defaults to 30. GET /api/v1/governance/drift/agents/{identityId} runs the same comparison for one agent. Both need drift:read.
“Nothing could be compared” is not a clean result. An agent lands in
notAssessable for one of two reasons:
estate_not_surveyed: no synchronization completed inside the window from connectors that between them collect tools and relationships. Nothing was looked at, so nothing can be said.agent_not_observed_in_window: the estate was surveyed, the agent has declared entitlements, and it was not seen using any tool. An idle agent and an over-entitled one look the same.
drift list beside a long notAssessable list as an unobserved estate.
Only observed agent-to-tool use counts, never an inferred edge. No shipped connector reports that: the MCP connector lists tools and does not know their callers, and no connector reports AI agents. On an estate filled by the shipped connectors and hand registration, the report can therefore return
notAssessable entries and no differences. It becomes useful when a connector you build reports which agent uses which tool.POST /api/v1/governance/drift/review records that someone looked. It needs only drift:read, writes one governance_drift.reviewed audit record with the window and the counts, returns the same report, and changes nothing. The report covers tool entitlements only: model version, prompt and behaviour are not compared, because nothing collects them.
The control mapping
GET /api/v1/governance/compliance (needs certification:read) returns a fixed catalogue that maps what NHI Security implements to controls in three frameworks. Pass ?framework=soc2, iso27001 or nist_ai_rmf to narrow it.
Each claim carries the framework, a controlId and controlName, a support level of supported or partial, a statement of what the product does, the source files that implement it, the tests that verify it, and for every partial claim a limitation saying what it does not cover. coverage counts supported and partial claims per framework. Controls the product does not address are absent rather than listed as gaps.
The response describes the product, not your organization: it contains no data about your estate, is the same in every deployment and cannot be edited. Its own disclaimer says it is not an audit result or an assurance about any deployment. TRUSTIVAN holds no SOC 2 or ISO 27001 certification, and this mapping is not one.
What expires in the background
Campaigns: the escalation sweep above, when the scheduler is on. Delegations: no job closes one when its date passes. Enforcement of the dates is correct on every read (isActive), but the stored state stays as it was, and no expired audit record appears. See Limitations.
Next steps
- Governance and audit: separation of duties and the audit trail these actions are written to.
- Agent registry: registering the agents these records are about.
- Agent autonomy: declaring the tool entitlements the drift report compares.
- Administration: users, teams and roles.