SpringRoll Audit API

The append-only record of governed actions.

GitHub OpenAPI

Operations 1

GET /api/v1/tenants/{tenant}/audit-events List audit events #

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/springroll-dev:springroll-dev-audit-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

springroll-dev-audit-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SpringRoll Audit API
  version: 0.2.0
  summary: The Control Plane and App Portal for AI-built Applications
  description: 'Deploy AI-built applications safely, connect them to approved company data, and make them available to the right people.


    SpringRoll currently deploys to managed Vercel and Cloudflare.


    SpringRoll compares eligible Vercel and Cloudflare plans, selects the lowest-cost qualified fit, and records the estimate, assumptions, and limits.


    **Most agents should use MCP instead of this API.** The remote MCP endpoint at `/api/mcp` speaks Streamable HTTP, advertises its own authorization server, and exposes the same control plane as 23 tools with the workflow already encoded. See the Server Card at `/.well-known/mcp/server-card.json`. This document exists for integrations that cannot speak MCP.


    Every endpoint answers a single error envelope (`components/schemas/Error`) with a stable `code`, a `correlationId`, and, when the failure is recoverable, a `nextActions` list. Branch on `code`, never on prose.


    Manifest contract: `springboard.dev/v1alpha1`. Fetch `/api/v1/capabilities` for the current schema and a worked example.


    **Rate limits.** Every rate-limited response carries `RateLimit` and `RateLimit-Policy` (structured fields), the `RateLimit-Limit`/`-Remaining`/`-Reset` triplet, and `X-RateLimit-*`; a 429 adds `Retry-After`. Per 60-second window: 600 reads, 120 writes, 20 deployments, 30 unauthenticated requests. Limits are keyed on the authenticated identity where there is one and the network address otherwise.


    **Versioning.** The major version is the first path segment after `/api`; `v1` is current and changes only additively, so treat unknown response fields as forward compatibility. A retired version answers with `Deprecation` (RFC 9745) and `Sunset` (RFC 8594) headers for at least 365 days before it stops, then 410 Gone. Full policy: `/docs/api`.'
  contact:
    name: SpringRoll (M Intelligence Co., Ltd.)
    url: https://springroll.dev/contact
  termsOfService: https://springroll.dev/terms
  x-api-lifecycle:
    scheme: url-path
    description: 'The major version is the first path segment after /api. A breaking change gets a new segment; within a version, only additive changes are made: new fields, new optional parameters, new endpoints. Treat unknown response fields as forward compatibility, not as an error.'
    current: v1
    versions:
    - version: v1
      status: current
      basePath: /api/v1
      deprecationDate: null
      sunsetDate: null
      successor: null
    deprecation:
      noticeDays: 365
      description: A deprecated version keeps answering for at least 365 days after it is announced. From the moment it is deprecated, every response from it carries a Deprecation header (RFC 9745) with the date it was deprecated, a Sunset header (RFC 8594) with the date it stops answering, and a Link header with rel="deprecation" pointing at this policy and rel="successor-version" pointing at what to move to. After the sunset date the version answers 410 Gone with the standard error envelope.
      headers:
      - Deprecation
      - Sunset
      - Link
      policy: https://springroll.dev/docs/api
    mcp:
      description: MCP tool names are versioned by the server version, not by a path. A renamed or removed tool fails on tools/call rather than aliasing silently, because MCP has no deprecation channel for a tool name, and a silent alias would leave an agent using a vocabulary the documentation no longer describes. Read tools/list at the start of a session rather than hard-coding names.
      serverCard: https://springroll.dev/.well-known/mcp/server-card.json
servers:
- url: https://springroll.dev
  description: Production.
security:
- agentToken: []
tags:
- name: Audit
  description: The append-only record of governed actions.
paths:
  /api/v1/tenants/{tenant}/audit-events:
    get:
      operationId: listAuditEvents
      summary: List audit events
      description: The append-only record of governed actions, newest first. The table refuses UPDATE and DELETE at the database level, so what is returned here is what happened.
      tags:
      - Audit
      parameters:
      - name: tenant
        in: path
        required: true
        description: 'Organization slug or id. Always verified against the caller''s memberships: a tenant id in the path is not authorization.'
        schema:
          type: string
      - name: action
        in: query
        required: false
        description: Restrict to one action.
        schema:
          type: string
      - name: since
        in: query
        required: false
        description: Only events at or after this time.
        schema:
          type: string
          format: date-time
      - name: limit
        in: query
        required: false
        description: Maximum records to return.
        schema:
          type: integer
          minimum: 1
          maximum: 200
          default: 50
      - name: offset
        in: query
        required: false
        description: Records to skip.
        schema:
          type: integer
          minimum: 0
          default: 0
      responses:
        '200':
          description: A page of audit events.
          headers:
            x-correlation-id:
              description: Identifies this request in the audit log. Echoed from the request when you send one.
              schema:
                type: string
            RateLimit:
              description: 'Current quota state as a structured field: `"policy";r=<remaining>;t=<seconds until reset>`. Self-throttle from this rather than retrying blind.'
              schema:
                type: string
              example: '"read";r=598;t=42'
            RateLimit-Policy:
              description: 'The quota this response was charged against: `"policy";q=<limit>;w=<window in seconds>`. The unauthenticated discovery endpoints send every policy, so a budget can be read before the first call.'
              schema:
                type: string
              example: '"read";q=600;w=60'
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
              example: 600
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets. A delta, not a timestamp. X-RateLimit-Reset is the timestamp form.
              schema:
                type: integer
            Deprecation:
              description: IMF-fixdate naming when this API version was deprecated. Absent while the version is current. Once present, the version keeps answering for at least 365 days.
              schema:
                type: string
            Sunset:
              description: IMF-fixdate naming when this API version stops answering (RFC 8594). Absent while the version is current. After it passes, the version answers 410 Gone.
              schema:
                type: string
          content:
            application/json:
              schema:
                type: object
                required:
                - total
                - items
                properties:
                  total:
                    type: integer
                    description: Total matching records, ignoring limit and offset.
                  items:
                    type: array
                    description: The events.
                    items:
                      type: object
                      description: One appended audit event. The table refuses UPDATE and DELETE, and each row carries a hash of the previous one.
                      required:
                      - id
                      - action
                      - createdAt
                      properties:
                        id:
                          type: string
                          description: Opaque server-assigned identifier. Do not construct one.
                        action:
                          type: string
                          description: The governed action that occurred.
                        actor:
                          type: string
                          description: Who or what did it.
                        resourceType:
                          type: string
                        resourceId:
                          type: string
                        correlationId:
                          type: string
                          description: Ties the event to the request that caused it.
                        createdAt:
                          type: string
                          format: date-time
                          description: RFC 3339 timestamp, always UTC.
        '401':
          $ref: '#/components/responses/Error401'
        '403':
          $ref: '#/components/responses/Error403'
        '404':
          $ref: '#/components/responses/Error404'
        '422':
          $ref: '#/components/responses/Error422'
        '429':
          $ref: '#/components/responses/Error429'
        '500':
          $ref: '#/components/responses/Error500'
components:
  responses:
    Error500:
      description: Unexpected failure. Quote the correlation id.
      headers:
        x-correlation-id:
          description: Identifies this request in the audit log. Echoed from the request when you send one.
          schema:
            type: string
        RateLimit:
          description: 'Current quota state as a structured field: `"policy";r=<remaining>;t=<seconds until reset>`. Self-throttle from this rather than retrying blind.'
          schema:
            type: string
          example: '"read";r=598;t=42'
        RateLimit-Policy:
          description: 'The quota this response was charged against: `"policy";q=<limit>;w=<window in seconds>`. The unauthenticated discovery endpoints send every policy, so a budget can be read before the first call.'
          schema:
            type: string
          example: '"read";q=600;w=60'
        RateLimit-Limit:
          description: Requests allowed in the current window.
          schema:
            type: integer
          example: 600
        RateLimit-Remaining:
          description: Requests left in the current window.
          schema:
            type: integer
        RateLimit-Reset:
          description: Seconds until the window resets. A delta, not a timestamp. X-RateLimit-Reset is the timestamp form.
          schema:
            type: integer
        Deprecation:
          description: IMF-fixdate naming when this API version was deprecated. Absent while the version is current. Once present, the version keeps answering for at least 365 days.
          schema:
            type: string
        Sunset:
          description: IMF-fixdate naming when this API version stops answering (RFC 8594). Absent while the version is current. After it passes, the version answers 410 Gone.
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error401:
      description: No credential, or a credential that no longer resolves.
      headers:
        x-correlation-id:
          description: Identifies this request in the audit log. Echoed from the request when you send one.
          schema:
            type: string
        RateLimit:
          description: 'Current quota state as a structured field: `"policy";r=<remaining>;t=<seconds until reset>`. Self-throttle from this rather than retrying blind.'
          schema:
            type: string
          example: '"read";r=598;t=42'
        RateLimit-Policy:
          description: 'The quota this response was charged against: `"policy";q=<limit>;w=<window in seconds>`. The unauthenticated discovery endpoints send every policy, so a budget can be read before the first call.'
          schema:
            type: string
          example: '"read";q=600;w=60'
        RateLimit-Limit:
          description: Requests allowed in the current window.
          schema:
            type: integer
          example: 600
        RateLimit-Remaining:
          description: Requests left in the current window.
          schema:
            type: integer
        RateLimit-Reset:
          description: Seconds until the window resets. A delta, not a timestamp. X-RateLimit-Reset is the timestamp form.
          schema:
            type: integer
        Deprecation:
          description: IMF-fixdate naming when this API version was deprecated. Absent while the version is current. Once present, the version keeps answering for at least 365 days.
          schema:
            type: string
        Sunset:
          description: IMF-fixdate naming when this API version stops answering (RFC 8594). Absent while the version is current. After it passes, the version answers 410 Gone.
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error404:
      description: No such resource, or one belonging to an organization you are not a member of. The two are deliberately indistinguishable.
      headers:
        x-correlation-id:
          description: Identifies this request in the audit log. Echoed from the request when you send one.
          schema:
            type: string
        RateLimit:
          description: 'Current quota state as a structured field: `"policy";r=<remaining>;t=<seconds until reset>`. Self-throttle from this rather than retrying blind.'
          schema:
            type: string
          example: '"read";r=598;t=42'
        RateLimit-Policy:
          description: 'The quota this response was charged against: `"policy";q=<limit>;w=<window in seconds>`. The unauthenticated discovery endpoints send every policy, so a budget can be read before the first call.'
          schema:
            type: string
          example: '"read";q=600;w=60'
        RateLimit-Limit:
          description: Requests allowed in the current window.
          schema:
            type: integer
          example: 600
        RateLimit-Remaining:
          description: Requests left in the current window.
          schema:
            type: integer
        RateLimit-Reset:
          description: Seconds until the window resets. A delta, not a timestamp. X-RateLimit-Reset is the timestamp form.
          schema:
            type: integer
        Deprecation:
          description: IMF-fixdate naming when this API version was deprecated. Absent while the version is current. Once present, the version keeps answering for at least 365 days.
          schema:
            type: string
        Sunset:
          description: IMF-fixdate naming when this API version stops answering (RFC 8594). Absent while the version is current. After it passes, the version answers 410 Gone.
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error422:
      description: 'The request was understood but rejected: it failed validation, or was blocked by policy.'
      headers:
        x-correlation-id:
          description: Identifies this request in the audit log. Echoed from the request when you send one.
          schema:
            type: string
        RateLimit:
          description: 'Current quota state as a structured field: `"policy";r=<remaining>;t=<seconds until reset>`. Self-throttle from this rather than retrying blind.'
          schema:
            type: string
          example: '"read";r=598;t=42'
        RateLimit-Policy:
          description: 'The quota this response was charged against: `"policy";q=<limit>;w=<window in seconds>`. The unauthenticated discovery endpoints send every policy, so a budget can be read before the first call.'
          schema:
            type: string
          example: '"read";q=600;w=60'
        RateLimit-Limit:
          description: Requests allowed in the current window.
          schema:
            type: integer
          example: 600
        RateLimit-Remaining:
          description: Requests left in the current window.
          schema:
            type: integer
        RateLimit-Reset:
          description: Seconds until the window resets. A delta, not a timestamp. X-RateLimit-Reset is the timestamp form.
          schema:
            type: integer
        Deprecation:
          description: IMF-fixdate naming when this API version was deprecated. Absent while the version is current. Once present, the version keeps answering for at least 365 days.
          schema:
            type: string
        Sunset:
          description: IMF-fixdate naming when this API version stops answering (RFC 8594). Absent while the version is current. After it passes, the version answers 410 Gone.
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error429:
      description: Rate limited. Honour the Retry-After header.
      headers:
        x-correlation-id:
          description: Identifies this request in the audit log. Echoed from the request when you send one.
          schema:
            type: string
        RateLimit:
          description: 'Current quota state as a structured field: `"policy";r=<remaining>;t=<seconds until reset>`. Self-throttle from this rather than retrying blind.'
          schema:
            type: string
          example: '"read";r=598;t=42'
        RateLimit-Policy:
          description: 'The quota this response was charged against: `"policy";q=<limit>;w=<window in seconds>`. The unauthenticated discovery endpoints send every policy, so a budget can be read before the first call.'
          schema:
            type: string
          example: '"read";q=600;w=60'
        RateLimit-Limit:
          description: Requests allowed in the current window.
          schema:
            type: integer
          example: 600
        RateLimit-Remaining:
          description: Requests left in the current window.
          schema:
            type: integer
        RateLimit-Reset:
          description: Seconds until the window resets. A delta, not a timestamp. X-RateLimit-Reset is the timestamp form.
          schema:
            type: integer
        Deprecation:
          description: IMF-fixdate naming when this API version was deprecated. Absent while the version is current. Once present, the version keeps answering for at least 365 days.
          schema:
            type: string
        Sunset:
          description: IMF-fixdate naming when this API version stops answering (RFC 8594). Absent while the version is current. After it passes, the version answers 410 Gone.
          schema:
            type: string
        Retry-After:
          description: Seconds to wait before retrying. Honour this rather than backing off by guess.
          schema:
            type: integer
          required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error403:
      description: Authenticated, but not permitted, or the token belongs to a different organization than the path claims.
      headers:
        x-correlation-id:
          description: Identifies this request in the audit log. Echoed from the request when you send one.
          schema:
            type: string
        RateLimit:
          description: 'Current quota state as a structured field: `"policy";r=<remaining>;t=<seconds until reset>`. Self-throttle from this rather than retrying blind.'
          schema:
            type: string
          example: '"read";r=598;t=42'
        RateLimit-Policy:
          description: 'The quota this response was charged against: `"policy";q=<limit>;w=<window in seconds>`. The unauthenticated discovery endpoints send every policy, so a budget can be read before the first call.'
          schema:
            type: string
          example: '"read";q=600;w=60'
        RateLimit-Limit:
          description: Requests allowed in the current window.
          schema:
            type: integer
          example: 600
        RateLimit-Remaining:
          description: Requests left in the current window.
          schema:
            type: integer
        RateLimit-Reset:
          description: Seconds until the window resets. A delta, not a timestamp. X-RateLimit-Reset is the timestamp form.
          schema:
            type: integer
        Deprecation:
          description: IMF-fixdate naming when this API version was deprecated. Absent while the version is current. Once present, the version keeps answering for at least 365 days.
          schema:
            type: string
        Sunset:
          description: IMF-fixdate naming when this API version stops answering (RFC 8594). Absent while the version is current. After it passes, the version answers 410 Gone.
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
      - error
      description: The single error envelope every endpoint uses. `code` is stable and safe to branch on; `message` is for humans and may change wording. Never parse `message`.
      properties:
        error:
          type: object
          required:
          - code
          - message
          - correlationId
          properties:
            code:
              type: string
              enum:
              - UNAUTHENTICATED
              - FORBIDDEN
              - TENANT_NOT_RESOLVED
              - NOT_FOUND
              - CONFLICT
              - VALIDATION_FAILED
              - POLICY_BLOCKED
              - APPROVAL_REQUIRED
              - INVALID_LIFECYCLE_TRANSITION
              - IDEMPOTENCY_CONFLICT
              - RATE_LIMITED
              - PROVIDER_ERROR
              - NOT_CONFIGURED
              - TIMEOUT
              - INTERNAL
              description: Stable machine-readable failure reason. Branch on this, not on the HTTP status, which several codes share.
            message:
              type: string
              description: Human-readable explanation. For a 5xx this is deliberately generic, so quote the correlation id instead.
            details:
              type: object
              additionalProperties: true
              description: 'Structured context for the failure: field-level validation issues, the retry delay for RATE_LIMITED, the blocking policy for POLICY_BLOCKED. Omitted for 5xx responses.'
            nextActions:
              type: array
              items:
                type: string
              description: 'What the caller can do about it, in order. Present when the failure is recoverable: an agent should read this before retrying.'
            correlationId:
              type: string
              description: Identifies this request in the audit log. Echoed in the x-correlation-id response header, and honoured on the way in if you send one.
  securitySchemes:
    agentToken:
      type: http
      scheme: bearer
      description: 'A SpringRoll agent token, prefixed `sbp_`, in the Authorization header. Issued to a named membership: it carries exactly that person''s permissions and can never record an approval decision.


        A bearer token takes precedence over a session cookie, so a script running inside a logged-in browser cannot accidentally act as the user.


        An MCP client should not use this at all: it should run the OAuth 2.1 flow and receive its own credential instead of being handed one.'
    oauth2:
      type: oauth2
      description: OAuth 2.1 with PKCE. A client identifies itself with an OAuth client ID metadata document (an HTTPS URL used as client_id) or with RFC 7591 dynamic client registration. Discover the endpoints from /.well-known/oauth-authorization-server rather than hard-coding them.
      flows:
        authorizationCode:
          authorizationUrl: https://springroll.dev/oauth/authorize
          tokenUrl: https://springroll.dev/api/oauth/token
          refreshUrl: https://springroll.dev/api/oauth/token
          scopes: {}
    appIdentity:
      type: http
      scheme: bearer
      description: The identity token SpringRoll injects into a deployed application. Connect queries require separate approved data grants. App identity endpoints and event reporting bind the application and environment; signing in a user does not grant data or deployment authority. Never the source system's credential.
externalDocs:
  url: https://springroll.dev/docs/api
  description: 'The SpringRoll API reference: authentication, rate limits, versioning and deprecation, and the error envelope.'