Audit Logging
The account audit log records activity in your Monte Carlo account: API calls, sign-ins and sign-outs, views and exports of PII scan results, and tool calls that agents make to your MCP servers. Each entry records who acted, when, from which IP address, and whether the call succeeded.
Entries usually appear within seconds of the activity. Monte Carlo's servers record each entry, not the browser or client that made the call.
The log covers calls from people, from service API keys, from Monte Carlo agents, and from Monte Carlo staff acting in your account, such as support. Each entry records the kind of identity that acted.
You can read the log on the Audit log page in Monte Carlo, or through the API. The API has two versions:
- Version 2: the GraphQL query
getAccountAuditLogEntriesand the REST endpointGET /api/v2/audit-log/entries. It returns the newest entries first, pages with a cursor, and returns each entry's outcome. Use version 2 for new integrations. - Version 1: the GraphQL query
getAccountAuditLogs. It returns the oldest entries first and pages with an offset. Existing integrations that poll it keep working unchanged.
The page and both API versions read the same entries and require the same access. See Access.
Audit log page
To open the audit log, go to Settings and select Audit log under Users. The page reads the log through version 2 of the API.
The page shows the past 7 days by default, newest first. Each row shows the time, the actor and its kind, the event type, the operation (the API name or MCP tool name, with its protocol), the outcome and the client IP address. Select a row to see all of the entry's details.
To narrow the list:
- Pick a time range with the date picker.
- Select + Filter to filter by event type, outcome or actor type, or to include read-only calls. Read-only calls are left out by default.
- Search by actor. The search matches a whole email or service ID only, not part of one. Calls made with a service API key are recorded under the key's service ID.
The time range and filters are kept in the page URL, so you can bookmark or share a filtered view. The actor search is not kept in the URL.
The page doesn't filter by object ID. To filter by object ID, use the API.
If the page takes too long to load, pick a shorter time range or add a filter.
Version 2
Version 2 returns the newest entries first. Every filter is optional except the start time, and an omitted filter matches every entry.
| Filter | GraphQL argument | REST parameter | Description |
|---|---|---|---|
| Start time | startTime | start_time | Required. The start of the time range, inclusive. |
| End time | endTime | end_time | The end of the time range. Defaults to now. |
| Actor emails | actorEmails | actor_emails | Only entries by these emails. At most 100. |
| Actor types | actorTypes | actor_types | Only entries by these kinds of identity. See Actor types. |
| Event types | eventTypes | event_types | Only entries of these event types. See Event types. |
| Outcomes | outcomes | outcomes | Only entries with these outcomes. See Outcomes. |
| Object IDs | objectRefs | object_refs | Only calls that received these IDs, such as a warehouse or monitor ID. At most 100 argument names, with up to 1,000 values each. |
| Read-only calls | includeReadOnlyCalls | include_read_only_calls | Read-only API calls are left out unless this is true. |
A list filter matches any of its values. When several filters are set, an entry must match all of them.
Object ID filters work the same way. Values for one argument name match any of them. Several argument names must all match. For example, a filter on dw_id for warehouse A and monitor_id for monitor B matches only calls that received both, not calls that received either.
Every Monte Carlo agent identity is listed under the shared email [email protected]. Filtering on that email matches every agent identity, as does the actor type agent.
To get the next page, pass the cursor of the last entry, and send the same filters as on the first page. A cursor from a request with different filters is rejected.
To get the total number of matching entries, for example to show a page count, select totalCount in GraphQL or send with_count=true in REST. The total covers the whole time range, and the cursor and page size don't change it. It is counted again on every page, so it can change as new entries arrive. It is null when counting fails or takes too long, and the entries are still returned.
GraphQL
getAccountAuditLogEntries returns up to 100 entries per page by default. Set first to between 1 and 1,000. To get the next page, pass pageInfo.endCursor as after while pageInfo.hasNextPage is true.
query getAccountAuditLogEntries(
$startTime: DateTime!
$endTime: DateTime
$outcomes: [AccountAuditLogOutcome!]
$objectRefs: [ApiCallReference!]
$first: Int
$after: String
) {
getAccountAuditLogEntries(
startTime: $startTime
endTime: $endTime
outcomes: $outcomes
objectRefs: $objectRefs
first: $first
after: $after
) {
edges {
node {
eventId
eventTime
eventType
actor {
type
email
firstName
lastName
}
outcome
statusCode
clientIp
requestId
requestSource
apiProtocol
apiName
apiIsQuery
url
objectRefs {
parameterName
id
}
isLegacy
}
}
pageInfo {
hasNextPage
endCursor
}
}
}Variables that return failed and denied calls that received a given warehouse ID:
{
"startTime": "2026-11-01T00:00:00.000Z",
"outcomes": ["FAILED", "DENIED"],
"objectRefs": [
{
"parameterName": "dw_id",
"parameterValues": ["836a6113-c067-467c-ad08-68462f045fe6"]
}
],
"first": 100
}An object ID reference without values matches any value of that argument.
GraphQL takes the enum names for filters: PERSON, SERVICE_API_KEY, MC_STAFF and AGENT for actor types, SUCCEEDED, FAILED, DENIED and UNKNOWN for outcomes, and the event type names listed in Event types.
REST
GET /api/v2/audit-log/entries is part of the REST API v2, which is in beta. It returns up to 50 entries per page by default. Set limit to between 1 and 100. To get the next page, pass next_cursor from the response as cursor. next_cursor is null on the last page.
List filters take comma-separated values. object_refs takes name:value pairs, such as dw_id:836a6113-c067-467c-ad08-68462f045fe6. A bare name matches any value of that argument. Several values for one name match any of them, and every name must match. A value that contains a comma can't be used as a filter.
curl --get https://api.getmontecarlo.com/api/v2/audit-log/entries \
--header 'Authorization: Bearer <KEY_ID>:<SECRET>' \
--data-urlencode 'start_time=2026-11-01T00:00:00Z' \
--data-urlencode 'outcomes=failed,denied' \
--data-urlencode 'object_refs=bi_container_id:4f2d9c1a-7b3e-4a6f-9d8c-2e1b0a9f8c7d'The response holds the page's entries in items. has_more is true when another page follows. count holds the total number of matching entries when you send with_count=true, and is null otherwise.
{
"items": [
{
"id": "0b9c6f1e-3a52-4c4d-9a57-2f1e8d6b7c10",
"event_time": "2026-11-03T14:22:05.120Z",
"event_type": "API Called",
"actor_type": "service_api_key",
"actor_email": "[email protected]",
"actor_first_name": null,
"actor_last_name": null,
"outcome": "denied",
"status_code": 403,
"client_ip": "203.0.113.10",
"request_id": "a1f4c2d8-5e6b-4f7a-8c9d-0e1f2a3b4c5d",
"request_source": "Programmatic",
"api_protocol": "rest",
"api_name": "delete_bi_container",
"api_is_query": false,
"url": "/api/v2/bi-containers/4f2d9c1a-7b3e-4a6f-9d8c-2e1b0a9f8c7d",
"object_refs": [
{ "name": "bi_container_id", "value": "4f2d9c1a-7b3e-4a6f-9d8c-2e1b0a9f8c7d" }
],
"agent_activity": null,
"is_legacy": false
}
],
"next_cursor": null,
"has_more": false,
"count": null
}REST takes the lowercase values for filters: person, service_api_key, mc_staff and agent for actor types, succeeded, failed, denied and unknown for outcomes, and the event type values listed in Event types.
A read that takes too long returns 503 with the error audit_log_unavailable. Retry, or narrow the time range.
The REST API v2 reference documents every parameter and response field.
Entry fields
Field names are given as GraphQL names, with the REST name where it differs.
| Field | Description |
|---|---|
eventId (REST: id) | ID of the event. |
eventTime | When the call started. |
eventType | Event type. See Event types. |
actor (REST: actor_type, actor_email, actor_first_name, actor_last_name) | The identity that acted: its kind, email, and first and last name as they were when the event happened. |
outcome | Result of the call. See Outcomes. |
statusCode | HTTP status code of the response, when recorded. Recorded for REST calls. |
clientIp | IP address the call came from. |
requestId | ID of the request. |
requestSource | Where the call came from, such as Web, MCP or Programmatic. |
apiProtocol | GRAPHQL, REST or MCP (REST: lowercase). Null for sign-ins and sign-outs. |
apiName | GraphQL field, REST operation ID or MCP tool name. |
apiIsQuery | True for a read-only call. |
url | REST path, or the page a GraphQL call was made from. |
objectRefs (REST: object_refs, with name and value) | IDs the call received, each with the name of the argument that carried it. Empty when the call received none. |
agentActivity | Details of an agent tool call. Null for other events. See Agent MCP tool calls. |
isLegacy | True for entries recorded before real-time audit logging, copied from the earlier audit log. Legacy entries have no recorded outcome, so their outcome is UNKNOWN. |
Outcomes
Each entry records the result of the call:
| GraphQL | REST | Meaning |
|---|---|---|
SUCCEEDED | succeeded | The call succeeded. |
FAILED | failed | The call failed. |
DENIED | denied | The call was refused, for example because the identity lacked a permission. |
UNKNOWN | unknown | No result was recorded, for example after a timeout. |
An entry's outcome is the result of the call itself. For agent tool calls, agentActivity.outcome separately records the result of the tool call on your MCP server.
Actor types
| GraphQL | REST | Meaning |
|---|---|---|
PERSON | person | A user who signs in. |
SERVICE_API_KEY | service_api_key | A call made with a service API key. |
MC_STAFF | mc_staff | A Monte Carlo employee acting in your account, such as support. |
AGENT | agent | A Monte Carlo agent identity, such as an automated agent run. |
When a person chats with a Monte Carlo agent, or starts an agent run, the agent acts on behalf of that person, and the entry's actor is the person.
Version 1
getAccountAuditLogs returns the oldest entries first. To get the next page, pass pageInfo.endCursor as after. It doesn't return outcomes or actor types. To filter by who acted, pass userEmail or actorRole.
Sample query
query getAccountAuditLogs(
$startTime: DateTime!
$apiCallReferences: [ApiCallReference]
$includeApiQueries: Boolean
$userEmail: String
$first: Int
$after: String
) {
getAccountAuditLogs(
startTime: $startTime
apiCallReferences: $apiCallReferences
includeApiQueries: $includeApiQueries
userEmail: $userEmail
first: $first
after: $after
) {
records {
timestamp
accountUuid
accountName
email
firstName
lastName
url
eventType
apiName
apiIsQuery
apiCallReferences
apiCallSource
clientIp
}
pageInfo {
hasNextPage
endCursor
}
}
}Variables
{
"startTime": "2023-12-01T12:00:00.000Z",
"includeApiQueries": true,
"userEmail": "[email protected]",
"apiCallReferences": [
{
"parameterName": "resource_id",
"parameterValues": ["04bb580a-7dee-4ff6-87ee-2aafe3545748", "cf351ffe-2332-4cef-9021-f0d753960a9d"]
},
{
"parameterName": "dw_id",
"parameterValue": "836a6113-c067-467c-ad08-68462f045fe6"
}
],
"first": 50
}Event types
| Event type | GraphQL enum name | Description |
|---|---|---|
API Called | API_CALLED | An API call. In version 2, apiProtocol says whether it was GraphQL, REST or MCP. |
UserLogin | USER_LOGIN | A sign-in. |
UserLogout | USER_LOGOUT | A sign-out. |
PII Inventory Viewed | PII_INVENTORY_VIEWED | A view of PII scan results. |
PII Sample Rows Viewed | PII_SAMPLE_ROWS_VIEWED | A view of sample rows from a PII scan. |
PII Inventory Exported | PII_INVENTORY_EXPORTED | An export of PII scan results. |
Agent MCP Tool Called | AGENT_MCP_TOOL_CALLED | A tool call an agent made to one of your MCP servers. |
Both versions take the GraphQL enum names in eventTypes. The REST endpoint takes the event type values in event_types. An empty or missing list returns all event types.
Agent MCP tool calls
When a Monte Carlo agent calls a tool on one of your MCP servers, the audit log records an entry. These entries have the event type Agent MCP Tool Called. Calls from chat and from automated agent runs are both recorded.
Results without an event type filter include these entries. To get only these entries, pass AGENT_MCP_TOOL_CALLED in eventTypes.
The agentActivity field holds the details of the call. It is null for events that are not agent activity, and for entries that are missing required data. All of its fields are optional. The server fields are only set for tools on your MCP servers.
| Field | Description |
|---|---|
serverId | ID of the MCP server. |
serverName | Current name of the MCP server. If the server is renamed, older entries show the new name. Null if the server was deleted. |
toolName | Tool name as defined on your MCP server. |
toolSource | customer_mcp for a tool on your MCP server. |
access | read or write, as declared by the server. Null when the server does not declare it. |
outcome | success, error or cancelled. |
agentId | Name of the agent that made the call: operations, troubleshooting, monitoring, triage, monitor_tuning, cost, performance, pr, remediation or health. Other values may appear. |
surface | Where the request started: web_ui, slack, msteams, mcp, api or in_product. |
isAutomated | True for automated agent runs. Null when unknown. |
threadId | ID of the agent conversation or run. |
In version 1, to filter by who acted, pass actorRole. Entries from chat and from agent runs a person starts have the role USER, because the agent acts on behalf of that person. Automated agent runs have the role AGENT. In version 2, pass the actor type AGENT instead.
Keep these limits in mind:
- Delivery is best effort. Monte Carlo attempts one entry per tool call, and some calls may not be recorded.
- Entries hold metadata only. Tool arguments and results are not recorded.
Sample query for agent MCP tool calls
query getAgentMcpToolCalls($startTime: DateTime!, $first: Int) {
getAccountAuditLogEntries(
startTime: $startTime
eventTypes: [AGENT_MCP_TOOL_CALLED]
first: $first
) {
edges {
node {
eventTime
actor {
type
email
}
agentActivity {
serverId
serverName
toolName
toolSource
access
outcome
agentId
surface
isAutomated
threadId
}
}
}
pageInfo {
hasNextPage
endCursor
}
}
}Domain changes
Editing a domain, including adding or removing its assets, is recorded as an API Called event for createOrUpdateDomain, with who made the change and when. The log doesn't record which assets were added or removed.
Access
Reading the audit log requires the Audit Logging feature on your account and the dashboard/access permission. Without both, the Audit log page doesn't appear in Settings. The page and both API versions return activity for the whole account, not only for the caller.
Documentation
The GraphQL API reference documents getAccountAuditLogEntries and getAccountAuditLogs. The REST API v2 reference documents GET /api/v2/audit-log/entries.
Updated about 3 hours ago
