Platform API
All paths below are relative to https://api.anyuse.app/v1 . Invoke business capabilities through the quote and execution endpoints.
/capabilities?q=searchDiscover capabilities enabled in this environment
items、currency、provider_mode
Permission: Public/capabilities/{id}Inspect parameters and prices
Capability definition and current price
Permission: Public/quotesRequest a quote without calling the upstream
operation, input → id, pricing, price_usd, requires_budget, expires_at
Permission: Invoke/executions?wait_ms=10000Execute a quote and wait up to 10 seconds
quote_id, max_cost_usd; Idempotency-Key header → execution record
Permission: Invoke/executions/{id}Query execution results
status、cost_usd、result、error_code
Permission: Invoke/executions/{id}/eventsConsume SSE events from a streaming execution
status / delta / audio / result / done
Permission: Invoke/executions/{id}/cancelRequest cancellation when supported
can_cancel=false returns 409 and the task continues. Supported cancellation does not guarantee zero cost.
Permission: Invoke/executionsList the latest 50 executions
items; input and result are omitted from the list. Query each execution for details.
Permission: Invoke/meCurrent account and permissions
account_id、user_id、scope
Permission: Invoke/walletQuery the balance
balance_usd、currency、payment_hold
Permission: Invoke/keysList API keys
items; full keys are not returned
Permission: Manage/keysCreate an invocation key
name, optional spend_limit_usd → key metadata and the full secret, shown only once
Permission: Manage/keys/{id}/limitUpdate the key’s lifetime limit
spend_limit_usd → 204 No Content
Permission: Manage/keys/{id}Revoke an API key
204 No Content
Permission: ManageHealth check
GET /healthz checks the database and executor connections. It returns 200 when ready, or 503 otherwise.