List activity logs by project
const url = 'https://localhost:10001/api/v1/projects/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/projects/example/activity-logs \ --header 'Authorization: <Authorization>'Retrieve activity logs for a specific project
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Project ID, UUID (urn:uuid optional), or slug:my-project
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 project 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 - No project access or 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"}Project 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"}