Forge Audit API
Audit
Audit
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/forge:forge-audit-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Forge Audit API
version: 0.1.0
description: Automate Forge inventory, investigations, findings, governance, fleet, policy, configuration, compliance, MCP, service-account, and audit workflows.
servers:
- url: https://api.forge.ai
description: Forge production API
security:
- serviceAccountBearer: []
tags:
- name: Audit
description: Audit
paths:
/api/headless/v1/organizations/{organizationId}/audit/events:
get:
operationId: searchHeadlessAuditEvents
tags:
- Audit
x-forge-audience: public_headless
x-forge-capability-id: audit.search_events
x-forge-required-permission: audit.view
x-forge-required-scopes:
- audit:read
x-forge-risk-tier: sensitive_read
x-forge-stability: beta
x-forge-pagination: offset_cursor
parameters:
- $ref: '#/components/parameters/OrganizationId'
- name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 200
- name: offset
in: query
schema:
type: integer
minimum: 0
- name: cursor
in: query
schema:
type: string
- name: action
in: query
schema:
type: string
- name: actorType
in: query
schema:
type: string
- name: actorConsoleUserId
in: query
schema:
type: string
- name: targetType
in: query
schema:
type: string
- name: targetId
in: query
schema:
type: string
- name: occurredAfter
in: query
schema:
type: string
format: date-time
- name: occurredBefore
in: query
schema:
type: string
format: date-time
responses:
'200':
description: Organization audit events visible to the current headless actor.
content:
application/json:
schema:
$ref: '#/components/schemas/HeadlessAuditEventListResponse'
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'403':
$ref: '#/components/responses/Error'
summary: Search audit events
description: Search organization audit events, including API, CLI, MCP, and built-in agent activity.
/api/headless/v1/organizations/{organizationId}/audit/events.jsonl:
get:
operationId: exportHeadlessAuditEventsJsonl
tags:
- Audit
x-forge-audience: public_headless
x-forge-capability-id: audit.export
x-forge-required-permission: audit.view
x-forge-required-scopes:
- audit:read
x-forge-risk-tier: sensitive_read
x-forge-stability: beta
x-forge-pagination: bounded_export
parameters:
- $ref: '#/components/parameters/OrganizationId'
- name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 200
- name: offset
in: query
schema:
type: integer
minimum: 0
- name: cursor
in: query
schema:
type: string
- name: action
in: query
schema:
type: string
- name: actorType
in: query
schema:
type: string
- name: actorConsoleUserId
in: query
schema:
type: string
- name: targetType
in: query
schema:
type: string
- name: targetId
in: query
schema:
type: string
- name: occurredAfter
in: query
schema:
type: string
format: date-time
- name: occurredBefore
in: query
schema:
type: string
format: date-time
responses:
'200':
description: One bounded page of normalized audit events in JSON Lines format. Follow X-Forge-Next-Cursor until X-Forge-Completeness is complete.
headers:
X-Forge-Completeness:
required: true
schema:
type: string
enum:
- complete
- partial
X-Forge-Next-Cursor:
schema:
type: string
X-Forge-Result-Count:
required: true
schema:
type: integer
X-Forge-Total-Matching:
required: true
schema:
type: integer
content:
application/x-ndjson:
schema:
type: string
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'403':
$ref: '#/components/responses/Error'
summary: Export audit events JSONL
description: Export normalized API, CLI, MCP, service-account, and built-in-agent audit actions as JSON Lines for SIEM and webhook consumers.
/api/headless/v1/organizations/{organizationId}/audit/anomalies:
get:
operationId: listHeadlessAuditAnomalies
tags:
- Audit
x-forge-audience: public_headless
x-forge-capability-id: audit.anomalies
x-forge-required-permission: audit.view
x-forge-required-scopes:
- audit:read
x-forge-risk-tier: sensitive_read
x-forge-stability: beta
x-forge-pagination: bounded_query
parameters:
- $ref: '#/components/parameters/OrganizationId'
responses:
'200':
description: Bounded headless anomaly indicators.
content:
application/json:
schema:
type: object
required:
- anomalies
- count
properties:
anomalies:
type: array
items:
type: object
additionalProperties: true
count:
type: integer
window:
type: object
additionalProperties: true
'401':
$ref: '#/components/responses/Error'
'403':
$ref: '#/components/responses/Error'
summary: List audit anomalies
description: Query bounded anomaly indicators for stale service accounts, unusual MCP or built-in-agent actions, broad fleet actions, repeated denials, and overbroad scopes.
components:
schemas:
HeadlessAuditEventListResponse:
type: object
required:
- events
properties:
events:
type: array
items:
$ref: '#/components/schemas/HeadlessAuditEvent'
totalCount:
type: integer
nextCursor:
type: string
HeadlessAuditEvent:
type: object
required:
- id
- organizationId
- action
- actorType
- beforeValues
- afterValues
- metadata
- occurredAt
- createdAt
properties:
id:
type: string
organizationId:
type: string
action:
type: string
actorType:
type: string
actorConsoleUserId:
type: string
actorRole:
type: string
actorDisplay:
type: string
targetType:
type: string
targetId:
type: string
targetDisplay:
type: string
beforeValues:
type: object
additionalProperties: true
afterValues:
type: object
additionalProperties: true
metadata:
type: object
additionalProperties: true
requestId:
type: string
ipAddress:
type: string
userAgent:
type: string
occurredAt:
type: string
format: date-time
createdAt:
type: string
format: date-time
MessageResponse:
type: object
required:
- message
properties:
message:
type: string
parameters:
OrganizationId:
name: organizationId
in: path
required: true
schema:
type: string
responses:
Error:
description: Stable Forge error envelope.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
securitySchemes:
serviceAccountBearer:
type: http
scheme: bearer
bearerFormat: Forge service-account or delegated OAuth access token
description: Enter a Forge service-account token or delegated OAuth access token. Mintlify adds the Bearer prefix.
x-forge-audience: public_headless
x-forge-stability: beta