Get paginated audit logs for a specific member.
organization_id string required
Organization ID
user_id string required
User ID to get change logs for
skip integer optional · Defaults to 0
Number of records to skip (min: 0).
take integer optional · Defaults to 50
Number of records to return (min: 1, max: 100).
start_date datetime optional
Filter logs from this date (ISO 8601 format).
end_date datetime optional
Filter logs until this date (ISO 8601 format).
resource_type string optional
Filter by resource type. Valid values: organization_user, assistant, rule, document.
action string optional
Filter by action. Valid values: created, updated, deleted, added, removed, restored, entity_attached, entity_detached.
Returns paginated audit logs for the specific member.
- Returns only audit logs related to the specific member
- Validates that user_id exists and is a member of the organization
- Returns 404 if user is not found in the organization
Requires Admin or Owner role.
- Bash
- Python
- JavaScript
curl -X POST https://api.aitronos.com/v1/organizations/org_abc123/users/usr_xyz789/change-logs \
-H "X-API-Key: $FREDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"skip": 0,
"take": 50,
"resource_type": "organization_user",
"action": "updated"
}'Response:
{
"logs": [
{
"id": "log_abc123",
"user_id": "usr_xyz789",
"user_name": "Admin User",
"user_email": "admin@example.com",
"action": "updated",
"timestamp": "2025-01-20T14:45:00Z",
"resource_type": "organization_user",
"resource_id": "usr_def456",
"resource_name": "John Doe",
"changes": [
{
"field": "status_id",
"old_value": "status_active",
"new_value": "status_inactive"
}
]
}
],
"total_count": 12,
"skip": 0,
"take": 50
}