Yardstick Events API
Customer-facing event log.
Customer-facing event log.
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/yardstick-team:yardstick-team-events-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: Yardstick Team Events API
version: '2026-05-02'
description: 'Operations tagged Events 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: Events
description: Customer-facing event log.
paths:
/v1/events:
get:
operationId: listEvents
summary: List events
description: 'List events
**Required scopes:** `api_events:read`
**Example (curl):**
```bash
curl ''https://api.yardstick.team/v1/events?limit=20'' \
-H ''Authorization: Bearer ys_sk_live_…''
```
**Example (TypeScript):**
```ts
await fetch("https://api.yardstick.team/v1/events?limit=20", {
headers: { Authorization: `Bearer ${process.env.YS_API_KEY}` },
}).then((r) => r.json());
```'
tags:
- Events
deprecated: false
security:
- bearerAuth:
- api_events:read
responses:
'200':
description: Success
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ListEnvelope'
- type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Event'
'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: type
in: query
required: false
description: Repeatable; restricts to events whose `type` is in the set (max 50).
schema:
type: string
- name: created[gte]
in: query
required: false
description: ISO-8601 UTC; only events at or after this time.
schema:
type: string
format: date-time
- name: created[lte]
in: query
required: false
description: ISO-8601 UTC; only events at or before this time.
schema:
type: string
format: date-time
- 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:
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.
Event:
type: object
properties:
id:
type: string
description: Display id, e.g. `evt_<base32>`
object:
type: string
enum:
- event
type:
type: string
description: Stable event type, e.g. `person.created`
created:
type: string
description: ISO-8601 UTC
livemode:
type: boolean
api_version:
type: string
description: Pinned API version (YYYY-MM-DD)
request_id:
type: string
nullable: true
description: Correlation id for the request that produced this event — the same value returned in that request's `X-Request-Id` response header. Null for events written before the id was recorded, and for events produced outside an API request.
data:
type: object
additionalProperties: {}
required:
- id
- object
- type
- created
- livemode
- api_version
- request_id
- data
additionalProperties: false
description: Customer-facing audit event from the API event log.
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)