⭐ Star 1clawAI/agent-templates — ready-to-run agent templates wired to 1Claw. It is our single starred repo.
OpenAPI 3.1.0 specification for the 1Claw Vault API. Use this package to generate API clients in any language.
npm install @1claw/openapi-specnpx openapi-typescript node_modules/@1claw/openapi-spec/openapi.yaml -o src/1claw-types.tsopenapi-generator generate \
-i node_modules/@1claw/openapi-spec/openapi.yaml \
-g python \
-o ./1claw-clientopenapi-generator generate \
-i node_modules/@1claw/openapi-spec/openapi.yaml \
-g go \
-o ./1claw-clientimport spec from "@1claw/openapi-spec/openapi.json";- Portfolio —
GET /v1/platform/connections/{id}/portfolioand aliasGET .../balances(plt_ auth; optional?chains=,?include_tokens=) - Pending approval create —
POST /v1/platform/connections/{id}/pending-approvals(plt_ auth; returns 202 withpending_approval_id) - Connection automations —
GET/POST .../automations,POST .../automations/{aid}/runs/{rid}/cancel - Connection memory —
GET/PUT/DELETE .../memory/{namespace}/{key}(optional?agent_id=) - Content inspection —
POST /v1/shroud/inspect-content(MCPinspect_contentparity; plt_, agent JWT, user JWT) - Signing keys + agent patch —
GET .../signing-keys,PATCH .../agents/{aid}(v0.59.3, documented here for completeness)
- App-scoped reads (
plt_) —GET /v1/platform/connections/{id}/approvals, pending-approvals (includespayload_hash), spend-policy - Spend policy —
GET /v1/platform/apps/{id}/spend-policies/{policy_id};PUT .../connections/{id}/spend-policysupports optionalIdempotency-Key(24h body-hash replay) - App lifecycle — soft-delete returns
{ id, slug, deleted_at }; slug unique per org; inactive apps return 404 - Ownership transfer —
POST /v1/platform/apps/{id}/transfer-ownershipwith step-up auth
- SIWE provisioning —
POST /v1/platform/siwe/challenge; upsert with wallet subject token - Parameterized templates — bootstrap
parametersJSON;POST .../templates/{tid}/previewdry-runs{{params.*}}/{{subject.*}} - Connection polling —
GET /v1/platform/connections/{id}(status, claim, entitlements, wallet address) - Per-connection usage —
GET .../connections/{id}/usage(inference spend, UTC period) - On-chain entitlements — template
entitlements[]; refresh + monitor endpoints - Inference budgets — spend policy inference allowance fields;
GET /v1/treasury/wallets/inference-budget
- Agent accounts —
GET/POST /v1/agents/{id}/accounts, migrate/deprecate EOA, module registry - Guardrail governance — shadow report, revisions, replay; widening guardrails return 202 + approval
- Human Factor Auth — treasury send/swap/export step-up policies
- Org unfreeze — T3 step-up; cumulative gas budget ledger
- Agent fields —
tx_approval_policy,typed_data_policy,simulation_failure_policy,raw_signing_policy,personal_sign_policy,tx_block_unlimited_approvals, per-recipient limits, USD caps,allow_erc4337,allow_eip7702,auto_suspended,clear_auto_suspended(update) - Org freeze —
POST /v1/org/freeze,POST /v1/org/unfreeze(owner/admin emergency stop) - Sign HITL — EIP-712 and raw digest intents can return 202
awaiting_approvalwhen policy isapprove - Webhooks —
tx.awaiting_approval,sign.awaiting_approval,agent.suspended,org.frozen
- Per-key env vars —
GET/POST /v1/vaults/{id}/env-vars,GET/PATCH/DELETE .../{key},GET .../resolvewith three-tier precedence (org shared < vault < branch override) - Vault environments —
GET/POST /v1/vaults/{id}/environments,DELETE .../{slug}(built-in + tier-gated custom) - Org shared vars —
GET/POST /v1/org/env-vars, link/unlink to vaults - Sensitive vars — write-only after creation; org setting
env.require_sensitive_prod - Runtime injection — resolved vars merged into Cloud Runtime container env at start/rebuild
- Agent fields —
environment,environment_locked,env_auto_resolve,per_environment_guardrailson create/update/response schemas - JWT claim — Agent tokens include
environmentwhen the agent has a tag - Policy conditions —
environment_inarray in built-in policyconditionsJSON - Env var resolution —
GET /v1/vaults/{id}/env-vars/resolveaccepts optionalenvironment; auto-fills from agent tag whenenv_auto_resolveis true
- Policy backend —
GET/PATCH /v1/org/settings/policy-backend,GET /v1/org/policy-shadow-report - Contract ABIs —
POST/GET/DELETE /v1/org/contract-abis,GET /v1/org/contract-abis/{id} - Pending approvals —
POST/GET /v1/pending-approvals, approve/execute/cancel sub-routes - Consensus triggers —
consensus_triggeron access policy schemas - Dynamic enforcement_status — Cedar/OPA policy and test responses
- Portfolio —
GET /v1/portfolio(unified balance aggregator) - Cedar policies —
POST/GET/DELETE /v1/org/cedar-policies, dry-runPOST .../test(Team+ tier) - OPA policies —
POST/GET/DELETE /v1/org/opa-policies, dry-runPOST .../test(Business+ tier) - Sub-organizations —
POST/GET/DELETE /v1/org/sub-orgs, permissions, users, wallet generation - Smart account import —
POST /v1/agents/{id}/smart-accounts/import - Signing key BYOK —
POST /v1/agents/{id}/signing-keys/{chain}/import(human-only,X-Auth-Confirm) - Treasury wallet import —
POST /v1/treasury/wallets/{chain}/import(human-only, multi-chain send)
- OAuth token revocation —
POST /v1/oauth/revoke(RFC 7009 token revocation) - Consent revocation —
DELETE /v1/oauth/consents/{app_id}(user revokes consent for a specific app) - Platform marketplace —
GET /v1/platform/marketplace(public listing of approved platform apps) - App statistics —
GET /v1/platform/apps/{id}/stats(usage and connection statistics for a platform app) - Webhook secret rotation —
POST /v1/platform/apps/{id}/rotate-webhook-secret(rotate a platform app's webhook signing secret)
- Automations v2 — Workflow engine with multi-step pipelines, 14 step types,
{{...}}template variables, conditional logic (skip_if/run_if), 10 marketing presets, webhook/event/cron/manual triggers. Enriched list API withlast_run_status,total_runs,success_rate,agent_name. Run detail withcontextJSONB. Assist NL→workflow drafting. - Agent Channels — Telegram, WhatsApp, Discord messaging channels for agents. CRUD, send, message history, test connectivity.
- Agent Memory — Three-tier memory (scratch, durable, semantic) with encryption at rest. CRUD, semantic search, namespace management.
- Cloud Runtimes — Managed containers with lifecycle management, hosting, interactive shell. Presets from small to large-cc (confidential compute).
- Platform delegation — Platform apps can perform delegated CRUD on connected user resources via
X-Platform-Connectionheader. Delegation log for audit. - Discovery — Public agent directory and platform marketplace.
- Intents API —
SubmitTransactionRequest/SignTransactionRequest/SignIntentRequestextended with non-EVM fields:destination_tag(XRP),memo,fee_rate_sat_per_vbyte(Bitcoin),fee_limit_sun(Tron),token_mint/token_decimals(Solana SPL + Tron TRC-20),ttl(Cardano). Native sign + broadcast for Bitcoin, Solana, XRP, Cardano, Tron. xrpl_tx_json— Optional raw XRPL transaction JSON for 30+ transaction types beyond simple Payment.
- Risk events —
GET /v1/risk/events(list, filterable by severity/principal_type) - Risk verdicts —
GET /v1/risk/verdicts(active verdicts),GET /v1/risk/verdicts/{type}/{id}(single principal verdict) - Honeytokens —
GET/POST/DELETE /v1/risk/honeytokens(canary secret CRUD with trigger counts) - DPoP — RFC 9449 Demonstration of Proof-of-Possession token binding (shipped)
- Webhook CRUD —
POST/GET /v1/webhooks,GET/PATCH/DELETE /v1/webhooks/{id}. Events:wallet.transfer.*,proposal.*,agent.transaction.*,signing_key.rotated,policy.*
- OAuth2 authorization server —
GET/POST /v1/oauth/authorize,POST /v1/oauth/token,GET /v1/oauth/userinfo("Sign in with 1Claw") - Email OTP —
POST /v1/auth/email-otp/send,POST /v1/auth/email-otp/verify(passwordless login) - Spend policies —
POST/GET/DELETE /v1/platform/apps/{id}/spend-policies,PUT /v1/platform/connections/{id}/spend-policy,GET /v1/treasury/wallets/spend-policy
- Bankr keys —
POST /v1/agents/{id}/bankr-keys/lease,GET /v1/agents/{id}/bankr-keys,DELETE /v1/agents/{id}/bankr-keys/{lease_id}. Partner key vending for scoped, TTL-boundbk_usr_wallet API keys.
- Deposit destinations —
POST/GET/PATCH /v1/deposit-destinations,GET /v1/deposit-destinations/{id} - Internal accounts —
POST/GET /v1/internal-accounts,POST /v1/internal-transfers(supportsIdempotency-Key),GET /v1/internal-accounts/{id}/ledger - Fiat ramps —
POST /v1/fiat/onramp/session,POST /v1/fiat/offramp/initiate,POST /v1/fiat/webhooks(MoonPay signature required in production) - Social login —
POST /v1/auth/social-login(Google/Apple ID tokens with audience validation; Discord authorization code +oauth_redirect_uri; no email auto-linking — 409 on conflict) - Passkey tx auth —
POST /v1/auth/passkeys/tx-assert/begin|complete→X-Passkey-Token(+ optionalX-Passkey-Tx-Digest) on treasury send
- OIDC Federation (1claw as IdP) —
GET /.well-known/openid-configuration(public discovery: issuer, jwks_uri, supported algs["EdDSA","RS256"], supported grant types incl. token-exchange),GET /.well-known/jwks.json(public JWKS — every active EdDSA + RS256 key version, keyed by deterministickid),POST /v1/auth/federated-token(RFC 8693 token exchange — accepts JSON orapplication/x-www-form-urlencoded; subject token is an agent JWT orocv_API key; returns RS256 JWT scoped toaudience). Agent fields:federation_enabled,federation_audiences[],federated_token_ttl_seconds. Designed for Anthropic Workload Identity Federation, GCP STS, AWS STS, etc. - Auth — agent JWT —
POST /v1/auth/agent-tokendocuments optional JWT claimshroud_configwhen the agent has Shroud enabled (mirrors DB; consumed by Shroud PolicyEngine on LLM requests). Re-exchange after changing agent Shroud settings. Federation tokens use a separate KMS RSA-2048 key and are signed RS256. - Auth — password reset —
POST /v1/auth/forgot-password,POST /v1/auth/reset-password(public; anti-enumeration on forgot) - Auth — set password —
POST /v1/auth/set-password(for platform OIDC users who don't have a password yet) - Auth — email change —
POST /v1/auth/change-email(request, sends verification code),POST /v1/auth/verify-email-change(verify with code) - Auth — passkeys (WebAuthn) —
POST /v1/auth/passkeys/register/begin,POST .../register/complete,POST /v1/auth/passkeys/assert/begin,POST .../assert/complete,GET /v1/auth/passkeys(list),DELETE /v1/auth/passkeys/{passkey_id} - Approvals — Human-in-the-loop approval workflow:
POST /v1/approvals/request,GET /v1/approvals,GET /v1/approvals/{id},POST /v1/approvals/{id}/decide - Billing — LLM token billing —
GET /v1/billing/llm-token-billing(LlmTokenBillingStatus:enabled,subscription_status, optionalcredit_balance, optionalbilling_cycle_usagewithmetered_lines[]),POST .../subscribe,POST .../disable(Stripe AI Gateway add-on; optional org feature) - Treasury — Safe multisig treasuries:
POST/GET /v1/treasury,GET/PATCH/DELETE /v1/treasury/{id}, signers, agent access requests (requests[]on list) - Treasury Wallets — Multi-chain wallet generation for human users (replaces CDP embedded wallets):
POST /v1/treasury/wallets/generate,GET /v1/treasury/wallets,GET /v1/treasury/wallets/{chain},POST .../export,POST .../rotate,DELETE /v1/treasury/wallets/{chain}. Supported chains: ethereum, bitcoin, solana, xrp, cardano, tron. Private keys stored in per-org__treasury-keysvault with tier-appropriate MPC custody. - Treasury Proposals — Full propose/confirm/execute pipeline for Safe multisig transactions:
POST /v1/treasury/{id}/proposals,GET .../proposals,GET .../proposals/{pid},POST .../proposals/{pid}/sign,POST .../proposals/{pid}/execute,DELETE .../proposals/{pid}. Auto-execute when threshold met. - Smart Accounts — Per-agent multi-chain Safe accounts:
POST /v1/agents/{id}/smart-accounts,GET /v1/agents/{id}returnssmart_accounts[]. One EOA signer per agent, Intents API resolves Safe bychain_id. - Vaults — CRUD, CMEK enable/disable, key rotation with job tracking, MPC enable/disable (
POST /v1/vaults/{id}/mpc,DELETE /v1/vaults/{id}/mpc) - Secrets — CRUD, versioning, CMEK-encrypted flag,
client_sharein responses (MPC vaults) - Agents — CRUD with
auth_method(api_key, mtls, oidc_client_credentials), auto-generated SSH keypairs,token_ttl_seconds,vault_ids, Intents API, transaction guardrails (tx_to_allowlist,tx_max_value(native major units),tx_daily_limit(per-chain),tx_allowed_chains), OIDC federation knobs (federation_enabled,federation_audiences,federated_token_ttl_seconds);GET /v1/agents/{id}includestx_spent_todayandtx_spent_today_by_chain(per-chain daily spend in native units) for clients such as Shroud that enforce the daily cap alongside per-tx limits. Deprecated aliasestx_max_value_eth,tx_daily_limit_eth,tx_spent_today_ethare still accepted/returned for backward compatibility. - Signing Keys — Multi-chain key management:
POST /v1/agents/{id}/signing-keys(provision),GET .../signing-keys(list),POST .../signing-keys/{chain}/rotate,DELETE .../signing-keys/{chain}(deactivate). Supports ethereum, bitcoin, solana, xrp, cardano, tron - Unified Signing —
POST /v1/agents/{id}/sign— single endpoint for EIP-191 personal_sign, EIP-712 typed_data, and EIP-2718 transaction types (legacy, EIP-1559, EIP-4844, EIP-7702) - Policies — Glob-based access control
- Sharing — Links, user/agent shares, accept/decline
- Billing — Subscriptions, credits, x402, LLM token billing (see above)
- Audit — Hash-chained event log
- Chains — Supported blockchain registry
- Auth — JWT, API keys, agent tokens, MFA, device flow, Google OAuth, passkeys (WebAuthn), federated tokens (RFC 8693)
- Platform — Platform API for building multi-tenant apps on 1Claw:
POST/GET /v1/platform/apps,GET/PATCH/DELETE /v1/platform/apps/{id},POST/GET /v1/platform/apps/{id}/templates,POST /v1/platform/users/upsert,POST /v1/platform/connections/{id}/bootstrap,GET /v1/platform/apps/{id}/users,GET /v1/platform/apps/{id}/audit,GET/DELETE /v1/platform/connected-apps,GET /v1/platform/claim/{token}(preview),POST /v1/platform/claim/{token}(redeem). Platform apps authenticate withplt_prefixed API keys. Supports OIDC user provisioning, bootstrap templates, and billing models (platform_pays, user_pays, hybrid). - Org — List members, invite, update/remove member;
GET /v1/org/agent-keys-vault(users only, returns __agent-keys vault id or 404)
openapi.yaml— The canonical YAML specificationopenapi.json— JSON version for tooling that prefers JSON