Activity

Export Activity Data

Export Cygnal activity data for the authenticated organization.

Requires admin role.

GET
/activity/export

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

Default1000
Range1 <= value <= 10000
search?|

Text search query (uses MongoDB text index on conversation)

alarm_only?boolean

Only return events where alarm=True

Defaultfalse

Response 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"
  }
}