Audit Log
The Audit Log API allows you to query activity logs and audit trails with support for filtering, pagination, sorting, and free-text search.
Query Activities
Query activity logs with filtering, pagination, sorting, and free-text search.
Free-Text Search
The search parameter performs a multi-field search across:
actor.email- Email address of the actoraction- Action performedtarget.type- Type of target resourcetarget.id- ID of target resourcescope- Scope/domain of the activity
Search uses n-gram tokenization (3-4 characters) for partial matching.
Facets
The response includes faceted aggregations for:
actor_emails- Top 100 actor emails with countsscopes- Top 100 scopes with countsstatuses- Status values with counts
Request body for querying activities
Free-text search query. Searches across actor.email, action, target.type, target.id, and scope fields using n-gram matching.
inventoryFilter by actor IDs
["user-123","user-456"]Filter by actor email addresses
["user@example.com"]Filter by action names
["inventory:sync","inventory:masterTypeAgg"]Filter by target types
["workflow","resource"]Filter by target IDs
["wf-123"]Filter by scope/domain
["inventory","workflows"]Filter by HTTP method
["GET","POST"]Filter activities after this time (inclusive, RFC3339 format)
2025-12-01T00:00:00ZFilter activities before this time (inclusive, RFC3339 format)
2025-12-31T23:59:59ZMaximum number of activities to return
100Example: 50Number of activities to skip for pagination
0Example: 0Field to sort results by
event_timeExample: event_timeSort order
descExample: descPossible values: Successful query
Total number of activities matching the query
150Indicates if there are more results beyond the current page
trueInvalid request parameters
Internal server error
POST /v2/audit-log/activities HTTP/1.1
Host: api.firefly.ai
Content-Type: application/json
Accept: */*
Content-Length: 23
{
"limit": 10,
"offset": 0
}{
"activities": [
{
"id": "66169d5af4992fc0bab04510-0-30411-1769774768836852333",
"event_time": "2026-01-30T12:06:04Z",
"source": "",
"account_id": "66169d5af4992fc0bab04510",
"actor": {
"type": "user",
"id": "aaaaa-bbb-43b4-acf5-9b7a8sa1dfdsf",
"email": "test@firefly.ai"
},
"action": "jira-integration:getAll",
"target": {
"type": "",
"id": ""
},
"scope": "Integration",
"method": "GET",
"status": "success"
}
],
"total": 150,
"has_more": true,
"facets": {
"actor_emails": [
{
"key": "system@firefly.ai",
"count": 100
},
{
"key": "user@example.com",
"count": 50
}
],
"scopes": [
{
"key": "inventory",
"count": 120
},
{
"key": "workflows",
"count": 30
}
],
"statuses": [
{
"key": "success",
"count": 140
},
{
"key": "failure",
"count": 10
}
]
}
}Last updated
Was this helpful?