Activity
Export Activity Data
Export Cygnal activity data for the authenticated organization.
Requires admin role.
Query Parameters
cursor?|
Cursor for pagination (ObjectId from previous response)
since?|
ISO 8601 timestamp to filter events after this time
until?|
ISO 8601 timestamp to filter events before this time
limit?integer
Maximum number of activity records to return
Default
1000Range
1 <= value <= 10000search?|
Text search query (uses MongoDB text index on conversation)
alarm_only?boolean
Only return events where alarm=True
Default
falseResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://api.grayswan.ai/activity/export"{
"activities": [
{}
],
"next_cursor": "string",
"has_more": true
}{
"error": true,
"message": "string",
"detail": "string",
"error_code": "string",
"details": {
"property1": "string",
"property2": "string"
}
}{
"error": true,
"message": "string",
"detail": "string",
"error_code": "string",
"details": {
"property1": "string",
"property2": "string"
}
}{
"error": true,
"message": "string",
"detail": "string",
"error_code": "string",
"details": {
"property1": "string",
"property2": "string"
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}{
"error": true,
"message": "string",
"detail": "string",
"error_code": "string",
"details": {
"property1": "string",
"property2": "string"
}
}