API REFERENCE
Audit Logs
Security audit-log events for your organization, such as sign-ins, role grants and revocations, user provisioning, and changes to API credentials and SSO settings. Use them to feed this activity into your security monitoring or compliance tooling. Security audit logs explains what each event records and lists every action.
GET /partner/organizations/audit_logs
List security audit-log events
Returns a paginated, organization-scoped list of security audit-log events, newest first.
Requires any one of
api:partner:organizations:audit_logs:read
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| page | integer | optional | Page number for pagination |
| per_page | integer | optional | Records per page |
| filter | object | optional | JSON-encoded filters, e.g. {"action":{"is":"auth.login_succeeded"},"outcome":{"is":"failure"},"occurred_at":{"between":["2026-01-01T00:00:00Z","2026-02-01T00:00:00Z"]}} |
| filter.action | object | optional | |
| filter.action.is | string | optional | Exact action match, e.g. "auth.login_succeeded". Actions follow a "<resource>.<verb>" convention (e.g. role.granted, role.revoked, user.provisioned, sso_config.changed, api_credential.created, impersonation.started) — the full catalog grows over time as new security-relevant events are added, so this is not an enum. |
| filter.resource_type | object | optional | |
| filter.resource_type.is | string | optional | Exact resource-type match, e.g. "Role", "User", "ApiCredential". Matches the resource_type of the events being filtered; open-ended like action, so not an enum. |
| filter.outcome | object | optional | |
| filter.outcome.is | string (enum) | optional | Event outcome Allowed values
|
| filter.occurred_at | object | optional | |
| filter.occurred_at.between | string (date-time)[] | optional |
Responses
| Status | Reason | Schema |
|---|---|---|
| 200 | OK | object |
| 403 | Forbidden | Errors |
Response fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | optional | |
| data | Organizations.AuditLog[] | optional | |
| data[].id | string | required | |
| data[].action | string | required | The action performed, e.g. 'auth.login_succeeded'. The Security audit logs guide lists every current value; new values are added over time. |
| data[].actor_ip | string | null | required | IP address the action originated from |
| data[].actor_label | string | null | required | Who acted: the user's display name, or their email address when no name is set. 'system' or the integration name for automated changes, 'BetterUp User' for BetterUp staff in a support session, null for a failed sign-in |
| data[].actor_type | string | null | required | Kind of actor: user, service_account, system, or anonymous |
| data[].kind | string | required | |
| data[].occurred_at | string (date-time) | required | When the event occurred (UTC, ISO 8601) |
| data[].outcome | string | required | Result: success, failure, or denied |
| data[].related_links | object | required | |
| data[].related_links.self | string | required | |
| data[].resource_label | string | null | required | The affected record's name, such as a user's name or email address or a role name. Null for user provisioning, deactivation, reactivation and removal events and for support-session events |
| data[].resource_type | string | null | required | Type of the affected resource |
| pagination_metadata | PaginationMetadata | optional | Pagination metadata for the response. |
| pagination_metadata.next_page_params | map<string, any> | null | required | Query params for the next page. Merge them into the params of this request. Null on the last page. |
| pagination_metadata.next_page_url | string | null | required | |
| pagination_metadata.page | integer | required | |
| pagination_metadata.per_page | integer | required | |
| pagination_metadata.previous_page_params | map<string, any> | null | required | Query params for the previous page. Merge them into the params of this request. Null on the first page. |
| pagination_metadata.previous_page_url | string | null | required | |
| pagination_metadata.total_records | integer | null | required |
Example request
curl -X GET "https://api.betterup.co/partner/organizations/audit_logs" \
-H "Authorization: Bearer <access_token>"Example response
{
"url": "<url>",
"data": [
{
"id": "<id>",
"action": "<action>",
"actor_ip": "<actor_ip>",
"actor_label": "<actor_label>",
"actor_type": "<actor_type>",
"kind": "<kind>",
"occurred_at": "<date-time>",
"outcome": "<outcome>",
"related_links": {
"self": "<self>"
},
"resource_label": "<resource_label>",
"resource_type": "<resource_type>"
}
],
"pagination_metadata": {
"next_page_params": {
"<key>": {}
},
"next_page_url": "<next_page_url>",
"page": 0,
"per_page": 0,
"previous_page_params": {
"<key>": {}
},
"previous_page_url": "<previous_page_url>",
"total_records": 0
}
}GET /partner/organizations/audit_logs/{id}
Fetch a single security audit-log event
Returns a single security audit-log event belonging to your organization.
Requires any one of
api:partner:organizations:audit_logs:read
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | required | Unique identifier for the Audit Log |
Responses
| Status | Reason | Schema |
|---|---|---|
| 200 | OK | Organizations.AuditLog |
| 404 | Not Found | Errors |
Response fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | required | |
| action | string | required | The action performed, e.g. 'auth.login_succeeded'. The Security audit logs guide lists every current value; new values are added over time. |
| actor_ip | string | null | required | IP address the action originated from |
| actor_label | string | null | required | Who acted: the user's display name, or their email address when no name is set. 'system' or the integration name for automated changes, 'BetterUp User' for BetterUp staff in a support session, null for a failed sign-in |
| actor_type | string | null | required | Kind of actor: user, service_account, system, or anonymous |
| kind | string | required | |
| occurred_at | string (date-time) | required | When the event occurred (UTC, ISO 8601) |
| outcome | string | required | Result: success, failure, or denied |
| related_links | object | required | |
| related_links.self | string | required | |
| resource_label | string | null | required | The affected record's name, such as a user's name or email address or a role name. Null for user provisioning, deactivation, reactivation and removal events and for support-session events |
| resource_type | string | null | required | Type of the affected resource |
Example request
curl -X GET "https://api.betterup.co/partner/organizations/audit_logs/<id>" \
-H "Authorization: Bearer <access_token>"Example response
{
"id": "<id>",
"action": "<action>",
"actor_ip": "<actor_ip>",
"actor_label": "<actor_label>",
"actor_type": "<actor_type>",
"kind": "<kind>",
"occurred_at": "<date-time>",
"outcome": "<outcome>",
"related_links": {
"self": "<self>"
},
"resource_label": "<resource_label>",
"resource_type": "<resource_type>"
}