Skip to content

Export audit log as CSV

GET
/api/v1/audit-logs/export.csv
curl --request GET \
--url 'https://external-api.moja-ai.com/api/v1/audit-logs/export.csv?limit=20&offset=0' \
--header 'X-API-Key: <X-API-Key>'
limit
Limit

Max rows to export for the selected filters and date range

integer
default: 20 >= 1 <= 100000

Max rows to export for the selected filters and date range

offset
Offset

Offset into filtered results; export matches list page

integer
0

Offset into filtered results; export matches list page

entity_type
Any of:
string
entity_id
Any of:
string
user_id
Any of:
string
action
Any of:
string
q
Any of:
string

Search in changes JSON, route, entity_type, user_email, user_id, entity_id, entity_name

from
Any of:
string format: date-time
to
Any of:
string format: date-time
X-API-Key
Any of:
string

Successful Response

Media typeapplication/json
Examplegenerated
example

Bad Request

Media typeapplication/json
ErrorResponse
object
detail
required
ErrorBody
object
code
required
Code
string
message
required
Message
string
Examplegenerated
{
"detail": {
"code": "example",
"message": "example"
}
}

Unauthorized

Media typeapplication/json
ErrorResponse
object
detail
required
ErrorBody
object
code
required
Code
string
message
required
Message
string
Examplegenerated
{
"detail": {
"code": "example",
"message": "example"
}
}

Not Found

Media typeapplication/json
ErrorResponse
object
detail
required
ErrorBody
object
code
required
Code
string
message
required
Message
string
Examplegenerated
{
"detail": {
"code": "example",
"message": "example"
}
}

Conflict

Media typeapplication/json
ErrorResponse
object
detail
required
ErrorBody
object
code
required
Code
string
message
required
Message
string
Examplegenerated
{
"detail": {
"code": "example",
"message": "example"
}
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}

Too Many Requests

Media typeapplication/json
ErrorResponse
object
detail
required
ErrorBody
object
code
required
Code
string
message
required
Message
string
Examplegenerated
{
"detail": {
"code": "example",
"message": "example"
}
}