Yardstick Audit API

Audit log of API-driven mutations.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

GET /v1/audit_log List audit log entries #

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/yardstick-team:yardstick-team-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

yardstick-team-audit-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Yardstick Team Audit API
  version: '2026-05-02'
  description: 'Operations tagged Audit across 2 of this provider''s published API definitions: api.yardstick.team_v1_openapi.json, yardstick-team-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.yardstick.team
  description: Production
security:
- bearerAuth: []
tags:
- name: Audit
  description: Audit log of API-driven mutations.
paths:
  /v1/audit_log:
    get:
      operationId: listAudit_log
      summary: List audit log entries
      description: 'List audit log entries


        **Required scopes:** `audit_logs:read`


        **Example (curl):**


        ```bash

        curl ''https://api.yardstick.team/v1/audit_log?limit=20'' \

        -H ''Authorization: Bearer ys_sk_live_…''

        ```


        **Example (TypeScript):**


        ```ts

        await fetch("https://api.yardstick.team/v1/audit_log?limit=20", {

        headers: { Authorization: `Bearer ${process.env.YS_API_KEY}` },

        }).then((r) => r.json());

        ```'
      tags:
      - Audit
      deprecated: false
      security:
      - bearerAuth:
        - audit_logs:read
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/ListEnvelope'
                - type: object
                  properties:
                    data:
                      type: array
                      items:
                        $ref: '#/components/schemas/AuditLogEntry'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Authentication failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Permission denied (scope or feature flag)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Resource not found. The error uses the resource-specific code and param names the exact body field or path parameter that referenced it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Conflict (e.g. idempotency key reuse with different body)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: limit
        in: query
        required: false
        description: Page size (1-100, default 20).
        schema:
          type: integer
          minimum: 1
          maximum: 100
      - name: starting_after
        in: query
        required: false
        description: 'Cursor: id of the last record from the previous page.'
        schema:
          type: string
      - name: X-Request-Id
        in: header
        required: false
        description: Optional caller-supplied request identifier. Values must match `^[A-Za-z0-9_-]{1,128}$`; a valid value is echoed in the response `X-Request-Id` header, otherwise the API generates one.
        schema:
          type: string
    servers:
    - url: https://api.yardstick.team
      description: Production
components:
  schemas:
    AuditLogEntry:
      type: object
      properties:
        id:
          type: string
          description: Display id, e.g. `audit_<base32>`
        object:
          type: string
          enum:
          - audit_log_entry
        created:
          type: string
        actor_token_id:
          type: string
          nullable: true
        action:
          type: string
        resource_type:
          type: string
        resource_id:
          type: string
          nullable: true
        resource_display_id:
          type: string
          nullable: true
          description: The public display id of the audited resource — the same id the caller holds, e.g. `can_<base32>`. Null when the resource type has no public id namespace; no prefix is invented for one.
        changes:
          type: object
          additionalProperties: {}
        request_id:
          type: string
          nullable: true
          description: Correlation id for the request that produced this entry — the same value returned in that request's `X-Request-Id` response header. Null for entries written before the id was recorded.
        authenticated_actor:
          type: object
          properties:
            kind:
              type: string
              enum:
              - platform_runtime
            principal_ref:
              type: string
            display_label:
              type: string
            principal_generation:
              type: integer
              exclusiveMinimum: true
              minimum: 0
            credential_id:
              type: string
              format: uuid
            organization_display_id:
              type: string
              description: Public organization display id, e.g. `org_<base32>`
            execution_mode:
              type: string
              enum:
              - live
              - test
              - mode_neutral
            livemode:
              type: boolean
              nullable: true
            run_id:
              type: integer
              exclusiveMinimum: true
              minimum: 0
            step_id:
              type: integer
              exclusiveMinimum: true
              minimum: 0
            intent_id:
              type: integer
              exclusiveMinimum: true
              minimum: 0
            idempotency_key:
              type: string
            operation_name:
              type: string
            department_read_mode:
              type: string
              enum:
              - none
              - explicit
            department_read_scope:
              type: array
              items:
                type: string
          required:
          - kind
          - principal_ref
          - display_label
          - principal_generation
          - credential_id
          - organization_display_id
          - execution_mode
          - livemode
          - run_id
          - step_id
          - intent_id
          - idempotency_key
          - operation_name
          - department_read_mode
          - department_read_scope
          additionalProperties: false
          description: Verified immutable platform-runtime lineage derived from the consumed credential and ledger context. It never contains the credential secret.
          nullable: true
        authentication:
          type: object
          properties:
            state:
              type: string
              enum:
              - pre_auth
              - post_auth
            mechanism:
              type: string
              enum:
              - runtime_credential
            reason_code:
              type: string
              nullable: true
            claimed_subject:
              type: object
              properties:
                principal_ref:
                  type: string
                verified:
                  type: boolean
                  enum:
                  - false
              required:
              - principal_ref
              - verified
              additionalProperties: false
              nullable: true
          required:
          - state
          - mechanism
          - reason_code
          - claimed_subject
          additionalProperties: false
          description: Bounded runtime authentication evidence. A pre-auth row always has authenticated_actor=null and any claimed subject is explicitly unverified.
        outcome:
          type: string
          nullable: true
        reason:
          type: string
          nullable: true
      required:
      - id
      - object
      - created
      - actor_token_id
      - action
      - resource_type
      - resource_id
      - resource_display_id
      - changes
      - request_id
      additionalProperties: false
      description: An audit log entry capturing an API-driven mutation (writes only). Human API-token rows retain the historical shape. Runtime rows add a bounded authentication object and a verified actor snapshot; pre-auth rows keep authenticated_actor null. The caller's org id is excluded — implicit from the bearer token and exposing it would leak an internal UUID.
    ListEnvelope:
      type: object
      properties:
        object:
          type: string
          enum:
          - list
        data:
          type: array
          items: {}
        has_more:
          type: boolean
      required:
      - object
      - data
      - has_more
      additionalProperties: false
      description: Cursor-paginated list envelope.
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
              - invalid_request_error
              - authentication_error
              - permission_error
              - rate_limit_error
              - api_error
            code:
              type: string
            message:
              type: string
            param:
              type: string
            request_id:
              type: string
            details:
              type: object
              additionalProperties: {}
              description: Machine-readable specifics for offer document refusals only, such as the missing fill-ins of required_answers_missing or the clashing fill-in of fill_in_type_clash.
          required:
          - type
          - code
          - message
          - request_id
          additionalProperties: false
      required:
      - error
      additionalProperties: false
      description: Canonical API error envelope. Every 404 not-found response uses a resource-specific code and includes param with the exact body field or path parameter that referenced the unavailable resource. Use code and param for programmatic handling, and request_id for support; message text is not a stable contract.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Yardstick API tokens. Format: `ys_(sk|pk)_(live|test)_<32+ chars>`. **Secret keys** (`ys_sk_…`) are server-only — using one from a browser origin returns `secret_key_browser_denied`. **Publishable keys** (`ys_pk_…`) are browser-safe and restricted to intake-only person creation.'
x-refined-from:
- api.yardstick.team_v1_openapi.json
- yardstick-team-openapi.json
x-provenance:
  method: harvested
  publisher: Yardstick
  source: https://api.yardstick.team/v1/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)