List audit events
GET/api/v1/audit/events
List audit events
List audit events
curl https://rails-client-server-staging.up.railway.app/api/v1/audit/events \
-H "X-API-Key: $RAILS_API_KEY"{
"data": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"action": "users.business.register",
"actor": {
"id": "id",
"type": "user",
"roles": [
"string"
]
},
"correlation_id": "correlation_id",
"created_at": "2019-12-27T18:11:19.117Z",
"environment": "sandbox",
"metadata": {
"foo": "string"
},
"occurred_at": "2019-12-27T18:11:19.117Z",
"organization_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"outcome": "success",
"request": {
"id": "id",
"method": "method",
"path": "path",
"ip": "ip",
"user_agent": "user_agent"
},
"schema_version": 1,
"source_service": "users",
"target": {
"id": "id",
"type": "type"
},
"reason": "reason"
}
],
"pagination": {
"page": 1,
"per_page": 1,
"total_count": 0,
"total_pages": 0
}
}Returns Examples
{
"data": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"action": "users.business.register",
"actor": {
"id": "id",
"type": "user",
"roles": [
"string"
]
},
"correlation_id": "correlation_id",
"created_at": "2019-12-27T18:11:19.117Z",
"environment": "sandbox",
"metadata": {
"foo": "string"
},
"occurred_at": "2019-12-27T18:11:19.117Z",
"organization_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"outcome": "success",
"request": {
"id": "id",
"method": "method",
"path": "path",
"ip": "ip",
"user_agent": "user_agent"
},
"schema_version": 1,
"source_service": "users",
"target": {
"id": "id",
"type": "type"
},
"reason": "reason"
}
],
"pagination": {
"page": 1,
"per_page": 1,
"total_count": 0,
"total_pages": 0
}
}