Skip to documentation
Docs/Platform API

Platform API

All paths below are relative to https://api.anyuse.app/v1 . Invoke business capabilities through the quote and execution endpoints.

GET/capabilities?q=search

Discover capabilities enabled in this environment

items、currency、provider_mode

Permission: Public
GET/capabilities/{id}

Inspect parameters and prices

Capability definition and current price

Permission: Public
POST/quotes

Request a quote without calling the upstream

operation, input → id, pricing, price_usd, requires_budget, expires_at

Permission: Invoke
POST/executions?wait_ms=10000

Execute a quote and wait up to 10 seconds

quote_id, max_cost_usd; Idempotency-Key header → execution record

Permission: Invoke
GET/executions/{id}

Query execution results

status、cost_usd、result、error_code

Permission: Invoke
GET/executions/{id}/events

Consume SSE events from a streaming execution

status / delta / audio / result / done

Permission: Invoke
POST/executions/{id}/cancel

Request cancellation when supported

can_cancel=false returns 409 and the task continues. Supported cancellation does not guarantee zero cost.

Permission: Invoke
GET/executions

List the latest 50 executions

items; input and result are omitted from the list. Query each execution for details.

Permission: Invoke
GET/me

Current account and permissions

account_id、user_id、scope

Permission: Invoke
GET/wallet

Query the balance

balance_usd、currency、payment_hold

Permission: Invoke
GET/keys

List API keys

items; full keys are not returned

Permission: Manage
POST/keys

Create an invocation key

name, optional spend_limit_usd → key metadata and the full secret, shown only once

Permission: Manage
POST/keys/{id}/limit

Update the key’s lifetime limit

spend_limit_usd → 204 No Content

Permission: Manage
DELETE/keys/{id}

Revoke an API key

204 No Content

Permission: Manage

Health check

GET /healthz checks the database and executor connections. It returns 200 when ready, or 503 otherwise.