Permit.io Audit Elements Data API
The Audit Elements Data API from Permit.io, for audit elements data.
The Audit Elements Data API from Permit.io, for audit elements data.
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/permitio:permitio-audit-elements-data-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: Permit.io Audit Elements Data API
description: Authorization as a service
version: 2.0.0
tags:
- name: Audit Elements Data
paths:
/v2/elements/{proj_id}/{env_id}/config/{elements_config_id}/data/audit_logs:
get:
tags:
- Audit Elements Data
summary: List audit logs
description: Lists audit logs for for specific elements config (tenant scope)
operationId: elements_list_audit_logs
security:
- HTTPBearer: []
parameters:
- name: proj_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
title: Proj Id
description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").'
example: my_project
- name: env_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
title: Env Id
description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").'
example: my_environment
- name: elements_config_id
in: path
required: true
schema:
type: string
description: 'Either the unique id of the elements_config, or the URL-friendly key of the elements_config (i.e: the "slug").'
title: Elements Config Id
description: 'Either the unique id of the elements_config, or the URL-friendly key of the elements_config (i.e: the "slug").'
example: my_elements_config
- name: search
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Text search for the email field
title: Search
description: Text search for the email field
- name: page
in: query
required: false
schema:
type: integer
minimum: 1
description: Page number of the results to fetch, starting at 1.
default: 1
title: Page
description: Page number of the results to fetch, starting at 1.
- name: per_page
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
description: The number of results per page (max 100).
default: 30
title: Per Page
description: The number of results per page (max 100).
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/LimitedPaginatedResult_AuditLogModel_'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
Engine:
type: string
enum:
- OPA
- AVP
- GENERIC
title: Engine
GenericEngineDecisionLog:
properties:
engine:
type: string
title: Engine
default: GENERIC
enum:
- GENERIC
timestamp:
type: string
format: date-time
title: Timestamp
decision:
type: boolean
title: Decision
decision_id:
type: string
format: uuid
title: Decision Id
process_time_ms:
type: integer
title: Process Time Ms
default: 0
query:
anyOf:
- type: string
- type: 'null'
title: Query
user_key:
anyOf:
- type: string
- type: 'null'
title: User Key
user_email:
anyOf:
- type: string
- type: 'null'
title: User Email
user_name:
anyOf:
- type: string
- type: 'null'
title: User Name
action:
anyOf:
- type: string
- type: 'null'
title: Action
resource_type:
anyOf:
- type: string
- type: 'null'
title: Resource Type
tenant:
anyOf:
- type: string
- type: 'null'
title: Tenant
input:
title: Input
result:
title: Result
context:
title: Context
additionalProperties: false
type: object
required:
- timestamp
- decision
title: GenericEngineDecisionLog
description: 'Generic decision log format for external or custom integrations.
Accepts a flat JSON payload with explicit fields rather than requiring
engine-specific nested structures. Unknown fields are rejected to prevent
unbounded storage growth.'
OPALabels:
properties:
id:
type: string
format: uuid
title: Id
version:
type: string
title: Version
additionalProperties: true
type: object
required:
- id
- version
title: OPALabels
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
AuditLogModel:
properties:
id:
type: string
format: uuid
title: Id
raw_data:
anyOf:
- $ref: '#/components/schemas/OPAEngineDecisionLog'
- $ref: '#/components/schemas/AVPEngineDecisionLog'
- $ref: '#/components/schemas/GenericEngineDecisionLog'
- $ref: '#/components/schemas/DummyEngineModel'
title: Raw Data
hidden_from_schema: true
timestamp:
type: string
format: date-time
title: Timestamp
created_at:
type: string
format: date-time
title: Created At
hidden_from_schema: true
query:
anyOf:
- type: string
- type: 'null'
title: Query
user_key:
anyOf:
- type: string
- type: 'null'
title: User Key
user_email:
anyOf:
- type: string
- type: 'null'
title: User Email
user_name:
anyOf:
- type: string
- type: 'null'
title: User Name
resource_type:
anyOf:
- type: string
- type: 'null'
title: Resource Type
tenant:
anyOf:
- type: string
- type: 'null'
title: Tenant
action:
anyOf:
- type: string
- type: 'null'
title: Action
decision:
anyOf:
- type: boolean
- type: 'null'
title: Decision
reason:
anyOf:
- type: string
- type: 'null'
title: Reason
org_id:
type: string
format: uuid
title: Org Id
project_id:
type: string
format: uuid
title: Project Id
env_id:
type: string
format: uuid
title: Env Id
pdp_config_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Pdp Config Id
input:
title: Input
result:
title: Result
context:
title: Context
additionalProperties: false
type: object
required:
- id
- timestamp
- org_id
- project_id
- env_id
title: AuditLogModel
AVPEngineDecisionLog:
properties:
engine:
type: string
title: Engine
default: AVP
enum:
- AVP
timestamp:
type: string
format: date-time
title: Timestamp
tenant:
type: string
title: Tenant
process_time_ms:
anyOf:
- type: integer
- type: 'null'
title: Process Time Ms
input:
additionalProperties: true
type: object
title: Input
result:
additionalProperties: true
type: object
title: Result
additionalProperties: true
type: object
required:
- timestamp
- tenant
- input
- result
title: AVPEngineDecisionLog
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
OPAEngineDecisionLog:
properties:
engine:
type: string
title: Engine
default: OPA
enum:
- OPA
decision_id:
type: string
format: uuid
title: Decision Id
labels:
$ref: '#/components/schemas/OPALabels'
timestamp:
type: string
format: date-time
title: Timestamp
path:
type: string
title: Path
input:
title: Input
result:
title: Result
metrics:
$ref: '#/components/schemas/OPAMetrics'
additionalProperties: true
type: object
required:
- decision_id
- labels
- timestamp
- path
- metrics
title: OPAEngineDecisionLog
DummyEngineModel:
properties:
engine:
anyOf:
- $ref: '#/components/schemas/Engine'
- type: 'null'
timestamp:
type: string
format: date-time
title: Timestamp
additionalProperties: true
type: object
title: DummyEngineModel
description: dummy engine class in case we couldn't parse the log but we didn't want to drop it
OPAMetrics:
properties:
timer_rego_input_parse_ns:
anyOf:
- type: integer
- type: 'null'
title: Timer Rego Input Parse Ns
timer_rego_query_parse_ns:
anyOf:
- type: integer
- type: 'null'
title: Timer Rego Query Parse Ns
timer_rego_query_compile_ns:
anyOf:
- type: integer
- type: 'null'
title: Timer Rego Query Compile Ns
timer_rego_query_eval_ns:
anyOf:
- type: integer
- type: 'null'
title: Timer Rego Query Eval Ns
timer_rego_module_parse_ns:
anyOf:
- type: integer
- type: 'null'
title: Timer Rego Module Parse Ns
timer_rego_module_compile_ns:
anyOf:
- type: integer
- type: 'null'
title: Timer Rego Module Compile Ns
timer_server_handler_ns:
anyOf:
- type: integer
- type: 'null'
title: Timer Server Handler Ns
additionalProperties: true
type: object
title: OPAMetrics
LimitedPaginatedResult_AuditLogModel_:
properties:
data:
items:
$ref: '#/components/schemas/AuditLogModel'
type: array
title: Data
description: List of Audit Log Models
total_count:
type: integer
minimum: 0.0
title: Total Count
description: The number of matching results, including those past the first 10,000.
page_count:
type: integer
minimum: 0.0
title: Page Count
description: The number of pages you can fetch at the requested `per_page`. Only pages that end within the first 10,000 results can be fetched, so this can be less than `ceil(total_count / per_page)`. It is 0 when there are no results, and on a page past the last one.
default: 0
pagination_count:
type: integer
minimum: 0.0
title: Pagination Count
description: The number of matching results, capped at 10,000. Use `page_count` for the number of pages you can fetch.
additionalProperties: false
type: object
required:
- data
- total_count
- pagination_count
title: LimitedPaginatedResult[AuditLogModel]
securitySchemes:
HTTPBearer:
type: http
description: 'Authorization header, we support the bearer authentication scheme (see: RFC 6750)'
scheme: bearer
bearerFormat: JWT