---
title: "Export Activity Data"
method: GET
path: "/activity/export"
---

# Export Activity Data

`GET /activity/export`

Export Cygnal activity data for the authenticated organization.

Requires admin role.

## Query parameters

- `cursor` string, nullable — Cursor for pagination (ObjectId from previous response)
- `since` string, nullable — ISO 8601 timestamp to filter events after this time
- `until` string, nullable — ISO 8601 timestamp to filter events before this time
- `limit` integer — Maximum number of activity records to return
- `search` string, nullable — Free-text search is temporarily unavailable and ignored; use cursor, time range, or alarm filters instead.
- `alarm_only` boolean — Only return events where alarm=True

## Response `200`

Successful Response

- ActivityExportResponse — Response format for exporting organization activity records.
  - `activities` object[], required
  - `next_cursor` string, nullable, required
  - `has_more` boolean, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.net/grayswan/apis/gray-swan-ai-api.md) · [All operations](https://skmtc.net/grayswan/apis/gray-swan-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/grayswan/gray-swan-ai-api/revisions/6ef1ea32ff13/schema)
