Timbrix Audit Logs API
The audit-logs API from Timbrix — 4 operation(s) for audit-logs.
The audit-logs API from Timbrix — 4 operation(s) for audit-logs.
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/timbrix-mx:timbrix-mx-audit-logs-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: Timbrix Audit Logs API
description: 'API de facturación electrónica CFDI 4.0 para México, con servidor OAuth2 para gestionar organizaciones, miembros y webhooks. Compatible con agentes de IA — ver la extensión `x-ai-agent-friendly` en la raíz de esta spec.
REST API with OAuth2 server for managing organizations, members, and webhooks.'
version: '1.0'
contact: {}
servers: []
tags:
- name: Audit Logs
paths:
/audit-logs:
get:
description: Who did what and when in the organization, newest first, paginated by cursor. API key needs `read:audit-logs`; a session must be owner or admin.
operationId: AuditLogsController_list
parameters:
- name: from
required: false
in: query
description: Inicio (ISO 8601). Una fecha sola (YYYY-MM-DD) cuenta desde las 00:00 hora de México.
schema:
example: '2026-10-01'
type: string
- name: to
required: false
in: query
description: Fin (ISO 8601), inclusivo. Una fecha sola (YYYY-MM-DD) incluye todo ese día en hora de México.
schema:
example: '2026-10-31'
type: string
- name: action
required: false
in: query
description: Lista de acciones del catálogo separadas por comas.
schema:
example: cfdi.stamped,cancellation.requested
type: string
- name: actorUserId
required: false
in: query
description: Persona que hizo la acción
schema:
type: string
- name: actorApiKeyId
required: false
in: query
description: API key con la que se hizo la acción
schema:
type: string
- name: resourceType
required: false
in: query
schema:
type: string
enum:
- cfdi
- customer
- product
- certificate
- member
- api_key
- webhook
- oauth_app
- organization
- report
- audit_log
- name: resourceId
required: false
in: query
description: UUID fiscal, id interno o RFC, según el recurso
schema:
type: string
- name: cursor
required: false
in: query
description: nextCursor de la página anterior
schema:
type: string
- name: limit
required: false
in: query
schema:
minimum: 1
maximum: 100
default: 50
type: number
- name: X-Organization-Id
in: header
description: Required for Supabase session auth (owner or admin). Ignored with an API key.
required: false
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/ListAuditLogsResponseDto'
'400':
description: Filtro o cursor inválido
security:
- apiKey: []
- bearer: []
summary: List audit log entries
tags:
- Audit Logs
/audit-logs/export.csv:
get:
description: Same filters as the list. Dates in Mexico City time. Up to 50000 rows; narrow the filters if you hit the limit.
operationId: AuditLogsController_exportCsv
parameters:
- name: from
required: false
in: query
description: Inicio (ISO 8601). Una fecha sola (YYYY-MM-DD) cuenta desde las 00:00 hora de México.
schema:
example: '2026-10-01'
type: string
- name: to
required: false
in: query
description: Fin (ISO 8601), inclusivo. Una fecha sola (YYYY-MM-DD) incluye todo ese día en hora de México.
schema:
example: '2026-10-31'
type: string
- name: action
required: false
in: query
description: Lista de acciones del catálogo separadas por comas.
schema:
example: cfdi.stamped,cancellation.requested
type: string
- name: actorUserId
required: false
in: query
description: Persona que hizo la acción
schema:
type: string
- name: actorApiKeyId
required: false
in: query
description: API key con la que se hizo la acción
schema:
type: string
- name: resourceType
required: false
in: query
schema:
type: string
enum:
- cfdi
- customer
- product
- certificate
- member
- api_key
- webhook
- oauth_app
- organization
- report
- audit_log
- name: resourceId
required: false
in: query
description: UUID fiscal, id interno o RFC, según el recurso
schema:
type: string
- name: X-Organization-Id
in: header
description: Required for Supabase session auth (owner or admin). Ignored with an API key.
required: false
schema:
type: string
responses:
'200':
description: CSV de la bitácora
'422':
description: 'AUDIT_EXPORT_TOO_LARGE: más de 50000 registros'
security:
- apiKey: []
- bearer: []
summary: Export audit log entries as CSV
tags:
- Audit Logs
/audit-logs/verify:
get:
description: 'Recomputes the organization''s hash chain. `valid: false` and `firstBrokenSeq` point at the first altered, removed or inserted entry.'
operationId: AuditLogsController_verify
parameters:
- name: X-Organization-Id
in: header
description: Required for Supabase session auth (owner or admin). Ignored with an API key.
required: false
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/AuditChainVerificationDto'
security:
- apiKey: []
- bearer: []
summary: Verify the audit log hash chain
tags:
- Audit Logs
/audit-logs/{id}:
get:
operationId: AuditLogsController_get
parameters:
- name: id
required: true
in: path
schema:
type: string
- name: X-Organization-Id
in: header
description: Required for Supabase session auth (owner or admin). Ignored with an API key.
required: false
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/AuditLogItemDto'
'404':
description: Not found in this organization
security:
- apiKey: []
- bearer: []
summary: Get one audit log entry
tags:
- Audit Logs
components:
schemas:
AuditLogItemDto:
type: object
properties:
id:
type: string
organizationId:
type: string
seq:
type: number
description: Consecutivo de la entrada en la organización
occurredAt:
type: string
example: '2026-10-26T05:30:00.000Z'
action:
type: string
enum:
- cfdi.stamped
- cfdi.stamp_failed
- cfdi.xml_downloaded
- cfdi.pdf_downloaded
- cfdi.cancellation_receipt_downloaded
- cfdi.emailed
- cancellation.requested
- cancellation.accepted
- cancellation.rejected
- cancellation.pending
- certificate.uploaded
- certificate.rotated
- certificate.deleted
- customer.created
- customer.updated
- customer.deleted
- product.created
- product.updated
- product.deleted
- product.imported
- organization.updated
- organization.legal_data_updated
- organization.branding_updated
- organization.closed
- organization.reopened
- organization.deleted
- organization.plan_changed
- member.invited
- member.invite_cancelled
- member.joined
- member.invite_declined
- member.role_changed
- member.removed
- api_key.created
- api_key.activated
- api_key.deactivated
- api_key.deleted
- webhook.created
- webhook.updated
- webhook.deleted
- oauth_app.created
- oauth_app.updated
- oauth_app.deleted
- report.exported
- audit_log.exported
result:
type: string
enum:
- success
- failure
actorType:
type: string
enum:
- user
- api_key
- system
actorUserId:
type:
- object
- 'null'
actorApiKeyId:
type:
- object
- 'null'
actorLabel:
type:
- object
- 'null'
description: Email de la persona, o nombre y preview de la llave
resourceType:
type: string
enum:
- cfdi
- customer
- product
- certificate
- member
- api_key
- webhook
- oauth_app
- organization
- report
- audit_log
resourceId:
type:
- object
- 'null'
channel:
type:
- object
- 'null'
example: api
environment:
type:
- string
- 'null'
enum:
- production
- sandbox
- null
ip:
type:
- object
- 'null'
description: IP observada por la API
clientIp:
type:
- object
- 'null'
description: IP reportada por el navegador (informativa, no verificada)
userAgent:
type:
- object
- 'null'
requestId:
type:
- object
- 'null'
changedFields:
type:
- array
- 'null'
items:
type: string
metadata:
type: object
additionalProperties: true
required:
- id
- organizationId
- seq
- occurredAt
- action
- result
- actorType
- resourceType
- metadata
ListAuditLogsResponseDto:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/AuditLogItemDto'
nextCursor:
type:
- object
- 'null'
required:
- data
AuditChainVerificationDto:
type: object
properties:
valid:
type: boolean
description: true si ninguna entrada fue alterada ni borrada
checkedEntries:
type: number
example: 120
firstBrokenSeq:
type:
- object
- 'null'
description: seq de la primera entrada que rompe la cadena
required:
- valid
- checkedEntries
securitySchemes:
bearer:
scheme: bearer
bearerFormat: JWT
type: http
apiKey:
type: apiKey
in: header
name: X-API-Key
description: API Key for authentication (sk_test_... for sandbox, sk_live_... for production)
x-ai-agent-friendly: true