Skip to content

List activity logs by organization

GET
/api/v1/organizations/{orgId}/activity-logs
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

orgId
required
string

Organization ID or UUID (urn:uuid optional)

Activity logs

Media type application/json
Array<object>

An audit entry recording who acted on which resource and when

object
action
string
createdAt
string format: date-time
id
integer
logs
object
organizationId

Resolved from the active org

integer
organizationName

Resolved from organizationId

string
projectId

Must be in the active org

integer
projectName
string
resource
string
userEmail
string
userId
string
userName
string
uuid

Urn:uuid form

string
Example generated
[
{
"action": "example",
"logs": {},
"projectId": 1,
"resource": "example",
"userEmail": "example",
"userId": "example",
"userName": "example"
}
]

Bad request - Invalid organization ID

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Unauthorized - Authentication required

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Forbidden - Insufficient permissions

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Organization not found

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Internal server error

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}