/customer/auditList the caller organisation's audit trail for one day
Returns one page (up to 50 items) of audit records for the caller's
organisation on the requested UTC calendar day. The customer is always
taken from the CUSTOM authorizer context; a customerId query parameter
is neither accepted nor honoured.
The response is the existing { items, nextCursor } envelope. Pass the
returned nextCursor back as cursor to fetch the next page; a null
cursor means the day is exhausted.
- Operation ID
listCustomerAudit- Authentication
- customerAuth
Parameters
| Name | In | Type | Description |
|---|---|---|---|
date | query | string (date) | UTC calendar day to read, YYYY-MM-DD. Defaults to the current UTC
day when omitted. The handler does not validate the format; an
unparseable value simply matches no audit rows.
|
cursor | query | string | Opaque pagination cursor: the SK of the last item from the previous
page (the nextCursor value). Omit it for the first page.
|
Responses
X-Request-Id— string, required — Stable id for this request, also present asrequestIdin problem bodies. It is the API Gateway request id, so it matches the id in the Lambda logs; quote it in support requests.
application/jsonAuditPageX-Request-Id— string, required — Stable id for this request, also present asrequestIdin problem bodies. It is the API Gateway request id, so it matches the id in the Lambda logs; quote it in support requests.
application/problem+jsonProblem{
"type": "https://api.jitguard.com/problems/unauthenticated",
"title": "Unauthorized",
"status": 401,
"detail": "A valid customer access token is required.",
"instance": "/customer/audit",
"requestId": "7c1d0c2e-4bd4-4e2f-9c42-4f4b9c0f2b1a",
"error": "Unauthenticated"
}X-Request-Id— string, required — Stable id for this request, also present asrequestIdin problem bodies. It is the API Gateway request id, so it matches the id in the Lambda logs; quote it in support requests.
application/problem+jsonProblem{
"type": "https://api.jitguard.com/problems/method-not-allowed",
"title": "Method Not Allowed",
"status": 405,
"detail": "Method not allowed",
"instance": "/customer/audit",
"requestId": "7c1d0c2e-4bd4-4e2f-9c42-4f4b9c0f2b1a",
"error": "Method not allowed"
}X-Request-Id— string, required — Stable id for this request, also present asrequestIdin problem bodies. It is the API Gateway request id, so it matches the id in the Lambda logs; quote it in support requests.
application/problem+jsonProblem{
"type": "https://api.jitguard.com/problems/internal-error",
"title": "Internal Server Error",
"status": 500,
"detail": "The audit table is not configured for this deployment.",
"instance": "/customer/audit",
"requestId": "7c1d0c2e-4bd4-4e2f-9c42-4f4b9c0f2b1a",
"error": "DYNAMODB_TABLE not configured"
}