---
title: "Activity, synchronizations and exposures"
description: "Read the Activity, Synchronizations and Exposures screens, and send activity records and credential exposure reports through the ingestion routes."
keywords: ["NHI activity", "activity ingestion", "credential exposure", "exposure ingestion", "synchronization history", "unattributed activity", "ingestion run"]
---

Three screens answer three different questions. **Activity** shows what identities were observed doing. **Exposures** shows where credential material turned up outside its store. **Synchronizations** shows what NHI Security's own connectors collected, run by run.

Only the third is filled by connectors. No connector collects activity or exposures, and NHI Security ships no scanner. Both arrive only when a pipeline you run sends them to an ingestion route. Until then the two screens say that nothing is being collected, and the policies that depend on them report as unavailable. Why those policies are unavailable is covered in [Findings and risk](/nhi-security/findings-and-risk#activity-and-exposure-policies); this page covers the screens and the routes.

Routes on this page are written as the API declares them. The console reaches the same routes under its own base path, so inside TRUSTIVAN the address begins `/nhi/api/v1/`.

## Permissions

| Permission | Allows | Roles that hold it |
|---|---|---|
| `activity:read` | The Activity screen, an event's detail, the list of ingestion runs | Every role except Developer |
| `activity:ingest` | Sending activity records | Organization Admin, Security Admin |
| `exposure:read` | The Exposures screen and an exposure's detail | Every role |
| `exposure:ingest` | Sending exposure reports | Organization Admin, Security Admin |
| `connector:read` | The Synchronizations screen | Every role |

Inside TRUSTIVAN, the Owner, Admin, Member and Viewer roles can all read the three screens, and only Owners and Admins can ingest. See [Limitations](/nhi-security/limitations#people-roles-and-offboarding).

## Authentication for ingestion

NHI Security has no API keys. The ingestion routes are authenticated the same way the console is: by a signed-in session. Like every request that changes something, an ingestion request must carry three things:

- the session cookie of a signed-in user who holds the ingest permission
- an `Origin` (or `Referer`) header naming an origin your deployment allows
- the session's anti-forgery token in the `x-csrf-token` header

A request missing the second or third is refused with `403`. The runtime bearer credential described in [Runtime gate](/nhi-security/runtime-gate) does not reach these routes. In practice this makes ingestion an integration to design around a person's session, not a header to set in a scheduler. See [Limitations](/nhi-security/limitations#authentication-and-integration).

## Activity

### The Activity screen

**Activity** lists observed actions, newest first, from `GET /api/v1/activity`. Three tiles sit above the list: **Events collected**, **Unattributed** and **Failed actions**.

Read the state of the screen before you read a count:

| The screen says | Meaning |
|---|---|
| **No activity has been collected yet** | No ingestion has ever completed for your organization. This is not the same as nothing having happened |
| **Nothing has been observed yet** | An ingestion completed and stored no records |
| **Whether any activity has been collected is unknown** | The summary could not be read. Reload before drawing a conclusion |

The distinction comes from `GET /api/v1/activity/summary`, whose `hasCollected` field is `true` once any ingestion run has finished `succeeded` or `partial`. It is taken from the ingestion runs, never from the number of events.

| Column | Shows |
|---|---|
| When | When the provider says the action happened |
| Action | The normalised action, with the provider's own action and its kind beneath |
| Actor | The matched identity, or the principal the provider named when nothing matched |
| Resource | The matched resource, or the provider's own reference |
| Outcome | **Succeeded**, **Failed** or **Not reported** |
| Attribution | **Attributed**, **Ambiguous** or **Unattributed** |
| Source | The provider |

You can filter by an action prefix or an exact actor identifier, attribution, outcome, kind and provider. The API also accepts `identityId`, `credentialId`, `resourceId`, `from` and `until`, and sorts by `occurredAt` or `recordedAt`.

Choosing a row opens the event (`GET /api/v1/activity/{eventId}`): who NHI Security believes acted and how that was matched, what was done, the provenance and the record's own identifier, when it happened and when it was stored, the source address, region and user agent, and the stored payload. Activity is never edited or deleted. Only the attribution of an existing record can improve, when the same record is sent again after discovery has caught up.

### How an event is attributed

A record names its actor the way the provider did, in `actorHint`. NHI Security looks for that exact string among the provider identifiers of the identities it has discovered. There is no fuzzy matching and no matching by name.

| `resolution` | When |
|---|---|
| `resolved` | Exactly one identity matched. `resolutionBasis` says what matched |
| `ambiguous` | More than one matched. NHI Security does not choose, and the event keeps no identity |
| `unresolved` | Nothing matched. The actor may be a person, an identity in an environment you have not connected, or one discovery has not reached yet |

`credentialHint`, `resourceHint` and `toolHint` are matched the same way against credentials, resources and tools, and are attached when exactly one matches, even if the actor did not resolve. Every hint is kept as sent, whether or not it matched.

### Send activity

```http
POST /api/v1/activity/ingest
Content-Type: application/json
Origin: <your console origin>
x-csrf-token: <anti-forgery token>

{
  "events": [
    {
      "provider": "aws",
      "scopeKind": "account",
      "scopeId": "123456789012",
      "sourceEventId": "3f1c9a52-8d7e-4b6a-9c11-5e2f7a0b4d68",
      "occurredAt": "2026-10-12T09:14:03Z",
      "actorHint": "arn:aws:iam::123456789012:role/acme-deploy",
      "resourceHint": "arn:aws:s3:::acme-artifacts",
      "action": "s3:PutObject",
      "rawAction": "PutObject",
      "actionClass": "write",
      "outcome": "success",
      "sourceIp": "203.0.113.10",
      "sourceRegion": "eu-west-1",
      "userAgent": "aws-sdk-go-v2/1.30.0",
      "provenance": "provider_reported"
    }
  ]
}
```

| Field | Required | Values |
|---|---|---|
| `provider` | Yes | `aws`, `github`, `kubernetes`, `vault`, `mcp`, `registry`, `azure`, `gcp`, `gitlab`, `okta`, `slack`, `snowflake` |
| `scopeKind`, `scopeId` | Yes | `account`, `organization`, `project`, `cluster`, `namespace` or `instance`, and the provider's identifier for it |
| `occurredAt` | Yes | ISO 8601 |
| `action`, `rawAction` | Yes | The normalised action, and the provider's own action verbatim |
| `actionClass` | Yes | `read`, `write`, `administrative`, `authenticate`, `unknown`. Send `unknown` when the provider does not classify the action; do not guess `read` |
| `outcome` | Yes | `success`, `failure`, `unknown` |
| `provenance` | Yes | `provider_reported` or `provider_inferred` |
| `sourceEventId` | No | The provider's identifier for this record. Send it whenever the provider has one |
| `actorHint`, `credentialHint`, `resourceHint`, `toolHint` | No | Published identifiers, never secret values |
| `sourceIp`, `sourceRegion`, `userAgent`, `description` | No | Free text |

There is no field for an identity, credential, resource or organization ID. A caller cannot attach a record to something by naming it.

**Limits.** At most 200 records per request; a larger batch is refused whole with `422`. Each string is at most 2,048 characters (`sourceIp` 64). A body that fails validation, including one with a field the route does not define, is refused whole with `400`.

**Rejections are per record.** A record that passes validation can still be refused, and the rest of the batch is stored:

| Reason | Cause |
|---|---|
| `timestamp_not_a_time` | `occurredAt` is not a readable time |
| `timestamp_in_the_future` | More than 5 minutes ahead of NHI Security's clock |
| `timestamp_implausibly_old` | More than 10 years in the past |
| `action_missing` | `action` or `rawAction` is blank |
| `secret_shaped_field` | A field contains something shaped like credential material |

Nothing is repaired. A bad time is dropped, never moved to now.

**Deduplication.** A record's identity is its provider, scope and `sourceEventId`. Without a `sourceEventId`, it is the provider, scope, `occurredAt`, `actorHint`, `rawAction`, `resourceHint` and `outcome` together, so two distinct actions that agree on all of those collapse into one. Sending a record again does not create a second event; it is counted in `duplicatesIgnored`.

**What a submission records.** The response carries `run`, the ingestion run this request created, and `rejections`, a list of reason, explanation and count. The run has `source` (`ingestion_api`), `status` (`succeeded`, or `partial` when any record was rejected), `eventsRead`, `eventsStored`, `duplicatesIgnored`, `eventsRejected`, `eventsResolved` and `eventsUnresolved`. The audit trail records one `activity.ingested` entry per request with those counts, and one `activity.rejected` entry when anything was refused.

`GET /api/v1/activity/ingestions` lists every ingestion run, newest first, with `activity:read`. The console has no screen for it.

<Note>
Ingesting does not run an evaluation. Findings from the activity policies appear after the next evaluation: **Policies → Run evaluation**, or the evaluation that follows a synchronization.
</Note>

## Exposures

An **exposure** is a report that credential material was found where it should not be: a repository, a build log, a container image. It is not a property of a credential, because most reports cannot be matched to one.

### What an exposure contains

| Field | Meaning |
|---|---|
| `location` | `source_repository`, `ci_log`, `container_image`, `ticket`, `chat` or `other` |
| `locator` | Where it was found, in the source's own reference, such as a repository path or a build URL |
| `detail` | What the source says it found, in one line |
| `secretTypeHint` | The kind of secret, as a type name |
| `status` | What the source last reported: `active` (**Still there**), `remediated` (**Removed**) or `unknown` (**No longer reported**) |
| `confidence` | `confirmed`, `probable` or `possible`, as the source states it |
| `resolution` | Whether it was matched to a credential: `resolved` (**Matched**), `ambiguous` or `unresolved` (**Unidentified**) |
| `firstSeenAt`, `lastSeenAt`, `detectedAt` | When the source first and last saw it, and when NHI Security first learned of it |
| `remediation` | What to do about it, derived from the location, status and match |

An exposure never contains the material: not the value and not a prefix of it. No field exists that could hold one. A report whose fields carry something shaped like a secret is rejected at ingestion. That check recognises common published formats (a PEM header, GitHub, GitLab, Slack and Vault token prefixes, `sk-` keys, JSON Web Tokens); it is not a general secret detector, so keep values out of what you send.

`status` is an observation from the source, not a triage decision. `unknown` is not `remediated`: a scanner that lost access to a repository has not removed a secret. An exposure counts as live until its status is `remediated`. Triage, acceptance and history belong to the `credential_exposed` finding an evaluation raises for each live exposure, described in [Findings and risk](/nhi-security/findings-and-risk).

### How an exposure is matched to a credential

A report may carry a `credentialHint`: the identifier the source published, such as an access key ID. NHI Security looks for a credential in your inventory with exactly that provider identifier. One match gives `resolved`, with the credential and its identity attached. More than one gives `ambiguous`, and none, or no hint, gives `unresolved`. An unmatched exposure is kept and shown, never attached on a guess. When the same report is sent again after discovery has found the credential, the existing exposure becomes matched.

### The Exposures screen

**Secrets → Exposures** lists exposures by when the source last confirmed them, from `GET /api/v1/exposures`. It opens filtered to live exposures, shown as the **Still live** filter; remove that filter, or choose a status, to see the ones a source reported removed. Three tiles count **Still live**, **Unidentified** (live and not matched to a credential) and **In a repository**.

| The screen says | Meaning |
|---|---|
| **No source has reported an exposure** | No exposure record exists for your organization. Nothing is scanning on your behalf, which is not the same as nothing being exposed |
| **No exposure matches this filter** | Exposures exist, and none fits the filters applied. On the default view this means every reported exposure has been reported removed |
| **Whether any source has reported is unknown** | The summary could not be read |

`GET /api/v1/exposures/summary` returns `live`, `byLocation`, `byStatus`, `unattributed`, `hasCollected` and `lastCollectedAt`. Here `hasCollected` is `true` as soon as one exposure record exists.

The columns are **Status**, **What was found**, **Where**, **Credential**, **Confidence**, **Source** and **Last confirmed**. You can filter by a path prefix or secret type, location, status and whether a credential was matched. The API also accepts `credentialId`, `provider` and `liveOnly=true`.

An exposure's page (`GET /api/v1/exposures/{exposureId}`) shows what to do, where the material was found, which credential it was matched to and how, what the source says, and the open findings against it. An exposure in a source repository carries a standing instruction: treat the credential as compromised and revoke it at the provider before you remove the file, because history keeps the value. A matched credential's own page lists its exposures too; see [Credentials and rotation](/nhi-security/credentials-and-rotation).

### Send exposure reports

```http
POST /api/v1/exposures/ingest
Content-Type: application/json
Origin: <your console origin>
x-csrf-token: <anti-forgery token>

{
  "exposures": [
    {
      "provider": "github",
      "sourceRef": "acme/payments-api/secret-scanning/alerts/42",
      "location": "source_repository",
      "locator": "acme/payments-api:config/deploy.env#L14",
      "detail": "AWS access key ID found in config/deploy.env",
      "secretTypeHint": "aws_access_key_id",
      "status": "active",
      "confidence": "confirmed",
      "firstSeenAt": "2026-10-10T08:02:11Z",
      "lastSeenAt": "2026-10-12T08:00:00Z",
      "credentialHint": "<the access key ID the source published>"
    }
  ]
}
```

`secretTypeHint` and `credentialHint` are optional; every other field is required. `provider`, `location`, `status` and `confidence` take the values listed above. `sourceRef` is the source's own identifier for the alert.

- **Limits.** At most 200 reports per request, refused whole with `422` beyond that.
- **Rejections.** A report is dropped when a time is unreadable, more than 5 minutes in the future or more than 10 years old, when `lastSeenAt` is before `firstSeenAt`, or when a field is shaped like credential material. The response gives only a `rejected` count, with no reason per report.
- **Deduplication.** An exposure's identity is its `provider`, `location` and `sourceRef`. Sending the same alert again updates what the source currently reports (detail, status, confidence, last seen) and the match. `firstSeenAt` and `detectedAt` do not move.
- **Removal time.** You cannot send one. When a report's status is `remediated`, NHI Security records the time the report arrived.
- **Response.** `stored`, `updated`, `resolved`, `unresolved` and `rejected`.

Exposure ingestion creates no ingestion run. Each request writes one `exposure.observed` entry to the audit trail with its counts. As with activity, the `credential_exposed` finding appears after the next evaluation, not at ingestion.

## Synchronizations

**Integrations → Synchronizations** lists every connector synchronization in your organization, newest first, from `GET /api/v1/sync-runs`. It is NHI Security's record of its own collection. Activity ingestion runs are not shown here.

| Column | Shows |
|---|---|
| Started | When the run began |
| Connector | The connector, linked |
| Outcome | **Queued**, **Running**, **Succeeded**, **Partially failed** or **Failed** |
| Trigger | `manual` or `scheduled` |
| Duration | In milliseconds |
| Discovered, New, Changed, Unchanged | What the run saw, and how it compared with what was already recorded |
| Gone | Objects the run concluded no longer exist. Nothing is deleted |
| Scope | **complete** when the whole scope was read, **partial** otherwise |
| Errors | The first two errors, each with its category |

Filter by outcome on the screen; the API also accepts `connectorId`. **Scope** is the column to check before you trust **Gone**: only a succeeded run that read its whole scope may conclude that something has disappeared. What each outcome means, how retries work and how disappearance is decided are in [Discovery and synchronization](/nhi-security/discovery#synchronization-runs).

## What these screens do not do

- No connector fills Activity or Exposures. Without a pipeline of your own, both stay empty and say so.
- The console has no screen to send records and none to list ingestion runs.
- An exposure cannot be closed, dismissed or edited by hand. Its status changes only when the source reports again.
- Nothing here acts at a provider. An exposure tells you to revoke a credential; it does not revoke it.

## Next steps

<Columns cols={2}>
  <Card title="Findings and risk" icon="triangle-alert" href="/nhi-security/findings-and-risk">
    The activity and exposure policies, and how their findings are triaged.
  </Card>
  <Card title="Credentials and rotation" icon="key-round" href="/nhi-security/credentials-and-rotation">
    What to do with a credential an exposure names.
  </Card>
  <Card title="Discovery and synchronization" icon="plug" href="/nhi-security/discovery">
    Run outcomes, retries and how NHI Security decides something is gone.
  </Card>
  <Card title="Limitations" icon="shield-check" href="/nhi-security/limitations">
    What is not collected, and what session-only authentication means for a pipeline.
  </Card>
</Columns>
