TrustyCap Events API
The Events API from TrustyCap — 1 operation(s) for events.
The Events API from TrustyCap — 1 operation(s) for events.
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/trustycap-com:trustycap-com-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: TrustyCap Developer Platform Events API
version: 1.0.0
summary: 'One platform, many capabilities: Digital Life, Protected Transactions (TRUSTY), Document Intelligence, Vehicle Intelligence, Financing Intelligence, one meter.'
description: 'The TrustyCap Developer Platform API is a thin, governed externalization of the primitives TrustyCap''s own products use. One developer account, organization, application and credential reach every enabled capability family; every call is authorized by namespaced scopes, executed by the TrustyCap platform, and metered by the Trusty Meter. The platform answers at https://api.trustycap.com. Every material action follows plan → validate → authorize → commit → verify → receipt. See https://developers.trustycap.com for the platform and https://docs.trustycap.com for the reference.
Conventions: prefixed ULID ids; cursor pagination (`limit`, `cursor` → `data`, `next_cursor`); `Idempotency-Key` on mutations; RFC 9457 problem responses; IETF `RateLimit-*` headers; CloudEvents webhooks signed with `TrustyCap-Signature`, also sent under its original name `Sweep-Signature`.'
termsOfService: https://app.trustycap.com/legal/developer-terms
contact:
name: TrustyCap Developer Support
url: https://developers.trustycap.com
email: hello@trustycap.com
license:
name: Apache-2.0
identifier: Apache-2.0
x-logo:
url: https://trustycap.com/brand/lockup-horizontal-light.png
altText: TrustyCap
servers:
- url: https://api.trustycap.com
description: TrustyCap Developer Platform (test mode via sk_test_ keys)
tags:
- name: Events
paths:
/v1/events:
get:
operationId: listEvents
tags:
- Events
summary: Event stream (CloudEvents), newest first
parameters:
- name: types
in: query
required: false
schema:
type: string
description: Comma-separated event types
- name: since
in: query
required: false
schema:
type: string
format: date-time
- $ref: '#/components/parameters/limit'
- $ref: '#/components/parameters/cursor'
responses:
'200':
description: OK
headers:
RateLimit-Limit:
$ref: '#/components/headers/RateLimit-Limit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimit-Remaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimit-Reset'
content:
application/json:
schema:
type: object
required:
- data
- next_cursor
properties:
data:
type: array
items:
$ref: '#/components/schemas/CloudEvent'
next_cursor:
type:
- string
- 'null'
'400':
description: 'Problem: invalid_request, validation_failed, invalid_object_key'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'401':
description: 'Problem: unauthorized'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'402':
description: 'Problem: ceiling_reached, commercial_authorization_required, commercial_denied, payment_required, payment_method_required, budget_limit_reached, storage_read_suspended, billing_suspended'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'403':
description: 'Problem: action_denied, capability_not_enabled, phi_attestation_required, phi_channel_not_authorized, phi_lane_not_authorized, forbidden, insufficient_scope, live_mode_only, production_inactive, step_up_required, tenant_boundary, test_mode_only'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'404':
description: 'Problem: not_found'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'409':
description: 'Problem: conflict, idempotency_in_flight, idempotency_key_reused, plan_hash_mismatch, plan_not_authorized, plan_stale, plan_state_conflict, preservation_invariant, provider_reauth_required'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'410':
description: 'Problem: plan_expired'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'413':
description: 'Problem: object_too_large'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'422':
description: 'Problem: provider_unsupported'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'429':
description: 'Problem: provider_rate_limited, rate_limited'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
headers:
Retry-After:
$ref: '#/components/headers/Retry-After'
RateLimit-Limit:
$ref: '#/components/headers/RateLimit-Limit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimit-Remaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimit-Reset'
'500':
description: 'Problem: internal_error'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'501':
description: 'Problem: unsupported'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'502':
description: 'Problem: provider_error'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'503':
description: 'Problem: capability_unavailable, storage_backend_unavailable, unavailable'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
security:
- sessionCookie: []
- sessionToken: []
- apiKey:
- account:read
- oauth2:
- account:read
components:
headers:
RateLimit-Limit:
schema:
type: integer
description: Requests allowed in the current window.
RateLimit-Reset:
schema:
type: integer
description: Seconds until the window resets.
Retry-After:
schema:
type: integer
description: Seconds to wait before retrying.
RateLimit-Remaining:
schema:
type: integer
description: Requests remaining in the current window.
schemas:
Problem:
type: object
properties:
type:
type: string
format: uri
description: https://docs.trustycap.com/api/errors/#<code>
title:
type: string
status:
type: integer
detail:
type: string
code:
type: string
description: Machine-readable error code from errors.json
request_id:
type: string
errors:
type: array
items:
type: object
properties:
path:
type: string
message:
type: string
required:
- path
- message
additionalProperties: false
required:
- type
- title
- status
- code
- request_id
additionalProperties: true
description: RFC 9457 problem details. Extension members carry what the code needs to act on (for example required_scopes, retry_after, checklist, consent_url), as RFC 9457 allows.
CloudEvent:
type: object
properties:
specversion:
type: string
enum:
- '1.0'
id:
type: string
pattern: ^evt_[0-9A-HJKMNP-TV-Z]{26}$
description: Prefixed ULID (evt_…)
examples:
- evt_01J8Z3K9M2Q4R6S8T0V2W4X6Y8
source:
type: string
description: https://api.trustycap.com
type:
type: string
description: Event type from events.json, e.g. sweep.execution.completed
time:
type: string
format: date-time
subject:
type: string
description: Primary resource id
datacontenttype:
type: string
enum:
- application/json
data:
type: object
additionalProperties: {}
sweepsimulated:
type: boolean
description: 'CloudEvents extension: true in developer test mode.'
required:
- specversion
- id
- source
- type
- time
- data
additionalProperties: false
description: CloudEvents 1.0 JSON envelope used for webhooks and GET /v1/events.
parameters:
cursor:
name: cursor
in: query
schema:
type: string
description: Opaque cursor from `next_cursor`.
limit:
name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 200
default: 50
securitySchemes:
sessionCookie:
type: apiKey
in: cookie
name: sweep_session
description: Consumer web session (HttpOnly). Mutations require an allowlisted Origin.
sessionToken:
type: http
scheme: bearer
bearerFormat: sst_…
description: Consumer session token for native/PWA clients.
apiKey:
type: http
scheme: bearer
bearerFormat: sk_live_… | sk_test_…
description: Developer API key. Scopes fixed at creation. sk_test_ keys operate in the isolated test tenant.
oauth2:
type: oauth2
description: 'OAuth 2.1 with PKCE (S256), RFC 8707 resource indicators, refresh rotation. Discovery: /.well-known/oauth-authorization-server.'
flows:
authorizationCode:
authorizationUrl: https://api.trustycap.com/oauth/authorize
tokenUrl: https://api.trustycap.com/oauth/token
refreshUrl: https://api.trustycap.com/oauth/token
scopes:
sweep.sources:read: Read connected sources and quota
sweep.sources:write: Connect and disconnect sources
sweep.inventory:read: Read normalized inventory, diagnosis, and the Digital State Graph
sweep.plans:write: Create, validate, and price shadow plans; read executions and receipts
sweep.plans:commit: Authorize and commit plans (executes actions within the user's delegation)
sweep.vault:read: List, search, and download Vault objects and manifests
sweep.vault:write: Upload to the Vault
sweep.intel:read: Read trial, renewal, meter, and spend intelligence
sweep.creator:read: Read creator revenue audits
sweep.creator:write: Connect creator sources and upload statements
platform.usage:read: Read usage, charges, and the commercial envelope
platform.grants:manage: List and revoke delegation grants
platform.account:read: Read account identity and the events the application caused
sources:read: Read connected sources and quota
sources:write: Connect and disconnect sources
inventory:read: Read normalized inventory, diagnosis, and the Digital State Graph
plans:write: Create, validate, and price shadow plans; read executions and receipts
plans:commit: Authorize and commit plans (executes actions within the user's delegation)
vault:read: List, search, and download Vault objects and manifests
vault:write: Upload to the Vault
intel:read: Read trial, renewal, meter, and spend intelligence
creator:read: Read creator revenue audits
creator:write: Connect creator sources and upload statements
usage:read: Read usage, charges, and the commercial envelope
grants:manage: List and revoke delegation grants
account:read: Read account identity and the events the application caused
x-sweep:
contract: docs/architecture/API-SURFACE.md
receiptJwks: https://api.trustycap.com/.well-known/trustycap-receipts.json
mcp: https://mcp.trustycap.com/mcp
a2aAgentCard: https://api.trustycap.com/.well-known/agent-card.json
oauthMetadata: https://api.trustycap.com/.well-known/oauth-authorization-server