This document provides programmatic specifications for retrieving and reviewing audit events, user actions, and API request details from your Kentik environment.
API Version:
/audit/v202601Protocol: HTTPS
Format: JSON
Notes:
Audit logs retrieved via the Audit APIs support internal security policies and serve as compensating controls during compliance audits.
See Kentik APIs for base URLs, authentication specifications, and rate limits.
API Endpoints
List Audit Events
Returns a list of audit events. For details on the returned payload structure, see List Response.
HTTP Request:
GET /audit/v202601/events
Query Parameters
Parameter | Type | Description |
|---|---|---|
| string | UTC date-time string. Defaults to 30 days before |
| string | Date time in UTC. Defaults to current date/time if not provided. |
| uint64 | Pagination offset. Default is |
| uint64 | Number of results to return per page. Default is |
TIPS:
Combine
limitandoffsetto page through results (for example, setoffset=100, thenoffset=200, until the response array is empty).The API returns events from the last 30 days by default. To optimize query performance, explicitly set both
startTimeandendTime.
cURL Example
The following is a sample request to the List Audit Events endpoint.
curl -X GET "https://grpc.api.kentik.com/audit/v202601/events?limit=10&startTime=2026-09-01T12:00:00Z&endTime=2026-09-05T12:00:00Z" \
-H "X-CH-Auth-Email: your-email@company.com" \
-H "X-CH-Auth-API-Token: your-api-token"Get an Audit Event by ID
Returns a specific audit event by its unique identifier. See Get Response for payload structure details.
HTTP Request:
GET /audit/v202601/events/{id}
Path and Query Parameters
Parameter | Placement | Type | Required | Description |
|---|---|---|---|---|
| path | int64 | Yes | Unique identifier of the event. |
| query | date-time | Optional | Timestamp when the event was produced. |
cURL Example
The following is a sample request to the Get an Audit Event (By ID) endpoint.
curl -X GET "https://grpc.api.kentik.com/audit/v202601/events/123456" \
-H "X-CH-Auth-Email: your-email@company.com" \
-H "X-CH-Auth-API-Token: your-api-token"Get an Audit Event by ID and Time
Returns a specific audit event using both its unique identifier and creation time in the request path.
HTTP Request:
GET /audit/v202601/events/{id}/{ctime}
Path Parameters
Parameter | Type | Required | Description |
|---|---|---|---|
| int64 | Yes | Unique identifier of the event. |
| date-time | Yes | Timestamp when the event was produced. |
Standard API Responses & Errors
List Response
When calling the List Audit Events endpoint, the returned JSON wraps the result set in an events array:
{
"events": [
{ /* AuditEvent Object 1 */ },
{ /* AuditEvent Object 2 */ }
]
}Get Response
When calling a Get Audit Event endpoint, the returned JSON wraps the single result in an event object:
{
"event": { /* AuditEvent Object */ }
}Error Response
If an API request fails, Kentik returns a standard error object containing an error code and message.
Field | Type | Description |
|---|---|---|
| integer (int32) | The numeric error code |
| string | A human-readable error description |
| array (protobufAny) | An array of additional error details, if applicable |
Response Fields
Audit Event Object
The Audit Event object defines the attributes returned for audit log entries.
Field | Type | Description |
|---|---|---|
| string | ID of the user that produced the event. |
| string (uint64) | Unique identifier of the event. |
| string (date-time) | Timestamp when the event was produced. |
| string | HTTP method of the request ( |
| string | URL path of the request. |
| string | Client IP Address. |
| string | Authority header from the request. |
| string | Kentik user ID extracted from request metadata. |
| string | Kentik user email extracted from request metadata. |
| string | The type of object affected by the action. |
| string | Human-readable name of the affected object. |
| string | The action performed on the object. |
| string | The source of the request. |
| string | The ID of the affected object. |
| string | The ID of the parent object. |
| string | Path to view the affected object in the Kentik portal. |
| string | Request Payload details. |
| string | User agent string from the request header. |
| string | Specific title associated with the route or event, if applicable. |
| object | Flexible event metadata (see Generic Event Object). |
Generic Event Object
The Generic Event object appears inside the generic field of an Audit Event object to provide additional contextual metadata.
Field | Type | Description |
|---|---|---|
| string | Attribute source of the audit log. |
| string | Attribute action of the audit log. |
| string | Attribute type of the audit log. |
| string | Attribute user of the audit log. |
| object | A dictionary of key-value pairs containing additional event metadata. |
