Tedix Audit API
The audit API from Tedix — 3 operation(s) for audit.
The audit API from Tedix — 3 operation(s) for 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/tedix-dev:tedix-dev-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: Tedix Audit API
version: 1.0.0
description: Multi-tenant AI app platform API. Build AI-powered apps by mapping your API endpoints to MCP tools with pre-built widget layouts.
contact:
name: Tedix Support
url: https://tedix.dev
servers:
- url: https://api.tedix.dev/v1
description: Production
- url: http://localhost:8787/v1
description: Local Development
security:
- bearerAuth: []
- apiKey: []
tags:
- name: Audit
paths:
/audit:
get:
operationId: audit.search
summary: Search audit events
description: Search audit events for the current organization with optional filters and pagination
tags:
- Audit
parameters:
- in: query
name: actorId
schema:
type: string
allowEmptyValue: true
allowReserved: true
- in: query
name: action
schema:
type: string
allowEmptyValue: true
allowReserved: true
- in: query
name: resourceType
schema:
type: string
allowEmptyValue: true
allowReserved: true
- in: query
name: resourceId
schema:
type: string
allowEmptyValue: true
allowReserved: true
- in: query
name: startDate
schema:
type: string
format: date-time
pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
allowEmptyValue: true
allowReserved: true
- in: query
name: endDate
schema:
type: string
format: date-time
pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
allowEmptyValue: true
allowReserved: true
- in: query
name: limit
schema:
default: 50
type: number
minimum: 1
maximum: 100
allowEmptyValue: true
allowReserved: true
- in: query
name: offset
schema:
default: 0
type: number
minimum: 0
allowEmptyValue: true
allowReserved: true
- in: query
name: cursor
schema:
type: string
maxLength: 2048
allowEmptyValue: true
allowReserved: true
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
id:
type: string
organizationId:
type: string
actorId:
type: string
actorType:
type: string
enum:
- user
- service
- tedi
- m2m
- api_key
- anonymous
- external_agent
- kernel
action:
type: string
resourceType:
type: string
resourceId:
type:
- string
- 'null'
metadata:
anyOf:
- {}
- type: 'null'
ipAddress:
type:
- string
- 'null'
userAgent:
type:
- string
- 'null'
timestamp:
type: string
format: date-time
pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
required:
- id
- organizationId
- actorId
- actorType
- action
- resourceType
- resourceId
- metadata
- ipAddress
- userAgent
- timestamp
additionalProperties: false
pagination:
type: object
properties:
limit:
type: number
offset:
type: number
total:
type: number
hasMore:
type: boolean
nextCursor:
type:
- string
- 'null'
required:
- limit
- offset
- total
- hasMore
additionalProperties: false
required:
- data
- pagination
additionalProperties: false
'400':
description: Invalid request
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/BadRequest'
- $ref: '#/components/schemas/UndefinedError'
'401':
description: Authentication required
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/Unauthorized'
- $ref: '#/components/schemas/UndefinedError'
'403':
description: Insufficient permissions
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/Forbidden'
- $ref: '#/components/schemas/UndefinedError'
'404':
description: Resource not found
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/NotFound'
- $ref: '#/components/schemas/UndefinedError'
'409':
description: Resource state changed
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/Conflict'
- $ref: '#/components/schemas/UndefinedError'
'422':
description: Request cannot be processed
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/UnprocessableContent'
- $ref: '#/components/schemas/UndefinedError'
'429':
description: Rate limit exceeded
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/TooManyRequests'
- $ref: '#/components/schemas/UndefinedError'
'500':
description: Internal server error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/InternalServerError'
- $ref: '#/components/schemas/UndefinedError'
'502':
description: Upstream service failed
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/BadGateway'
- $ref: '#/components/schemas/UndefinedError'
'503':
description: Service unavailable
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/ServiceUnavailable'
- $ref: '#/components/schemas/UndefinedError'
/audit/export:
get:
operationId: audit.export
summary: Export audit events
description: Download audit events for the current organization as CSV or JSON Lines, using the same filters as audit search. Returns at most `limit` events (default 5000, maximum 10000), newest first. When matching events were left out, the filename ends `-truncated-` and JSON Lines end with an `_export` marker line.
tags:
- Audit
parameters:
- in: query
name: actorId
schema:
type: string
allowEmptyValue: true
allowReserved: true
- in: query
name: action
schema:
type: string
allowEmptyValue: true
allowReserved: true
- in: query
name: resourceType
schema:
type: string
allowEmptyValue: true
allowReserved: true
- in: query
name: resourceId
schema:
type: string
allowEmptyValue: true
allowReserved: true
- in: query
name: startDate
schema:
type: string
format: date-time
pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
allowEmptyValue: true
allowReserved: true
- in: query
name: endDate
schema:
type: string
format: date-time
pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
allowEmptyValue: true
allowReserved: true
- in: query
name: format
schema:
default: csv
type: string
enum:
- csv
- jsonl
allowEmptyValue: true
allowReserved: true
- in: query
name: limit
schema:
default: 5000
type: integer
minimum: 1
maximum: 10000
allowEmptyValue: true
allowReserved: true
responses:
'200':
description: OK
content:
'*/*':
schema:
type: string
format: binary
contentEncoding: binary
'400':
description: Invalid request
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/BadRequest'
- $ref: '#/components/schemas/UndefinedError'
'401':
description: Authentication required
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/Unauthorized'
- $ref: '#/components/schemas/UndefinedError'
'403':
description: Insufficient permissions
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/Forbidden'
- $ref: '#/components/schemas/UndefinedError'
'404':
description: Resource not found
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/NotFound'
- $ref: '#/components/schemas/UndefinedError'
'409':
description: Resource state changed
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/Conflict'
- $ref: '#/components/schemas/UndefinedError'
'422':
description: Request cannot be processed
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/UnprocessableContent'
- $ref: '#/components/schemas/UndefinedError'
'429':
description: Rate limit exceeded
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/TooManyRequests'
- $ref: '#/components/schemas/UndefinedError'
'500':
description: Internal server error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/InternalServerError'
- $ref: '#/components/schemas/UndefinedError'
'502':
description: Upstream service failed
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/BadGateway'
- $ref: '#/components/schemas/UndefinedError'
'503':
description: Service unavailable
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/ServiceUnavailable'
- $ref: '#/components/schemas/UndefinedError'
/audit/resource/{resourceType}/{resourceId}:
get:
operationId: audit.getByResource
summary: Get audit events by resource
description: Get all audit events for a specific resource type and ID
tags:
- Audit
parameters:
- in: path
required: true
name: resourceType
schema:
type: string
minLength: 1
- in: path
required: true
name: resourceId
schema:
type: string
minLength: 1
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
id:
type: string
organizationId:
type: string
actorId:
type: string
actorType:
type: string
enum:
- user
- service
- tedi
- m2m
- api_key
- anonymous
- external_agent
- kernel
action:
type: string
resourceType:
type: string
resourceId:
type:
- string
- 'null'
metadata:
anyOf:
- {}
- type: 'null'
ipAddress:
type:
- string
- 'null'
userAgent:
type:
- string
- 'null'
timestamp:
type: string
format: date-time
pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
required:
- id
- organizationId
- actorId
- actorType
- action
- resourceType
- resourceId
- metadata
- ipAddress
- userAgent
- timestamp
additionalProperties: false
required:
- data
additionalProperties: false
'400':
description: Invalid request
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/BadRequest'
- $ref: '#/components/schemas/UndefinedError'
'401':
description: Authentication required
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/Unauthorized'
- $ref: '#/components/schemas/UndefinedError'
'403':
description: Insufficient permissions
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/Forbidden'
- $ref: '#/components/schemas/UndefinedError'
'404':
description: Resource not found
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/NotFound'
- $ref: '#/components/schemas/UndefinedError'
'409':
description: Resource state changed
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/Conflict'
- $ref: '#/components/schemas/UndefinedError'
'422':
description: Request cannot be processed
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/UnprocessableContent'
- $ref: '#/components/schemas/UndefinedError'
'429':
description: Rate limit exceeded
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/TooManyRequests'
- $ref: '#/components/schemas/UndefinedError'
'500':
description: Internal server error
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/InternalServerError'
- $ref: '#/components/schemas/UndefinedError'
'502':
description: Upstream service failed
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/BadGateway'
- $ref: '#/components/schemas/UndefinedError'
'503':
description: Service unavailable
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/ServiceUnavailable'
- $ref: '#/components/schemas/UndefinedError'
components:
schemas:
BadGateway:
title: BAD_GATEWAY
type: object
properties:
defined:
const: true
code:
const: BAD_GATEWAY
message:
type: string
data: {}
required:
- defined
- code
- message
BadRequest:
title: BAD_REQUEST
type: object
properties:
defined:
const: true
code:
const: BAD_REQUEST
message:
type: string
data:
type: object
properties:
details:
type: string
additionalProperties: false
required:
- defined
- code
- message
Unauthorized:
title: UNAUTHORIZED
type: object
properties:
defined:
const: true
code:
const: UNAUTHORIZED
message:
type: string
data: {}
required:
- defined
- code
- message
Conflict:
title: CONFLICT
type: object
properties:
defined:
const: true
code:
const: CONFLICT
message:
type: string
data: {}
required:
- defined
- code
- message
Forbidden:
title: FORBIDDEN
type: object
properties:
defined:
const: true
code:
const: FORBIDDEN
message:
type: string
data: {}
required:
- defined
- code
- message
NotFound:
title: NOT_FOUND
type: object
properties:
defined:
const: true
code:
const: NOT_FOUND
message:
type: string
data: {}
required:
- defined
- code
- message
ServiceUnavailable:
title: SERVICE_UNAVAILABLE
type: object
properties:
defined:
const: true
code:
const: SERVICE_UNAVAILABLE
message:
type: string
data: {}
required:
- defined
- code
- message
UnprocessableContent:
title: UNPROCESSABLE_CONTENT
type: object
properties:
defined:
const: true
code:
const: UNPROCESSABLE_CONTENT
message:
type: string
data: {}
required:
- defined
- code
- message
InternalServerError:
title: INTERNAL_SERVER_ERROR
type: object
properties:
defined:
const: true
code:
const: INTERNAL_SERVER_ERROR
message:
type: string
data: {}
required:
- defined
- code
- message
UndefinedError:
title: UndefinedError
type: object
properties:
defined:
const: false
code:
type: string
message:
type: string
data: {}
required:
- defined
- code
- message
TooManyRequests:
title: TOO_MANY_REQUESTS
type: object
properties:
defined:
const: true
code:
const: TOO_MANY_REQUESTS
message:
type: string
data:
type: object
properties:
retryAfter:
type: number
additionalProperties: false
required:
- defined
- code
- message
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Descope JWT token (user or M2M)
apiKey:
type: apiKey
in: header
name: X-API-Key
description: Organization-scoped API key (sk_ prefix)
tediJwt:
type: http
scheme: bearer
bearerFormat: JWT
description: Descope tedi JWT (container → API, exchanged from access key)
externalDocs:
description: Tedix API reference
url: https://api.tedix.dev/docs