> ## Documentation Index
> Fetch the complete documentation index at: https://docs.truu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get structured NHI persona detail

> Full NHI persona-page payload: story, role, reconstructed purpose,
entitlements, IAM, interactions, data movement, risk, coverage,
stewards, custody, resource/actor edges, call samples, call rhythm,
cluster rank, asset tier, and drift. `delta` and unpublished pending
Persona L fields are omitted.




## OpenAPI

````yaml https://eris.platform.total.truu.ai/api/v1/external/docs get /nhi/personas/{nuid}/detail
openapi: 3.0.3
info:
  title: TOTAL Public API
  version: 2.5.0
  description: >
    The TOTAL API gives you programmatic access to your organization's

    security data. Use it to query cases, threat events, personas, and

    non-human identities, and to feed verdicts back into the platform.


    ## Authentication


    All routes in this specification are served under `/api/v1/external` and

    require a domain-scoped API key via the `X-API-Key` header. Generate and

    manage keys from the API Keys page in Settings.


    The admin console (Atlas) uses separate JWT-authenticated routes under

    `/api/v1/eris/...` (for example `GET /api/v1/eris/integrations`); those are

    not part of this public API surface.


    ## Pagination

    List routes use cursor pagination: `page_size` (default 50, max 200) and

    optional `next_cursor` (pass the `case_id` or `event_id` UUID from the last

    item of the previous page). Responses include `next_cursor` when more

    results are available.


    ## Rate Limits

    Read endpoints in this API are limited to 1,000 requests/minute.

    Write endpoints in this API are limited to 200 requests/minute.


    ## Availability

    Some routes may return `423 Locked` when the requested data is not yet

    available for your domain.


    ---


    ## Appendix A — Azure Log Analytics: source_event_ids → KQL lookup


    Threat events include a `source_event_ids` array. Each value is the

    `_ItemId` of the originating row in your Azure Log Analytics workspace

    — the per-row GUID stamped by Log Analytics at ingest. It is row-unique

    on every supported table, so the same lookup pattern works regardless

    of source:

        <SourceTable> | where _ItemId == "<id>"

    Run the lookup against your Log Analytics workspace (the same workspace

    that backs Azure Log Analytics / Defender XDR Advanced Hunting). Use the

    `source` field on the event to pick the table.


    | Source table | KQL field | Example KQL |

    |---|---|---|

    | SigninLogs | _ItemId | `SigninLogs | where _ItemId == "<id>"` |

    | AuditLogs | _ItemId | `AuditLogs | where _ItemId == "<id>"` |

    | AADUserRiskEvents | _ItemId | `AADUserRiskEvents | where _ItemId ==
    "<id>"` |

    | CloudAppEvents | _ItemId | `CloudAppEvents | where _ItemId == "<id>"` |

    | OfficeActivity | _ItemId | `OfficeActivity | where _ItemId == "<id>"` |

    | EmailEvents | _ItemId | `EmailEvents | where _ItemId == "<id>"` |

    | EmailPostDeliveryEvents | _ItemId | `EmailPostDeliveryEvents | where
    _ItemId == "<id>"` |

    | EmailUrlInfo | _ItemId | `EmailUrlInfo | where _ItemId == "<id>"` |

    | EmailAttachmentInfo | _ItemId | `EmailAttachmentInfo | where _ItemId ==
    "<id>"` |

    | UrlClickEvents | _ItemId | `UrlClickEvents | where _ItemId == "<id>"` |

    | SecurityEvent | _ItemId | `SecurityEvent | where _ItemId == "<id>"` |

    | IdentityLogonEvents | _ItemId | `IdentityLogonEvents | where _ItemId ==
    "<id>"` |

    | IdentityQueryEvents | _ItemId | `IdentityQueryEvents | where _ItemId ==
    "<id>"` |

    | IdentityDirectoryEvents | _ItemId | `IdentityDirectoryEvents | where
    _ItemId == "<id>"` |

    | BehaviorAnalytics | _ItemId | `BehaviorAnalytics | where _ItemId ==
    "<id>"` |

    | Anomalies | _ItemId | `Anomalies | where _ItemId == "<id>"` |

    | AzureActivity | _ItemId | `AzureActivity | where _ItemId == "<id>"` |

    | MicrosoftPurviewInformationProtection | _ItemId |
    `MicrosoftPurviewInformationProtection | where _ItemId == "<id>"` |

    | CommonSecurityLog | _ItemId | `CommonSecurityLog | where _ItemId ==
    "<id>"` |

    | Syslog | _ItemId | `Syslog | where _ItemId == "<id>"` |

    | AADProvisioningLogs | _ItemId | `AADProvisioningLogs | where _ItemId ==
    "<id>"` |
servers:
  - url: https://eris.platform.total.truu.ai/api/v1/external
    description: TOTAL Public API
security:
  - ApiKeyAuth: []
tags:
  - name: Cases
    description: Threat investigation cases and verdicts
  - name: Users
    description: Provisioned users and monitoring
  - name: Personas
    description: Persona overviews
  - name: Threats
    description: Raw threat events
  - name: NHI
    description: Non-human identity personas and cluster catalogue
paths:
  /nhi/personas/{nuid}/detail:
    get:
      tags:
        - NHI
      summary: Get structured NHI persona detail
      description: |
        Full NHI persona-page payload: story, role, reconstructed purpose,
        entitlements, IAM, interactions, data movement, risk, coverage,
        stewards, custody, resource/actor edges, call samples, call rhythm,
        cluster rank, asset tier, and drift. `delta` and unpublished pending
        Persona L fields are omitted.
      operationId: getNhiPersonaDetail
      parameters:
        - name: nuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Projected NHI detail
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NhiPersonaDetail'
        '401':
          description: Invalid or inactive API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Unknown nuid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '423':
          description: Resource not ready yet for this domain
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotReady'
components:
  schemas:
    NhiPersonaDetail:
      type: object
      properties:
        nuid:
          type: string
          format: uuid
        generated_at:
          type: string
          format: date-time
          nullable: true
        contract_version:
          type: integer
        overview:
          type: object
          nullable: true
          properties:
            summary:
              type: string
              nullable: true
            narrative:
              type: string
              nullable: true
            key_points:
              type: array
              items:
                type: string
              nullable: true
        identity:
          $ref: '#/components/schemas/NhiIdentity'
        role:
          type: object
          nullable: true
          properties:
            observed_role:
              type: string
              nullable: true
            summary:
              type: string
              nullable: true
            purpose:
              type: string
              nullable: true
            match:
              type: string
              enum:
                - typical
                - atypical
              nullable: true
            evidence:
              type: string
              enum:
                - observed
                - inferred
              nullable: true
            confidence:
              type: number
              nullable: true
        purpose:
          type: object
          nullable: true
          additionalProperties: true
          description: Reconstructed mandate and functions from Persona L.
        stewardship:
          type: object
          nullable: true
          properties:
            steward_upn:
              type: string
              nullable: true
            creator_upn:
              type: string
              nullable: true
            custody_kind:
              type: string
              enum:
                - human
                - system
                - ungoverned
        stewards:
          type: array
          nullable: true
          items:
            type: object
            additionalProperties: true
        custody:
          type: object
          nullable: true
          additionalProperties: true
        access:
          type: object
          nullable: true
          properties:
            summary:
              type: string
              nullable: true
            permission_count:
              type: integer
            privileged_count:
              type: integer
            systems:
              type: array
              items:
                type: string
              nullable: true
            over_permission:
              type: boolean
              nullable: true
            applications:
              type: array
              items:
                type: string
              nullable: true
            data_stores:
              type: array
              items:
                type: string
              nullable: true
            directory_roles: {}
            legitimacy:
              type: object
              nullable: true
              additionalProperties: true
            entitlements:
              type: array
              nullable: true
              items:
                type: object
                additionalProperties: true
            reactivated_scopes:
              type: array
              nullable: true
              items: {}
            permissions:
              type: array
              nullable: true
              items:
                type: object
                additionalProperties: true
        iam:
          type: object
          nullable: true
          additionalProperties: true
          description: core_iam — authentication, credential, operation pattern, devices.
        interactions:
          type: object
          nullable: true
          additionalProperties: true
        data_movement:
          type: object
          nullable: true
          additionalProperties: true
        identity_metadata:
          type: object
          nullable: true
          additionalProperties: true
        cluster:
          type: object
          nullable: true
          properties:
            cluster_id:
              type: string
            name:
              type: string
            tier:
              type: string
            archetype:
              type: string
              nullable: true
            rank:
              type: object
              nullable: true
              additionalProperties: true
        risk:
          type: object
          nullable: true
          additionalProperties: true
        risk_lens:
          type: object
          nullable: true
          properties:
            blast_radius:
              type: string
              nullable: true
            reaches_control_plane:
              type: boolean
              nullable: true
        coverage:
          type: object
          nullable: true
          additionalProperties: true
        asset_tier:
          type: object
          nullable: true
          additionalProperties: true
        resource_edges:
          type: array
          nullable: true
          items:
            type: object
            additionalProperties: true
        actor_edges:
          type: array
          nullable: true
          items:
            type: object
            additionalProperties: true
        operations:
          type: object
          nullable: true
          additionalProperties: true
        call_samples:
          type: array
          nullable: true
          items:
            type: object
            additionalProperties: true
        call_rhythm:
          type: object
          nullable: true
          additionalProperties: true
        credential_posture:
          type: object
          nullable: true
          additionalProperties: true
        drift:
          type: object
          nullable: true
          additionalProperties: true
    Error:
      type: object
      properties:
        error:
          type: string
    ResourceNotReady:
      type: object
      properties:
        error:
          type: string
          description: Always `resource_not_ready`
        resource:
          type: string
          description: One of `cases`, `threats`, `personas`, `nhi`, `nhi-clusters`
        message:
          type: string
          description: Human-readable readiness status message
        details:
          type: string
          description: Resource-specific not-ready detail
        days_until_ready:
          type: number
          format: float
          description: Days remaining until the resource is available
        external_api_enabled_at_utc:
          type: string
          format: date-time
        now_utc:
          type: string
          format: date-time
    NhiIdentity:
      type: object
      properties:
        display_name:
          type: string
          nullable: true
        nhi_class:
          type: string
        nhi_class_label:
          type: string
          nullable: true
        archetype:
          type: string
          nullable: true
        archetype_label:
          type: string
          nullable: true
        provider:
          type: object
          properties:
            key:
              type: string
            label:
              type: string
        principal_id:
          type: string
          nullable: true
        app_id:
          type: string
          nullable: true
        owning_tenant_id:
          type: string
          nullable: true
        ms_first_party:
          type: boolean
          nullable: true
        first_seen:
          type: string
          format: date-time
          nullable: true
        last_seen:
          type: string
          format: date-time
          nullable: true
        archetype_explanation:
          type: string
          nullable: true
        creator_upn:
          type: string
          nullable: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: |
        Domain-scoped API key. Generate and manage keys from the API Keys
        page in Settings.

        Accepted in two forms:
        - `X-API-Key: <key>` header (preferred)
        - `Authorization: Bearer <key>` header (also accepted)

````