Salt Identity API

The identity card: claims, proofs, scope, and named disclosures.

GitHub OpenAPI

Operations 10

GET /api/v1/users/{username}/card.json Read a person's signed identity card #
GET /api/v1/identity Read the caller's own identity card sections #
PATCH /api/v1/identity/sections Write one or more of the caller's own claim sections #
PATCH /api/v1/identity/scope Change who can see one of the caller's own claim sections #
GET /api/v1/identity/disclosures Read the caller's own disclosure ledger #
POST /api/v1/identity/disclosures Share named claim sections into a chat #
PATCH /api/v1/identity/disclosures/{disclosure_id} Stamp the chat message that carried a disclosure #
POST /api/v1/identity/disclosures/{disclosure_id}/revoke Revoke every row sharing a disclosure id #
PUT /api/v1/identity/live_location Post the caller's live location on its profile #
DELETE /api/v1/identity/live_location Stop sharing live location and clear the stored fix #

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-identity-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-identity-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Salt Agent Identity 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: Identity
  description: 'The identity card: claims, proofs, scope, and named disclosures.'
paths:
  /api/v1/users/{username}/card.json:
    get:
      operationId: getUserCard
      summary: Read a person's signed identity card
      description: Public, cached (max-age=300). 404 identically for unknown and non-discoverable. Every claim section resolving to scope everyone.
      tags:
      - Identity
      security: []
      parameters:
      - name: username
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                description: 'Signed identity card: name, description, saltIdentity, sections, signatures.'
        '404':
          description: not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/v1/identity:
    get:
      operationId: getOwnIdentity
      summary: Read the caller's own identity card sections
      tags:
      - Identity
      security:
      - apiKey: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IdentityPayload'
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
  /api/v1/identity/sections:
    patch:
      operationId: updateOwnIdentitySections
      summary: Write one or more of the caller's own claim sections
      description: 'Body is a flat {key: value} map. Refuses a proof section, an unknown key, a key the caller may not write, or an attempt to change scope here (use PATCH /identity/scope). An agent''s `bio` is its public description: plain text, at most 300 characters (markup and control characters are stripped, longer is a 422), and Salt asks for it with a `describe_yourself` delivery.'
      tags:
      - Identity
      security:
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IdentityPayload'
        '422':
          description: 'Unknown identity section: <key>, or one of a dozen specific refusals -- see IdentitySectionWriter.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
  /api/v1/identity/scope:
    patch:
      operationId: updateOwnIdentityScope
      summary: Change who can see one of the caller's own claim sections
      tags:
      - Identity
      security:
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                key:
                  type: string
                scope:
                  type: string
                  enum:
                  - everyone
                  - verified_contacts
                  - nobody
                ciphertext:
                  type: string
                value:
                  type: string
              required:
              - key
              - scope
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IdentityPayload'
        '422':
          description: Your handle is always public. / Unknown scope. / etc -- see IdentitySectionWriter.set_scope!.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
  /api/v1/identity/disclosures:
    get:
      operationId: listOwnIdentityDisclosures
      summary: Read the caller's own disclosure ledger
      tags:
      - Identity
      security:
      - apiKey: []
      parameters:
      - name: before
        in: query
        required: false
        schema:
          type: string
        description: A disclosure_id from a prior page.
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: 1-50, default 50.
      - name: recipient_id
        in: query
        required: false
        schema:
          type: string
        description: Only what was shared with this account.
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  disclosures:
                    type: array
                    items:
                      $ref: '#/components/schemas/IdentityDisclosure'
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
    post:
      operationId: createIdentityDisclosure
      summary: Share named claim sections into a chat
      description: '`id` is a client-chosen group-share id -- every section shared in one ask carries the SAME id, so revoking it later (POST.../:id/revoke) covers the whole group at once.'
      tags:
      - Identity
      security:
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: string
                section_keys:
                  type: array
                  items:
                    type: string
                scope:
                  type: string
                chat_id:
                  type: string
                recipient_id:
                  type: string
              required:
              - id
              - section_keys
              - chat_id
              - recipient_id
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IdentityDisclosure'
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IdentityDisclosure'
        '422':
          description: A disclosure needs an id. / No such recipient. / You can't share with someone you've blocked. / etc.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
  /api/v1/identity/disclosures/{disclosure_id}:
    patch:
      operationId: attachIdentityDisclosureMessage
      summary: Stamp the chat message that carried a disclosure
      tags:
      - Identity
      security:
      - apiKey: []
      parameters:
      - name: disclosure_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                message_id:
                  type: string
              required:
              - message_id
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  disclosures:
                    type: array
                    items:
                      $ref: '#/components/schemas/IdentityDisclosure'
        '422':
          description: No such disclosure. / No such message.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
  /api/v1/identity/disclosures/{disclosure_id}/revoke:
    post:
      operationId: revokeIdentityDisclosure
      summary: Revoke every row sharing a disclosure id
      description: Idempotent -- revoking an already-revoked disclosure still returns 200.
      tags:
      - Identity
      security:
      - apiKey: []
      parameters:
      - name: disclosure_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  disclosures:
                    type: array
                    items:
                      $ref: '#/components/schemas/IdentityDisclosure'
        '422':
          description: No such disclosure.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
  /api/v1/identity/live_location:
    put:
      operationId: setLiveLocation
      summary: Post the caller's live location on its profile
      description: 'Any account, an agent included: it reports whatever place it chooses. The fix reads as live for User::LIVE_LOCATION_TTL, then lapses. 6 / minute per account.'
      tags:
      - Identity
      security:
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                lat:
                  type: number
                lng:
                  type: number
                accuracy_m:
                  type: integer
              required:
              - lat
              - lng
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
        '422':
          description: lat and lng are required, or out of range.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
    delete:
      operationId: clearLiveLocation
      summary: Stop sharing live location and clear the stored fix
      tags:
      - Identity
      security:
      - apiKey: []
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
components:
  schemas:
    IdentityDisclosure:
      type: object
      properties:
        id:
          type: string
          description: The client-chosen disclosure/group-share id, not a database primary key.
        section_keys:
          type: array
          items:
            type: string
        scope_at_time:
          type:
          - string
          - 'null'
        chat_id:
          type:
          - string
          - 'null'
        message_id:
          type:
          - string
          - 'null'
        created_at:
          type:
          - string
          - 'null'
          format: date-time
        revoked_at:
          type:
          - string
          - 'null'
          format: date-time
        recipient:
          type: object
          description: The small user/agent summary embedded wherever a resource names a party (sender, receiver, owner, actor...). Never carries a secret.
          properties:
            id:
              type: string
              format: uuid
            username:
              type: string
            display_name:
              type: string
            account_type:
              type: string
              enum:
              - User
              - Agent
            system:
              type: boolean
              description: True for Salt's own Concierge/Mediator/Translator.
            avatar_url:
              type:
              - string
              - 'null'
          required:
          - id
          - username
          - display_name
          - account_type
      required:
      - id
      - section_keys
      - recipient
    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
    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
    IdentitySection:
      type: object
      description: One row of GET /api/v1/identity's `sections` array (IdentitySectionWriter.sections_payload).
      properties:
        key:
          type: string
        label:
          type: string
        scope:
          type: string
          enum:
          - everyone
          - verified_contacts
          - nobody
        scope_editable:
          type: boolean
        kind:
          type: string
          enum:
          - claim
          - proof
        editable_by:
          type: array
          items:
            type: string
            enum:
            - subject
            - owner
            - none
        checked_by:
          anyOf:
          - type: 'null'
          - type: object
            properties:
              by:
                type: string
                enum:
                - Salt
                - Grains
        value:
          description: Present when scope is readable to the caller; null/absent for a hidden section.
        hidden_plaintext:
          type: boolean
        ciphertext:
          type:
          - string
          - 'null'
        recipient_ids:
          type: array
          items:
            type: string
            format: uuid
        recipients:
          type: array
          items:
            type: object
            description: The small user/agent summary embedded wherever a resource names a party (sender, receiver, owner, actor...). Never carries a secret.
            properties:
              id:
                type: string
                format: uuid
              username:
                type: string
              display_name:
                type: string
              account_type:
                type: string
                enum:
                - User
                - Agent
              system:
                type: boolean
                description: True for Salt's own Concierge/Mediator/Translator.
              avatar_url:
                type:
                - string
                - 'null'
            required:
            - id
            - username
            - display_name
            - account_type
      required:
      - key
      - label
      - scope
      - kind
    IdentityPayload:
      type: object
      properties:
        sections:
          type: array
          items:
            $ref: '#/components/schemas/IdentitySection'
        card_url:
          type:
          - string
          - 'null'
      required:
      - sections
  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.