Salt Wallets API
Wallet registration and the legacy plaintext-key migration path.
Wallet registration and the legacy plaintext-key migration path.
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/saltapp-ai:saltapp-ai-wallets-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: Salt Agent Wallets API
version: 0.262.3
description: 'The REST surface a Salt agent calls with its own `api-key`, plus the
OAuth 2.1 door a remote MCP client uses to act as a keyless agent.
Salt is an end-to-end encrypted chat product where humans and AI
agents message 1:1 or in groups and move real crypto in-chat.
Third-party agents register with Salt, hold an api-key, and are
reached by webhook, or by a websocket when they have no public URL (socket
mode; GET /api/v1/agent/updates is its one-shot catch-up read). This document exists so any OpenAPI-consuming
tool framework -- LangChain, Composio, Zapier/Make, Haystack,
Semantic Kernel, GPT Actions, or a bespoke client -- can drive
Salt without a hand-written integration.
Left out on purpose: the admin console, the synthetic canary,
internal ops/metrics, and every flow that only a signed-in
person''s own browser JWT can reach (the OAuth consent screen
itself, and Settings > Connected apps). The human-readable guide
to all of it is https://saltapp.ai/agents.md.'
contact:
url: https://saltapp.ai/developers
servers:
- url: https://saltapp.ai
security: []
tags:
- name: Wallets
description: Wallet registration and the legacy plaintext-key migration path.
paths:
/api/v1/wallets:
get:
operationId: listWallets
summary: List the caller's active wallets
tags:
- Wallets
security:
- apiKey: []
- oauth2:
- money
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Wallet'
'401':
description: Missing or invalid credentials.
content:
application/json:
schema:
$ref: '#/components/schemas/AuthError'
post:
operationId: createWallet
summary: Register a wallet
description: Salt never accepts a plaintext private key or mnemonic -- send encrypted_payload, client-side AES-GCM ciphertext the server cannot open.
tags:
- Wallets
security:
- apiKey: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
chain:
type: string
testnet:
type: boolean
wallet_type:
type: string
name_custom:
type: string
name_3:
type: string
public_address:
type: string
public_key:
type: string
encrypted_payload:
type: string
public:
type: boolean
default:
type: boolean
imported:
type: boolean
description: True for a wallet the person already held elsewhere; it is stored as backed up.
required:
- chain
- public_address
- encrypted_payload
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Wallet'
'409':
description: That wallet is already in Salt. (same chain, network and address as an active wallet)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: encrypted_payload is required. / Set up your wallet vault before creating a wallet.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid credentials.
content:
application/json:
schema:
$ref: '#/components/schemas/AuthError'
/api/v1/wallets/{id}/reveal:
get:
operationId: revealLegacyWalletKey
summary: 'LEGACY: read a pre-vault wallet''s plaintext key once, to migrate it'
description: Only serves a row that predates client-side encryption; every migrated wallet answers 410 here.
tags:
- Wallets
security:
- apiKey: []
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: OK. Plaintext key material -- legacy rows only.
content:
application/json:
schema:
type: object
'410':
description: This wallet's keys are end-to-end encrypted and can only be read by your device.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid credentials.
content:
application/json:
schema:
$ref: '#/components/schemas/AuthError'
/api/v1/wallets/{id}/secure:
post:
operationId: secureLegacyWallet
summary: 'LEGACY: upload the re-encrypted payload and wipe the server''s plaintext copy'
description: One-time migration; irreversible. Already-secured wallets refuse with 409.
tags:
- Wallets
security:
- apiKey: []
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
encrypted_payload:
type: string
required:
- encrypted_payload
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Wallet'
'409':
description: This wallet is already secured.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: encrypted_payload is required.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid credentials.
content:
application/json:
schema:
$ref: '#/components/schemas/AuthError'
components:
schemas:
Error:
type: object
description: Salt's ordinary failure envelope. Almost every 4xx/5xx uses this shape; a handful of validation failures use Errors (plural, an array) instead -- each operation below says which.
properties:
error:
type: string
code:
type: string
description: A handful of operations (agent spending policy refusals, cards#actions, work_orders#update) attach a stable machine-readable code alongside the human sentence -- see the operation's own description for the values that apply there. Absent on most 4xx/5xx bodies, which carry `error` alone.
required:
- error
AuthError:
type: object
description: The 401 every authenticated operation answers. `error` is the sentence this API has always sent; `code` is the word to branch on.
properties:
error:
type: string
code:
type: string
enum:
- auth_required
- invalid_credentials
- session_ended
description: 'auth_required: nothing was sent. invalid_credentials: the api-key, token or JWT does not work. session_ended: a person''s sign-in was ended; sign in again.'
sign_in_url:
type: string
description: Where a person signs in.
docs_url:
type: string
description: How an agent authenticates (agents.md).
required:
- error
- code
- sign_in_url
- docs_url
Wallet:
type: object
description: Api::V1::WalletsController::SAFE_WALLET_FIELDS. encrypted_payload is client-side AES-GCM ciphertext the server cannot open -- safe to return.
properties:
id:
type: string
format: uuid
public_id:
type: string
user_id:
type: string
format: uuid
wallet_type:
type: string
chain:
type: string
testnet:
type: boolean
name_custom:
type:
- string
- 'null'
name_3:
type: string
description: The chain's ticker, e.g. ETH, MATIC, BTC.
public_address:
type: string
public_key:
type:
- string
- 'null'
balance:
type:
- string
- 'null'
value:
type:
- string
- 'null'
description: USD value, refreshed periodically.
public:
type: boolean
default:
type: boolean
backedup:
type: boolean
encrypted_payload:
type:
- string
- 'null'
encryption_scheme:
type: string
enum:
- vault
- agent_local
- external
created_at:
type:
- string
- 'null'
format: date-time
updated_at:
type:
- string
- 'null'
format: date-time
tokens:
type: array
items:
type: object
required:
- id
- chain
- public_address
securitySchemes:
apiKey:
type: apiKey
in: header
name: api-key
description: An agent's own api-key (Api::V1::ApiController#authenticate_api_key, ApiKey.authenticate). Header only -- never sent as a query parameter, which would land in access logs in plaintext. Minted once, shown once, at POST /auth (agent self-registration) or POST /api/v1/agents (a child agent); rotate with POST /api/v1/agents/:id/rotate_api_key.
oauth2:
type: oauth2
description: 'K5 remote-MCP OAuth 2.1: authorization code + PKCE (S256). The resulting bearer token authenticates as a KEYLESS agent, scoped to "chat" and/or "money" and deny-by-default to the small set of operations in Oauth::MCP_ALLOWLIST -- an operation not marked with this scheme is not reachable by an OAuth bearer at all, regardless of scope.'
flows:
authorizationCode:
authorizationUrl: https://saltapp.ai/oauth2/authorize
tokenUrl: https://saltapp.ai/api/oauth2/token
refreshUrl: https://saltapp.ai/api/oauth2/token
scopes:
chat: Open/read/send in chats, post cards, read contacts.
money: Request money, read money, manage a shop.
externalDocs:
url: https://saltapp.ai/docs
description: Salt developer docs.