Admin
Audit Logs
Query the audit trail for security and compliance monitoring. Audit logs record actions such as user account changes, API key revocations, and other administrative events. These endpoints are designed for SIEM/SOAR integration.
List audit logs
GET /audit-logs
Returns a paginated, reverse-chronological list of audit log entries.
Scope: admin:audit:read · Rate limit: Standard (300 req / min)
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | string | No | Maximum results per page (default 100, max 1000). |
cursor | string | No | Pagination cursor from a previous response's nextCursor. |
action | string | No | Filter by action type (e.g. user.disabled, api-key.revoked). |
since | string (ISO 8601) | No | Only return events that occurred at or after this timestamp. A value that cannot be parsed is ignored, so the filter is not applied. |
Response
{
"data": [
{
"id": "019abc12-3456-7890-abcd-ef1234567890",
"action": "user.disabled",
"occurredAt": "2026-04-05T12:00:00.000Z",
"actor": {
"id": "019abc12-3456-7890-abcd-ef1234567891",
"type": "user",
"name": "Alice Johnson"
},
"targets": [
{
"id": "019abc12-3456-7890-abcd-ef1234567892",
"type": "user",
"name": "Bob Smith"
}
],
"context": {
"location": "api",
"userAgent": "curl/8.5.0"
},
"metadata": {
"reason": "Compromised credentials"
}
}
],
"nextCursor": "019abc12-3456-7890-abcd-ef1234567899",
"totalCount": 156
}
Entry fields
| Field | Type | Description |
|---|---|---|
id | string (uuid) | Audit log entry ID. |
action | string | Action type (e.g. user.disabled, user.enabled, api-key.revoked). |
occurredAt | string (ISO 8601) | When the event occurred. |
actor | object | Who performed the action — contains id, type, and optionally name and metadata. |
targets | array | Resources affected — each contains id, type, and optionally name and metadata. |
context | object | Request context — location (e.g. "api", "web") and optionally userAgent. |
metadata | object or absent | Additional event-specific data. |
Key and credential events
Nomic has no single "key rotation" action. Rotating a Nomic API key means creating a new key and revoking the old one, so filter on both actions below. Details are in the first target's metadata.
| Action | Target type | Target metadata |
|---|---|---|
api-key.created | api-key | keyPrefix, ownerUserId, scopes (comma-separated), and expiresAt when the key expires. |
api-key.revoked | api-key | keyPrefix, ownerUserId, ownerEmail. A revocation through the API also records the given reason in metadata. |
integration.ssa_key_rotated | integration | service, source (scheduled_rotation or dev_tool), newKeyId, previousKeyId, oldKeyDeleted, keyAgeDays. |
integration.ssa_key_rotation_failed | integration | service, source, error. The previous key stays active, because a key is only replaced after the new one is verified. |
integration.ssa_key_deleted | integration | service, source, deletedKeyId, clearedFromPending. |
integration.ssa_key_* events cover the Autodesk Construction Cloud service-account signing key, which Nomic rotates automatically every 30 days. Scheduled rotations have actor.type set to system.
Changes to the audit webhook itself are recorded as audit_webhook.updated and audit_webhook.cleared, with an organization target. Their metadata holds destinationHost, previousDestinationHost, urlChanged, secretChanged, and secretSet. The bearer token and the full URL are never recorded. These events are delivered to the previous destination as well as the new one, so a SIEM sees itself being disconnected or replaced.
Example
Fetch audit events from the last 24 hours, filtered to user-related actions:
curl "https://<your-domain>.nomic.ai/api/v0/audit-logs?since=2026-04-04T12:00:00Z&action=user.disabled&limit=50" \
-H "Authorization: Bearer $NOMIC_API_KEY"
SIEM integration
To continuously ingest audit logs into a SIEM, poll this endpoint on a schedule (e.g. every 60 seconds) using the since parameter set to the occurredAt value of the most recently ingested entry. Because since is inclusive, each poll returns that entry again, so deduplicate on id. Use cursor to page through large result sets within each poll.