List activity logs by organization
GET
/api/v1/organizations/{orgId}/activity-logs
const url = 'https://localhost:10001/api/v1/organizations/1/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/1/activity-logs \ --header 'Authorization: <Authorization>'Retrieve activity logs for a specific organization, scoped to the caller’s accessible projects when not an owner or admin
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” orgId
required
integer
Organization ID
Responses
Section titled “ Responses ”Activity logs
Media type application/json
Array<object>
object
action
string
createdAt
string
id
integer
logs
object
organizationId
integer
organizationName
string
projectId
integer
projectName
string
resource
string
userEmail
string
userId
string
userName
string
Example generated
[ { "action": "example", "createdAt": "example", "id": 1, "logs": {}, "organizationId": 1, "organizationName": "example", "projectId": 1, "projectName": "example", "resource": "example", "userEmail": "example", "userId": "example", "userName": "example" }]Bad request - Invalid organization ID
Media type application/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}Organization not found
Media type application/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}Internal server error
Media type application/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}