curl --request GET \
--url https://api.sprucecollective.co.uk/activity-logs/users/{user_id} \
--header 'Authorization: <api-key>'{
"has_more": true,
"logs": [
{
"activity_type": "<string>",
"created_at": "<string>",
"description": "<string>",
"id": "<string>",
"ip_address": "<string>",
"metadata": {},
"request_id": "<string>",
"resource_id": "<string>",
"resource_type": "<string>",
"session_id": "<string>",
"severity": "<string>",
"site_id": "<string>",
"user_agent": "<string>",
"user_id": "<string>"
}
],
"page": 123,
"page_size": 123,
"total": 123
}Get activity logs for a specific user (admin only)
curl --request GET \
--url https://api.sprucecollective.co.uk/activity-logs/users/{user_id} \
--header 'Authorization: <api-key>'{
"has_more": true,
"logs": [
{
"activity_type": "<string>",
"created_at": "<string>",
"description": "<string>",
"id": "<string>",
"ip_address": "<string>",
"metadata": {},
"request_id": "<string>",
"resource_id": "<string>",
"resource_type": "<string>",
"session_id": "<string>",
"severity": "<string>",
"site_id": "<string>",
"user_agent": "<string>",
"user_id": "<string>"
}
],
"page": 123,
"page_size": 123,
"total": 123
}Type "Bearer" followed by a space and JWT token.
User ID
OK
Show child attributes