Search activity log
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
page: 123,
size: 50,
types: [],
severities: [],
callers: [],
userEmail: '<string>',
callIds: ['<string>'],
agentIds: ['<string>'],
fromDate: '2023-11-07T05:31:56Z',
toDate: '2023-11-07T05:31:56Z',
searchText: '<string>',
sortField: '<string>'
})
};
fetch('https://blackbox.dasha.ai/api/v1/activity-logs/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://blackbox.dasha.ai/api/v1/activity-logs/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"page": 123,
"size": 50,
"types": [],
"severities": [],
"callers": [],
"userEmail": "<string>",
"callIds": [
"<string>"
],
"agentIds": [
"<string>"
],
"fromDate": "2023-11-07T05:31:56Z",
"toDate": "2023-11-07T05:31:56Z",
"searchText": "<string>",
"sortField": "<string>"
}
'import requests
url = "https://blackbox.dasha.ai/api/v1/activity-logs/search"
payload = {
"page": 123,
"size": 50,
"types": [],
"severities": [],
"callers": [],
"userEmail": "<string>",
"callIds": ["<string>"],
"agentIds": ["<string>"],
"fromDate": "2023-11-07T05:31:56Z",
"toDate": "2023-11-07T05:31:56Z",
"searchText": "<string>",
"sortField": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"results": [
{
"eventId": "<string>",
"orgId": "<string>",
"type": "AgentCreated",
"severity": "Info",
"message": "<string>",
"caller": "User",
"timestamp": "2023-11-07T05:31:56Z",
"userEmail": "<string>",
"callId": "<string>",
"agentId": "<string>",
"metadata": "<unknown>"
}
],
"totalCount": 123,
"page": 123,
"size": 123,
"totalPages": 123,
"executionTimeMs": 123,
"aggregations": {
"typeCounts": {},
"severityCounts": {},
"callerCounts": {}
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Search activity log
Searches activity log events with filtering by type, severity, caller, date range, and free-text search on message and metadata. Returns paginated results with aggregated counts for types, severities, and callers.
POST
/
api
/
v1
/
activity-logs
/
search
Search activity log
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
page: 123,
size: 50,
types: [],
severities: [],
callers: [],
userEmail: '<string>',
callIds: ['<string>'],
agentIds: ['<string>'],
fromDate: '2023-11-07T05:31:56Z',
toDate: '2023-11-07T05:31:56Z',
searchText: '<string>',
sortField: '<string>'
})
};
fetch('https://blackbox.dasha.ai/api/v1/activity-logs/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://blackbox.dasha.ai/api/v1/activity-logs/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"page": 123,
"size": 50,
"types": [],
"severities": [],
"callers": [],
"userEmail": "<string>",
"callIds": [
"<string>"
],
"agentIds": [
"<string>"
],
"fromDate": "2023-11-07T05:31:56Z",
"toDate": "2023-11-07T05:31:56Z",
"searchText": "<string>",
"sortField": "<string>"
}
'import requests
url = "https://blackbox.dasha.ai/api/v1/activity-logs/search"
payload = {
"page": 123,
"size": 50,
"types": [],
"severities": [],
"callers": [],
"userEmail": "<string>",
"callIds": ["<string>"],
"agentIds": ["<string>"],
"fromDate": "2023-11-07T05:31:56Z",
"toDate": "2023-11-07T05:31:56Z",
"searchText": "<string>",
"sortField": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"results": [
{
"eventId": "<string>",
"orgId": "<string>",
"type": "AgentCreated",
"severity": "Info",
"message": "<string>",
"caller": "User",
"timestamp": "2023-11-07T05:31:56Z",
"userEmail": "<string>",
"callId": "<string>",
"agentId": "<string>",
"metadata": "<unknown>"
}
],
"totalCount": 123,
"page": 123,
"size": 123,
"totalPages": 123,
"executionTimeMs": 123,
"aggregations": {
"typeCounts": {},
"severityCounts": {},
"callerCounts": {}
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Search Capabilities
- Type filtering: Filter by event type (Webhook, ToolCall, ApiRequest, McpCall, Scheduler, WebInterfaceCall)
- Severity filtering: Filter by severity level (Info, Warning, Error, Critical)
- Caller filtering: Filter by who initiated the action (User, System)
- Date range filtering: Filter by event timestamp
- Agent/Call filtering: Filter by specific agent IDs or call IDs
- Full-text search: Search across event messages and metadata
- Aggregations: Get counts grouped by type, severity, and caller
Search Examples
{
"page": 0,
"size": 20,
"sortField": "timestamp",
"sortDirection": "Descending"
}
{
"types": ["Webhook", "ToolCall"],
"severities": ["Error", "Critical"],
"size": 50
}
{
"agentIds": ["agent-123"],
"fromDate": "2026-03-01T00:00:00Z",
"toDate": "2026-03-03T23:59:59Z"
}
{
"searchText": "timeout",
"callers": ["System"],
"size": 100
}
Body
application/jsontext/jsonapplication/*+json
Search criteria and options
Search parameters for querying activity log events with filtering, pagination, and sorting.
Filter by activity event types (e.g., Webhook, ToolCall, ApiRequest).
Type of activity log event. Describes the specific action that occurred.
Available options:
AgentCreated, AgentUpdated, AgentDeleted, AgentCloned, CallCreated, CallBulkScheduled, CallCanceled, CallCompleted, CallFailed, CallDeadlineExceeded, CallDispatched, CallReceived, CallRejectedByWebhook, WebhookSuccess, WebhookFailed, ToolCallSuccess, ToolCallFailed, McpCallExecuted, ConfigurationCreated, ConfigurationUpdated, ConfigurationDeleted, CustomerDataRemoved, PayingStatusChanged, UserOverrideSet, UserOverrideLifted, AccountGrouped, AccountUngrouped Response
Returns search results successfully
Search results for activity log events including pagination metadata, aggregations, and performance metrics.
Was this page helpful?