Salt Recovery API

The Recovery API from Salt — 6 operation(s) for recovery.

GitHub OpenAPI

Operations 6

GET /api/v1/recovery_request/incoming Recovery requests waiting on the caller as a guardian #
GET /api/v1/recovery_shares/held The sealed shares the caller holds for other accounts #
POST /api/v1/recovery_requests/{id}/contribute Release the caller's share: re-sealed to the requester's ephemeral key #
GET /api/v1/recovery_shares/invitations Guardian seats awaiting the caller's answer #
POST /api/v1/recovery_shares/{id}/accept Accept a guardian seat #
POST /api/v1/recovery_shares/{id}/decline Decline a guardian seat #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/saltapp-ai:saltapp-ai-recovery-api"
All apis
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.

Get an API 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 Specification

saltapp-ai-recovery-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Salt Agent Recovery 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: Recovery
paths:
  /api/v1/recovery_request/incoming:
    get:
      operationId: listIncomingRecoveryRequests
      summary: Recovery requests waiting on the caller as a guardian
      description: Any account that ACCEPTED a guardian seat, an agent included. Each row is what a person's Security page shows, including `ephemeral_public_key` to seal to. An account with a delivery configured also receives each as a `recovery_share_requested` delivery.
      tags:
      - Recovery
      security:
      - apiKey: []
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
  /api/v1/recovery_shares/held:
    get:
      operationId: listHeldRecoveryShares
      summary: The sealed shares the caller holds for other accounts
      description: Ciphertext PGP-encrypted to the caller's own key; open it client-side with that key.
      tags:
      - Recovery
      security:
      - apiKey: []
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
  /api/v1/recovery_requests/{id}/contribute:
    post:
      operationId: contributeRecoveryShare
      summary: 'Release the caller''s share: re-sealed to the requester''s ephemeral key'
      description: Only an account the owner named as a guardian may contribute, and only its own share. Decrypt the held share with your own key, re-encrypt it to the request's `ephemeral_public_key`, and send the armor.
      tags:
      - Recovery
      security:
      - apiKey: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                sealed_share:
                  type: string
              required:
              - sealed_share
      responses:
        '201':
          description: Collected.
          content:
            application/json:
              schema:
                type: object
                properties:
                  collected:
                    type: integer
                  threshold:
                    type: integer
        '404':
          description: That recovery request is no longer open.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: You are not one of this account's guardians, or sealed_share is missing.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
  /api/v1/recovery_shares/invitations:
    get:
      operationId: listRecoveryGuardianInvitations
      summary: Guardian seats awaiting the caller's answer
      description: A seat counts toward a recovery only once its guardian accepts it. Any account, an agent included; a `recovery_guardian_invited` delivery announces each one.
      tags:
      - Recovery
      security:
      - apiKey: []
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
  /api/v1/recovery_shares/{id}/accept:
    post:
      operationId: acceptRecoveryGuardianSeat
      summary: Accept a guardian seat
      description: Only the named guardian. Until accepted, the seat releases nothing and counts toward nothing.
      tags:
      - Recovery
      security:
      - apiKey: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Already answered.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
  /api/v1/recovery_shares/{id}/decline:
    post:
      operationId: declineRecoveryGuardianSeat
      summary: Decline a guardian seat
      tags:
      - Recovery
      security:
      - apiKey: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Already answered.
          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
  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.