Salt OAuth API

The K5 remote-MCP OAuth 2.1 authorization server.

GitHub OpenAPI

Operations 5

GET /.well-known/oauth-authorization-server RFC 8414 authorization server metadata #
POST /api/oauth2/register RFC 7591 dynamic client registration #
POST /api/oauth2/token Exchange an authorization code, or refresh, for a bearer token #
POST /api/oauth2/revoke RFC 7009 token revocation #
GET /api/v1/oauth2/grant A connected app reads its own grant #

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-oauth-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-oauth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Salt Agent OAuth 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: OAuth
  description: The K5 remote-MCP OAuth 2.1 authorization server.
paths:
  /.well-known/oauth-authorization-server:
    get:
      operationId: getOauthServerMetadata
      summary: RFC 8414 authorization server metadata
      tags:
      - OAuth
      security: []
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  issuer:
                    type: string
                  authorization_endpoint:
                    type: string
                  token_endpoint:
                    type: string
                  registration_endpoint:
                    type: string
                  revocation_endpoint:
                    type: string
                  response_types_supported:
                    type: array
                    minItems: 1
                    maxItems: 1
                    items:
                      type: string
                      const: code
                  grant_types_supported:
                    type: array
                    items:
                      type: string
                  code_challenge_methods_supported:
                    type: array
                    minItems: 1
                    maxItems: 1
                    items:
                      type: string
                      const: S256
                  token_endpoint_auth_methods_supported:
                    type: array
                    items:
                      type: string
                      enum:
                      - none
                      - client_secret_basic
                      - client_secret_post
                  scopes_supported:
                    type: array
                    items:
                      type: string
                  authorization_response_iss_parameter_supported:
                    type: boolean
                    const: true
  /api/oauth2/register:
    post:
      operationId: registerOauthClient
      summary: RFC 7591 dynamic client registration
      description: 'Public, unauthenticated -- that is the point of DCR. token_endpoint_auth_method is "none" (a public client, PKCE required), "client_secret_basic" or "client_secret_post" (a confidential client: the response carries a client_secret, shown once and never again). client_name may not impersonate Salt or use a reserved name.'
      tags:
      - OAuth
      security: []
      x-salt-rate-limits:
      - rule: oauth_register/ip
        note: 10 / hour
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                client_name:
                  type: string
                redirect_uris:
                  type: array
                  items:
                    type: string
                  maxItems: 20
                grant_types:
                  type: array
                  items:
                    type: string
                  default:
                  - authorization_code
                  - refresh_token
                response_types:
                  type: array
                  items:
                    type: string
                  default:
                  - code
                token_endpoint_auth_method:
                  type: string
                  enum:
                  - none
                  - client_secret_basic
                  - client_secret_post
                  default: none
                client_uri:
                  type: string
              required:
              - client_name
              - redirect_uris
      responses:
        '201':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  client_id:
                    type: string
                  client_name:
                    type: string
                  redirect_uris:
                    type: array
                    items:
                      type: string
                  grant_types:
                    type: array
                    items:
                      type: string
                  response_types:
                    type: array
                    items:
                      type: string
                  token_endpoint_auth_method:
                    type: string
                  client_id_issued_at:
                    type: integer
                  client_secret:
                    type: string
                    description: ocs_-prefixed. Only for a confidential client, only in this response.
                  client_secret_expires_at:
                    type: integer
                    const: 0
        '400':
          description: invalid_client_metadata.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  error_description:
                    type: string
  /api/oauth2/token:
    post:
      operationId: exchangeOauthToken
      summary: Exchange an authorization code, or refresh, for a bearer token
      description: 'grant_type: authorization_code (with code_verifier, PKCE S256) or refresh_token. A public client''s PKCE verifier or refresh token IS its credential. A confidential client authenticates on both grants by the method it registered (HTTP Basic, or client_secret in the body) and may omit PKCE unless it sent a code_challenge at authorize. Replaying a used code or refresh token revokes the whole token family.'
      tags:
      - OAuth
      security: []
      x-salt-rate-limits:
      - rule: oauth_token/ip
        note: 30 / minute
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                grant_type:
                  type: string
                  enum:
                  - authorization_code
                  - refresh_token
                code:
                  type: string
                client_id:
                  type: string
                client_secret:
                  type: string
                  description: Confidential client registered as client_secret_post only.
                redirect_uri:
                  type: string
                code_verifier:
                  type: string
                resource:
                  type: string
                refresh_token:
                  type: string
              required:
              - grant_type
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  access_token:
                    type: string
                    description: sat_-prefixed.
                  token_type:
                    type: string
                    const: Bearer
                  expires_in:
                    type: integer
                  refresh_token:
                    type: string
                    description: srt_-prefixed.
                  scope:
                    type: string
                  resource:
                    type: string
        '401':
          description: 'invalid_client: client authentication failed.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  error_description:
                    type: string
        '400':
          description: invalid_request / invalid_grant / invalid_target / unsupported_grant_type.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  error_description:
                    type: string
  /api/oauth2/revoke:
    post:
      operationId: revokeOauthToken
      summary: RFC 7009 token revocation
      description: Always answers 200, even for an unknown, mismatched, or already-revoked token -- spec-mandated non-oracle behavior. Presenting a refresh token revokes its whole family.
      tags:
      - OAuth
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                token:
                  type: string
                client_id:
                  type: string
              required:
              - token
      responses:
        '200':
          description: Always OK, empty body.
  /api/v1/oauth2/grant:
    get:
      operationId: getOwnOauthGrant
      summary: A connected app reads its own grant
      description: The one action reachable by an OAuth bearer with scope:any (Oauth::MCP_ALLOWLIST). Refused (403) for a JWT or api-key caller -- this is for the connected app's own bearer, not its owning agent's api-key.
      tags:
      - OAuth
      security:
      - oauth2: []
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  scopes:
                    type: array
                    items:
                      type: string
                  wallets:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        chain:
                          type: string
                        testnet:
                          type: boolean
                        label:
                          type: string
        '403':
          description: This endpoint is for a connected app's own bearer token.
          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.