List organization audit log entries
/v2/organizations/{organization_id}/audit_log_entriesReturns a collection of audit log entries for the given organization.
Requires the organization to be on an Enterprise plan. Requires Owner or Organization Manager role (with view others data permission). Payment-scoped entries are visible only to Owners and Managers with the manage billing permission.
Results can be filtered by created[start]/[stop], event_action, record_type, subject_user_id, and ip.
Date range limit is 7 days. To walk a longer history,
slide the created[start]/created[stop] window across the retention range.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
organization_idrequired | path | integer (int32) | |
page_start_id | query | integer (int32) | The page start ID. |
page_limit | query | integer (int32) | The default page size |
created[start]required | query | string (date-time) | Start time (ISO 8601) |
created[stop]required | query | string (date-time) | Stop time (ISO 8601, exclusive) |
event_action | query | string | Filter by event action |
record_type | query | string | Filter by audited record type |
subject_user_id | query | integer (int32) | Filter by subject user ID |
ip | query | string | Filter by the IP recorded on the audit row |
include_removed_members | query | boolean | Include rows whose subject user is a removed member |
include_archived_projects | query | boolean | Include rows for archived projects |
Responses
200A list of audit log entries
- organization_audit_log_entriesarrayarray<object>itemsobject
OrganizationAuditLogEntry model
- idinteger required
Audit log entry ID
- organization_idinteger required
Organization ID
- subject_user_idinteger required
Subject user ID (may be null)
- actionstring required
The event action (e.g. location_changed)
- record_typestring required
Record type the action was applied to
- record_idinteger required
Record ID the action was applied to
- user_idinteger required
Actor user ID (may be null for system-initiated changes)
- ipstring required
IP address recorded with the event
- detailsobject required
Action-specific details, whitelisted per action
objectAction-specific details, whitelisted per action
- created_atstring required
When the record was created
- updated_atstring required
When the record was last updated
{
"organization_audit_log_entries": [
{
"id": 0,
"organization_id": 0,
"subject_user_id": 0,
"action": "string",
"record_type": "string",
"record_id": 0,
"user_id": 0,
"ip": "string",
"details": {},
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
]
}400Invalid parameters
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}401Unauthorized
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}403API access is only for organizations on an active plan
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}404Could not find record
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}429Rate limit exceeded
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}