Audit log
List audit events
/v1/auditParameters
sinceuntilactionactortargetteamlimitcursor
Responses
200
scopeeventsidatactoruserIdemailkeyIdkinderased
surfaceactiontargettypeidslug
beforeafterrequestIdmetadata
nextCursor
429
errormessagetypecodeparamnexusminimum
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request_error | A field is missing or not valid; the message names it |
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 429 | Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap). | |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl "$NEXUS_URL/v1/audit" \
-H "Authorization: Bearer $NEXUS_API_KEY"import { createCoreClient } from "@nexus/kit";
const core = createCoreClient({ baseUrl: process.env.NEXUS_URL!, apiKey: process.env.NEXUS_API_KEY });
const result = await core.audit({ since: "7d", action: "team.*" });Export audit events
/v1/audit/export.csvParameters
sinceuntilactionactortargetteam
Responses
200
429
errormessagetypecodeparamnexusminimum
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request_error | A field is missing or not valid; the message names it |
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 429 | Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap). | |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl "$NEXUS_URL/v1/audit/export.csv" \
-H "Authorization: Bearer $NEXUS_API_KEY"import { createCoreClient } from "@nexus/kit";
const core = createCoreClient({ baseUrl: process.env.NEXUS_URL!, apiKey: process.env.NEXUS_API_KEY });
const result = await core.auditCsv({ since: "30d" });