Inforcer Audit API
Endpoints for viewing activity log events in the system
Endpoints for viewing activity log events in the system
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/inforcer:inforcer-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:
version: 1.0.0
title: inforcer | Public Audit API
description: The inforcer Public API built for developers
contact:
email: engineering@inforcer.com
name: Engineering
url: https://inforcer.com
servers:
- url: http://localhost:7072/api
security:
- apiKeyAuth: []
tags:
- name: Audit
description: Endpoints for viewing activity log events in the system
paths:
/beta/auditEvents/eventTypes:
get:
summary: Get event types
description: Retrieves a list of the types of events returned by the activity log
tags:
- Audit
operationId: getEventTypes
responses:
'200':
description: A list of event types
content:
application/json:
schema:
$ref: '#/components/schemas/eventTypesResponse'
'401':
$ref: '#/components/responses/unauthorized'
'403':
$ref: '#/components/responses/forbidden'
'500':
$ref: '#/components/responses/internalServerError'
/beta/auditEvents/search:
post:
summary: Search activity log
description: Searches the activity log based on the provided criteria. Returns a list of matching activity log events.
tags:
- Audit
operationId: searchAuditEvents
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/searchAuditEventsRequest'
example:
eventTypes:
- authentication
- failedAuthentication
dateFrom: '2026-02-01T00:00:00Z'
dateTo: '2026-02-26T23:59:59Z'
pageSize: 50
responses:
'200':
description: The activity log events that were retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/searchAuditEventsResponse'
'400':
$ref: '#/components/responses/invalidRequest'
'401':
$ref: '#/components/responses/unauthorized'
'403':
$ref: '#/components/responses/forbidden'
'500':
$ref: '#/components/responses/internalServerError'
components:
schemas:
eventTypesResponse:
type: object
additionalProperties: false
allOf:
- $ref: '#/components/schemas/baseResponseEnvelope'
- type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/eventType'
searchAuditEventsRequest:
type: object
additionalProperties: false
properties:
user:
type:
- string
- 'null'
description: A user to filter the events by
eventTypes:
type:
- array
- 'null'
description: A list of event types to filter the events by
items:
type: string
dateFrom:
type:
- string
- 'null'
description: The start of a date range to filter the events by
format: date-time
dateTo:
type:
- string
- 'null'
description: The end of a date range to filter the events by
format: date-time
pageSize:
type:
- integer
- 'null'
description: The maximum number of items to return at a time, up to a maximum of 100. If there are more items to return than will fit in a page then a continuation token will be returned.
format: int32
minimum: 1
maximum: 100
default: 25
continuationToken:
type:
- string
- 'null'
description: A token to continue a previous search in another page
auditEvent:
type: object
additionalProperties: false
properties:
id:
type: string
format: guid
description: The unique identifier for the activity log event
correlationId:
type:
- string
- 'null'
format: guid
description: The correlation ID for the activity log event, used to group related events together
clientId:
type: integer
description: The client tenant ID associated with the event
relType:
type:
- string
- 'null'
description: The type of the related entity for the event, if applicable
relId:
type:
- string
- 'null'
description: The ID of the related entity for the event, if applicable
eventType:
type: string
description: The type of the event
message:
type: string
description: A message associated with the event
deprecated: true
code:
type: string
description: A code associated with the event
user:
type: string
description: The user associated with the event
timestamp:
type:
- string
- 'null'
format: date-time
description: The time the event occurred
metadata:
description: A dynamic object containing information related to the audit event
type:
- object
- 'null'
additionalProperties: true
baseResponseEnvelope:
type: object
description: The common properties of responses
additionalProperties: false
properties:
success:
type: boolean
description: Whether the request was successful
message:
type:
- string
- 'null'
description: An optional message
errors:
type: array
description: Any errors that occurred during the request
default: []
items:
type: string
required:
- success
- message
- errors
errorResponse:
type: object
description: The response to a request that failed
additionalProperties: false
allOf:
- $ref: '#/components/schemas/baseResponseEnvelope'
- type: object
additionalProperties: false
properties:
data:
type: object
default: {}
errorCode:
type: string
description: The error code for the failure
searchAuditEventsResponseData:
type: object
description: Activity log events and pagination info
additionalProperties: false
properties:
items:
type: array
description: The activity log events
items:
$ref: '#/components/schemas/auditEvent'
continuationToken:
type:
- string
- 'null'
description: A token that can be used to continue the search if the page size is exceeded
eventType:
type: object
description: A type that an event may have
additionalProperties: false
properties:
name:
type: string
description: name of the event type
searchAuditEventsResponse:
type: object
additionalProperties: false
allOf:
- $ref: '#/components/schemas/baseResponseEnvelope'
- type: object
additionalProperties: false
properties:
data:
$ref: '#/components/schemas/searchAuditEventsResponseData'
responses:
forbidden:
description: You are not permitted to carry out this operation
content:
application/json:
schema:
$ref: '#/components/schemas/errorResponse'
examples:
forbidden:
value:
success: false
message: Client tenant verification failed
errors:
- First years are not permitted to access the Forbidden Forest
invalidRequest:
description: The request was invalid
content:
application/json:
schema:
$ref: '#/components/schemas/errorResponse'
examples:
badRequest:
value:
success: false
message: One or more validation errors occurred
errors:
- userId is required and must be a valid integer
internalServerError:
description: An unexpected error occurred
content:
application/json:
schema:
$ref: '#/components/schemas/errorResponse'
examples:
Internal Server Error:
value:
success: false
message: Something went pop
errors:
- It was the weasel
unauthorized:
description: You are not authorized to access this endpoint
content:
application/json:
schema:
$ref: '#/components/schemas/errorResponse'
examples:
unauthorized:
value:
success: false
message: Your credentials are invalid or you are not logged in
errors:
- Please verify your credentials
securitySchemes:
apiKeyAuth:
type: apiKey
in: header
name: Inf-Api-Key
description: The API key for authentication.