Activity and monitoring API¶
Read the audit trail, AI costs, background tasks, and notifications. See Audit logs.
Paths are relative to https://<your-atlas-host>/api/v1. For the API key and headers every
request needs, see Authentication.
Endpoint |
What it does |
|---|---|
List audit log entries for your organization |
|
Get a single audit log entry by id |
|
Headline cost totals (LLM/warehouse split, MoM delta) for the window |
|
Raw cost events for the window (for export / drill-down) |
|
List background task executions |
|
Get a background task execution, with its status and result |
|
List notifications for the authenticated user |
|
Get unread notification count for the authenticated user |
|
Mark a notification as read |
|
Mark all notifications as read for the authenticated user |
|
Get notification channel preferences |
|
Update a notification channel preference |
List audit logs¶
GET /audit/
List audit log entries for your organization.
Parameters
Name |
In |
Type |
|---|---|---|
|
query |
string |
|
query |
string |
|
query |
string |
|
query |
UUID |
|
query |
string |
|
query |
UUID |
|
query |
datetime |
|
query |
datetime |
|
query |
integer |
|
query |
integer |
Response A list of objects:
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
UUID |
|
string |
|
UUID |
|
string |
|
object |
|
string |
|
string |
|
string |
|
datetime |
Get audit log¶
GET /audit/{audit_log_id}
Get a single audit log entry by id.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
UUID |
|
string |
|
UUID |
|
string |
|
object |
|
string |
|
string |
|
string |
|
datetime |
Cost summary¶
GET /costs/summary
Headline cost totals (LLM/warehouse split, MoM delta) for the window.
Parameters
Name |
In |
Type |
|---|---|---|
|
query |
datetime |
|
query |
datetime |
Response
Field |
Type |
|---|---|
|
string |
|
string |
|
string |
|
string |
|
number |
|
integer |
|
integer |
|
string |
Cost events¶
GET /costs/events
Raw cost events for the window (for export / drill-down).
Parameters
Name |
In |
Type |
|---|---|---|
|
query |
datetime |
|
query |
datetime |
|
query |
integer |
|
query |
integer |
Response A list of objects:
Field |
Type |
|---|---|
|
UUID |
|
datetime |
|
string |
|
string |
|
string |
|
string |
|
string |
|
string |
|
UUID |
|
string |
|
UUID |
|
object |
List task executions¶
GET /task-executions/
List background task executions.
Parameters
Name |
In |
Type |
Description |
|---|---|---|---|
|
query |
string |
Kind of job, exact match, such as |
|
query |
string |
|
|
query |
UUID |
|
|
query |
integer |
|
|
query |
integer |
Response A list of objects:
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
UUID |
|
string |
|
integer |
|
integer |
|
datetime |
|
datetime |
|
datetime |
|
integer |
|
integer |
|
integer |
|
integer |
|
string |
|
string |
|
object |
|
datetime |
|
datetime |
Get task execution¶
GET /task-executions/{execution_id}
Get a background task execution, with its status and result.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
UUID |
|
string |
|
integer |
|
integer |
|
datetime |
|
datetime |
|
datetime |
|
integer |
|
integer |
|
integer |
|
integer |
|
string |
|
string |
|
object |
|
datetime |
|
datetime |
List notifications¶
GET /notifications/
List notifications for the authenticated user.
Response A list of objects:
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
string |
|
object |
|
string |
|
boolean |
|
datetime |
|
datetime |
Get the unread notification count¶
GET /notifications/unread-count
Get unread notification count for the authenticated user.
Response
The raw file content.
Mark a notification read¶
POST /notifications/{notification_id}/read
Mark a notification as read.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
The raw file content.
Mark all notifications read¶
POST /notifications/read-all
Mark all notifications as read for the authenticated user.
Response
The raw file content.
Get notification preferences¶
GET /notifications/preferences
Get notification channel preferences.
Response A list of objects:
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
boolean |
Update a notification preference¶
PATCH /notifications/preferences
Update a notification channel preference.
Request body
Field |
Type |
Required |
|---|---|---|
|
string |
Yes |
|
string |
Yes |
|
boolean |
Yes |
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
boolean |
What’s next?¶
API overview: authentication, worked examples, and error handling
Webhooks: get events pushed to your systems instead of polling
Service accounts: create the key an integration uses