Onplana Audit Logs API

Compliance-grade audit trail (ENTERPRISE+, OWNER/ADMIN only)

GitHub OpenAPI

Operations 3

GET /audit-logs Compliance audit trail #
GET /audit-logs/grouped Audit log counts grouped by action / resource / actor #
GET /audit-logs/stats Audit log totals #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/onplana-com:onplana-com-audit-logs-api"
All apis
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.

Get an API 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 Specification

onplana-com-audit-logs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Onplana Audit Logs API
  version: 1.0.0
  description: AI-native Project Management System REST API. All org-scoped routes require the `X-Organization-Id` header. Most routes require a Bearer JWT obtained from `/auth/login`.
servers:
- url: /api
security:
- bearerAuth: []
- patAuth: []
tags:
- name: Audit Logs
  description: Compliance-grade audit trail (ENTERPRISE+, OWNER/ADMIN only)
paths:
  /audit-logs:
    get:
      tags:
      - Audit Logs
      summary: Compliance audit trail
      description: 'OWNER / ADMIN only. Plan: `auditLogs` (ENTERPRISE+). A SIEM (Microsoft Sentinel, Splunk, Elastic, Datadog) reads it with a personal access token carrying the `AUDIT_READ` scope, when the operator has turned that on: the response is then `{ events, nextCursor, hasMore }`, oldest first, read with `since` (ISO date and time) and `cursor` (the previous `nextCursor`), `limit` default 100, max 1000, 60 requests a minute per token. No other route accepts an `AUDIT_READ` token.'
      parameters:
      - $ref: '#/components/parameters/OrgHeader'
      - name: since
        in: query
        required: false
        schema:
          type: string
        description: 'AUDIT_READ token only: ISO date and time, rows at or after it'
      - name: until
        in: query
        required: false
        schema:
          type: string
        description: 'AUDIT_READ token only: ISO date and time, rows before it'
      - name: action
        in: query
        required: false
        schema:
          type: string
        description: Filter by action verb (e.g. CREATE_PROJECT, DELETE_TASK)
      - name: resource
        in: query
        required: false
        schema:
          type: string
        description: Filter by resource type (e.g. PROJECT, TASK, USER)
      - name: actorId
        in: query
        required: false
        schema:
          type: string
      - name: from
        in: query
        required: false
        schema:
          type: string
        description: ISO date, only logs at or after this timestamp
      - name: to
        in: query
        required: false
        schema:
          type: string
        description: ISO date, only logs at or before this timestamp
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: Default 100, max 500
      - name: cursor
        in: query
        required: false
        schema:
          type: string
        description: Pagination cursor returned in the previous response
      responses:
        '200':
          description: '{ logs, total, actions, resources, nextCursor }'
        '400':
          description: Validation error
        '401':
          description: Unauthorized - missing or invalid JWT
        '402':
          description: Plan gate - feature not available on current plan
        '403':
          description: Forbidden - insufficient role
      operationId: getAuditLogs
      x-operation-id-source: derived
  /audit-logs/grouped:
    get:
      tags:
      - Audit Logs
      summary: Audit log counts grouped by action / resource / actor
      parameters:
      - $ref: '#/components/parameters/OrgHeader'
      - name: groupBy
        in: query
        required: true
        schema:
          type: string
        description: action | resource | actor
      - name: from
        in: query
        required: false
        schema:
          type: string
      - name: to
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: '{ groups: [{ key, count }] }'
        '400':
          description: Validation error
        '401':
          description: Unauthorized - missing or invalid JWT
        '402':
          description: Plan gate - feature not available on current plan
        '403':
          description: Forbidden - insufficient role
      operationId: getAuditLogsGrouped
      x-operation-id-source: derived
  /audit-logs/stats:
    get:
      tags:
      - Audit Logs
      summary: Audit log totals
      parameters:
      - $ref: '#/components/parameters/OrgHeader'
      responses:
        '200':
          description: '{ totalEvents, last24h, last7d, last30d }'
        '400':
          description: Validation error
        '401':
          description: Unauthorized - missing or invalid JWT
        '402':
          description: Plan gate - feature not available on current plan
        '403':
          description: Forbidden - insufficient role
      operationId: getAuditLogsStats
      x-operation-id-source: derived
components:
  parameters:
    OrgHeader:
      name: X-Organization-Id
      in: header
      required: true
      description: UUID of the active organization. Sets org context for all scoped operations.
      schema:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    patAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Personal Access Token: `Authorization: Bearer pat_<token>`. Org context is embedded in the token - no `X-Organization-Id` header required.'
    oauthApp:
      type: oauth2
      description: Third-party OAuth app (confidential client). Register the app under Settings > Developer > OAuth apps; the person approving picks the workspace the token acts in. Tokens last 90 days and extend while in use; there is no refresh token, so a dormant connection re-consents.
      flows:
        authorizationCode:
          authorizationUrl: /oauth/authorize
          tokenUrl: /oauth/token
          scopes:
            tasks: Read and write the tasks assigned to the person, read their projects, log their time.
            schedule: Read projects and create or update them (publish a schedule).
            mcp: The MCP tool surface, as a member-capped agent persona.
            webhooks: Create, list, change and delete the app's own webhook subscriptions.