List activity logs by organization
const url = 'https://localhost:10001/api/v1/organizations/example/activity-logs';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://localhost:10001/api/v1/organizations/example/activity-logs \ --header 'Authorization: <Authorization>'Retrieve activity logs for a specific organization, scoped to the caller’s accessible projects when not an organization owner
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Organization ID or UUID (urn:uuid optional)
Responses
Section titled “ Responses ”Activity logs
An audit entry recording who acted on which resource and when
object
object
Resolved from the active org
Resolved from organizationId
Must be in the active org
Urn:uuid form
Example generated
[ { "action": "example", "logs": {}, "projectId": 1, "resource": "example", "userEmail": "example", "userId": "example", "userName": "example" }]Bad request - Invalid organization ID
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Unauthorized - Authentication required
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Forbidden - Insufficient permissions
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Organization not found
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Internal server error
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}