You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The action type table in docs/docs/configuration/audit-logs.mdx was missing four entries that the code actually writes (org.member_deactivated, org.member_reactivated, scim_token.created, scim_token.deleted) and had one stale entry the code never writes (user.delete). The page also did not document the four query parameters (page, perPage, since, until) or the two response headers (X-Total-Count, Link) that the public OpenAPI spec already describes. The targetType enum and metadata schema on the same page are updated to include scim_token.
Copy file name to clipboardExpand all lines: docs/docs/configuration/audit-logs.mdx
+39-6Lines changed: 39 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,6 @@ curl --request GET '$SOURCEBOT_URL/api/ee/audit' \
124
124
|`chat.visibility_updated`|`user`|`chat`|
125
125
|`user.created_ask_chat`|`user`|`org`|
126
126
|`user.creation_failed`|`user`|`user`|
127
-
|`user.delete`|`user`|`user`|
128
127
|`user.fetched_file_blame`|`user`|`org`|
129
128
|`user.fetched_file_source`|`user`|`org`|
130
129
|`user.fetched_file_tree`|`user`|`org`|
@@ -143,11 +142,44 @@ curl --request GET '$SOURCEBOT_URL/api/ee/audit' \
143
142
|`user.read`|`user`|`user`|
144
143
|`user.signed_in`|`user`|`user`|
145
144
|`user.signed_out`|`user`|`user`|
146
-
|`org.member_promoted_to_owner`|`user`|`user`|
147
-
|`org.owner_demoted_to_member`|`user`|`user`|
148
145
|`org.member_added`|`user`|`user`|
149
-
|`org.member_removed`|`user`|`user`|
146
+
|`org.member_deactivated`|`user`|`user`|
150
147
|`org.member_left`|`user`|`user`|
148
+
|`org.member_reactivated`|`user`|`user`|
149
+
|`org.member_removed`|`user`|`user`|
150
+
|`org.member_promoted_to_owner`|`user`|`user`|
151
+
|`org.owner_demoted_to_member`|`user`|`user`|
152
+
|`scim_token.created`|`user`|`scim_token`|
153
+
|`scim_token.deleted`|`user`|`scim_token`|
154
+
155
+
156
+
## Query parameters and response headers
157
+
158
+
The endpoint is paginated and accepts a time range filter.
159
+
160
+
### Query parameters
161
+
162
+
| Parameter | Type | Default | Description |
163
+
| :------- | :------ | :------ | :------ |
164
+
|`page`| positive integer |`1`| Page number. |
165
+
|`perPage`| positive integer, max `100`|`50`| Number of records per page. |
166
+
|`since`| ISO 8601 timestamp | — | Return records at or after this timestamp (inclusive). |
167
+
|`until`| ISO 8601 timestamp | — | Return records at or before this timestamp (inclusive). |
168
+
169
+
`since` must be strictly before `until` if both are supplied; otherwise the endpoint returns `400`.
170
+
171
+
### Response headers
172
+
173
+
| Header | Description |
174
+
| :------- | :------ |
175
+
|`X-Total-Count`| Total number of audit records matching the current `since` / `until` filter across all pages. |
176
+
|`Link`| Pagination links (`rel="first"`, `rel="prev"`, `rel="next"`, `rel="last"`) formatted per [RFC 8288](https://datatracker.ietf.org/doc/html/rfc8288). Only set when more than one page of results exists. |
177
+
178
+
```bash icon="terminal" Fetch audit logs for a time range, then page
179
+
curl --request GET '$SOURCEBOT_URL/api/ee/audit?since=2026-08-01T00:00:00Z&until=2026-08-13T23:59:59Z&perPage=25' \
0 commit comments