Lists that can grow long, such as actions and the audit log, are returned a page at a time.
How it works
- Send the first request without a cursor. Use
limitto choose how many items you want per page. - The response holds the page and
next_cursor. - While
next_cursoris notnull, send the same request again withcursorset to it.
curl "https://a7reports.com/api/clist/v1/workspaces/$WORKSPACE_ID/audit-log?limit=200" \
-H "Authorization: Bearer $CLIST_API_KEY"
# ... "next_cursor": "eyJ0IjoiMjAyNi0xMS0yNlQxMDowMDowMFoiLCJpIjoiLi4uIn0"
curl "https://a7reports.com/api/clist/v1/workspaces/$WORKSPACE_ID/audit-log?limit=200&cursor=eyJ0IjoiMjAyNi0xMS0yNlQxMDowMDowMFoiLCJpIjoiLi4uIn0" \
-H "Authorization: Bearer $CLIST_API_KEY"
Keep the other parameters (filters, sort) the same from page to page. A cursor is opaque: do not build or change one, and do not store it for long.
Limits per list
| List | Items in | Default limit |
Largest limit |
|---|---|---|---|
GET /workspaces/{workspaceId}/follow-ups |
data |
25 | 100 |
GET /workspaces/{workspaceId}/audit-log |
entries |
50 | 200 |
Each list's parameters and the field that holds its items are in the API reference. Shorter lists, such as Groups or tags, come whole in one response.
Exports
For everything at once, use the exports instead of paging: GET /workspaces/{workspaceId}/audit-log/export (CSV or JSON) and GET /workspaces/{workspaceId}/follow-ups/export.csv.