Audit
List the activity feed for a company
Section titled “List the activity feed for a company”GET /api/v1/companies/{id}/activity
Authentication: BearerAuth.
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Company ID |
from | query | string | No | RFC3339 start of window (defaults to now - plan retention) |
to | query | string | No | RFC3339 end of window (defaults to now) |
event_type | query | array of string | No | Filter by event type (repeatable) |
outcome | query | array of string | No | Filter by outcome |
actor_user_id | query | string | No | Filter by actor user UUID |
target_kind | query | string | No | Filter by target kind (paired with target_id) |
target_id | query | string | No | Filter by target UUID (paired with target_kind) |
q | query | string | No | Free-text search |
cursor | query | string | No | Opaque pagination cursor |
limit | query | integer | No | Page size (default 50, max 200) |
Responses
Section titled “Responses”| Status | Description | Body |
|---|---|---|
200 | OK | AuditListResponse |
400 | Bad Request | ErrorResponse |
403 | Forbidden | ErrorResponse |
500 | Internal Server Error | ErrorResponse |
Daily summary aggregate for a company’s activity
Section titled “Daily summary aggregate for a company’s activity”GET /api/v1/companies/{id}/activity/summary
Authentication: BearerAuth.
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Company ID |
from | query | string | No | RFC3339 start (defaults to now - 30d) |
to | query | string | No | RFC3339 end (defaults to now) |
event_type | query | array of string | No | Filter by event type (repeatable) |
Responses
Section titled “Responses”| Status | Description | Body |
|---|---|---|
200 | OK | AuditSummaryResponse |
400 | Bad Request | ErrorResponse |
403 | Forbidden | ErrorResponse |
500 | Internal Server Error | ErrorResponse |
List the activity feed for the calling user (self-audit)
Section titled “List the activity feed for the calling user (self-audit)”GET /api/v1/user/me/activity
Authentication: BearerAuth.
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
from | query | string | No | RFC3339 start (defaults to now - 90d) |
to | query | string | No | RFC3339 end (defaults to now) |
event_type | query | array of string | No | Filter by event type (repeatable) |
cursor | query | string | No | Opaque pagination cursor |
limit | query | integer | No | Page size (default 50, max 200) |
Responses
Section titled “Responses”| Status | Description | Body |
|---|---|---|
200 | OK | AuditListResponse |
400 | Bad Request | ErrorResponse |
500 | Internal Server Error | ErrorResponse |
Part of Crewlet. Generated from the OpenAPI document of the API, version 0.1.0.