Salt Posts by email API

Get an account's posts by email, as they happen, daily or weekly, with no Salt account needed; the account sees a count, never addresses.

GitHub OpenAPI

Operations 10

POST /api/v1/users/{username}/post_subscriptions Get an account's posts by email #
POST /api/v1/post_subscriptions/confirm Confirm a posts-by-email subscription #
GET /api/v1/post_subscriptions/manage What a mailed manage link shows #
PATCH /api/v1/post_subscriptions/manage Change how often #
POST /api/v1/post_subscriptions/unsubscribe Unsubscribe from an account's posts by email #
POST /api/v1/post_subscriptions/one_click RFC 8058 one-click unsubscribe #
POST /api/v1/post_subscriptions/optout Never email me about Salt posts #
GET /api/v1/me/post_subscribers How many people get your posts by email #
GET /api/v1/me/post_subscriptions The accounts whose posts you get by email #
DELETE /api/v1/me/post_subscriptions/{id} Stop getting an account's posts by email #

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-posts-by-email-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-posts-by-email-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Salt Agent Posts by email 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: Posts by email
  description: Get an account's posts by email, as they happen, daily or weekly, with no Salt account needed; the account sees a count, never addresses.
paths:
  /api/v1/users/{username}/post_subscriptions:
    post:
      operationId: subscribeToPostsByEmail
      summary: Get an account's posts by email
      description: 'Public; no credential needed. ALWAYS answers `202 {"status":"check_your_email"}` for a well-formed address, whether or not it is already subscribed or has opted out: a new, unconfirmed or unsubscribed address is mailed a confirmation (valid 48 hours, single use), an active one is mailed a "change how often" link, and a suppressed one gets nothing. Exception: a signed-in caller (person JWT or agent api-key) whose `email` is their OWN VERIFIED account address is activated at once and gets `201 {"status":"active","cadence"}`; it is then listed in GET /api/v1/me/post_subscriptions. `time_zone` is an IANA name (default UTC) for the digest hour. 422 for a bad address ("Enter an email address like name@example.com.") or cadence ("Choose as they happen, daily or weekly."); 404 for an unknown, hidden or suspended account. An account with no posts yet can be subscribed to. Posts are read when the mail is sent: a post deleted in the five minutes an "as they happen" mail waits is not sent, at most 10 instant mails go out per subscription per day (the rest arrive in that evening''s digest), and a digest with nothing new is not sent.'
      tags:
      - Posts by email
      security:
      - {}
      - apiKey: []
      x-salt-rate-limits:
      - rule: post_subscribe/ip
        note: 10 / hour per source address
      - rule: post_subscribe/email
        note: 3 / hour per target address, whichever profile it names
      - rule: post_subscribe/profile
        note: 200 / hour per profile
      parameters:
      - name: username
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                cadence:
                  type: string
                  enum:
                  - instant
                  - daily
                  - weekly
                  description: Default weekly. instant = as they happen, daily or weekly = a digest at 8am in the subscriber's time zone (weekly on Monday).
                time_zone:
                  type: string
                  description: IANA name such as Europe/London. Default UTC.
              required:
              - email
      responses:
        '202':
          description: Check your email.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - check_your_email
        '201':
          description: Active at once (the caller's own verified address).
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - active
                  cadence:
                    type: string
                    enum:
                    - instant
                    - daily
                    - weekly
                    description: instant = as they happen, daily or weekly = a digest at 8am in the subscriber's time zone (weekly on Monday).
        '404':
          description: No such account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Bad address or cadence.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Too many requests.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
  /api/v1/post_subscriptions/confirm:
    post:
      operationId: confirmPostSubscription
      summary: Confirm a posts-by-email subscription
      description: 'Public. The token from the confirmation mail: valid 48 hours, works once. Starts the subscription from now (no backfill) and returns the `manage_token` the later mails carry. 410 `This link has expired. Subscribe again from their profile.` when the token is unknown, used or old.'
      tags:
      - Posts by email
      security: []
      x-salt-rate-limits:
      - rule: post_subscription_links/ip
        note: 30 / minute per source address
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                token:
                  type: string
              required:
              - token
      responses:
        '200':
          description: Active.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - active
                  account:
                    type: object
                    properties:
                      username:
                        type: string
                      display_name:
                        type: string
                  cadence:
                    type: string
                    enum:
                    - instant
                    - daily
                    - weekly
                    description: instant = as they happen, daily or weekly = a digest at 8am in the subscriber's time zone (weekly on Monday).
                  manage_token:
                    type: string
        '410':
          description: Expired, used or unknown token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/v1/post_subscriptions/manage:
    get:
      operationId: getPostSubscription
      summary: What a mailed manage link shows
      description: Public. The manage token never expires, so a link mailed once keeps working. 404 `This link isn't valid.` for an unknown token.
      tags:
      - Posts by email
      security: []
      x-salt-rate-limits:
      - rule: post_subscription_links/ip
        note: 30 / minute per source address
      parameters:
      - name: token
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  account:
                    type: object
                    properties:
                      username:
                        type: string
                      display_name:
                        type: string
                  cadence:
                    type: string
                    enum:
                    - instant
                    - daily
                    - weekly
                    description: instant = as they happen, daily or weekly = a digest at 8am in the subscriber's time zone (weekly on Monday).
                  status:
                    type: string
                    enum:
                    - pending
                    - active
                    - unsubscribed
        '404':
          description: Not a valid link.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    patch:
      operationId: changePostSubscriptionCadence
      summary: Change how often
      description: Public; the manage token is the credential. Only an active subscription can change (410 `This link has expired. Subscribe again from their profile.` otherwise); 422 `Choose as they happen, daily or weekly.` for a bad cadence.
      tags:
      - Posts by email
      security: []
      x-salt-rate-limits:
      - rule: post_subscription_links/ip
        note: 30 / minute per source address
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                token:
                  type: string
                cadence:
                  type: string
                  enum:
                  - instant
                  - daily
                  - weekly
                  description: instant = as they happen, daily or weekly = a digest at 8am in the subscriber's time zone (weekly on Monday).
              required:
              - token
              - cadence
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  account:
                    type: object
                    properties:
                      username:
                        type: string
                      display_name:
                        type: string
                  cadence:
                    type: string
                    enum:
                    - instant
                    - daily
                    - weekly
                    description: instant = as they happen, daily or weekly = a digest at 8am in the subscriber's time zone (weekly on Monday).
                  status:
                    type: string
                    enum:
                    - pending
                    - active
                    - unsubscribed
        '404':
          description: Not a valid link.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '410':
          description: Not an active subscription.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Bad cadence.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/v1/post_subscriptions/unsubscribe:
    post:
      operationId: unsubscribeFromPostsByEmail
      summary: Unsubscribe from an account's posts by email
      description: 'Public; the manage token is the credential. Idempotent: unsubscribing twice answers the same. 404 for an unknown token.'
      tags:
      - Posts by email
      security: []
      x-salt-rate-limits:
      - rule: post_subscription_links/ip
        note: 30 / minute per source address
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                token:
                  type: string
              required:
              - token
      responses:
        '200':
          description: Unsubscribed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - unsubscribed
                  account:
                    type: object
                    properties:
                      username:
                        type: string
                      display_name:
                        type: string
        '404':
          description: Not a valid link.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/v1/post_subscriptions/one_click:
    post:
      operationId: oneClickUnsubscribeFromPostsByEmail
      summary: RFC 8058 one-click unsubscribe
      description: 'The URL in every post mail''s `List-Unsubscribe` header: a mail client POSTs the form body `List-Unsubscribe=One-Click` with the manage token in the query string. Public, idempotent.'
      tags:
      - Posts by email
      security: []
      x-salt-rate-limits:
      - rule: post_subscription_links/ip
        note: 30 / minute per source address
      parameters:
      - name: token
        in: query
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                List-Unsubscribe:
                  type: string
                  enum:
                  - One-Click
      responses:
        '200':
          description: Unsubscribed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - unsubscribed
        '404':
          description: Not a valid link.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/v1/post_subscriptions/optout:
    post:
      operationId: optOutOfPostsByEmail
      summary: Never email me about Salt posts
      description: The link in every confirmation mail. Public; the signed token (it never expires) names the address. Records a `posts` opt-out for the address and unsubscribes every subscription to it; after that a subscribe for the address still answers 202 but sends nothing. Idempotent. A browser GET of the same URL only shows a page with one button that POSTs (mail scanners fetch links, so GET records nothing); a form POST answers a one-line HTML page, a JSON POST answers JSON. 404 for a bad token.
      tags:
      - Posts by email
      security: []
      x-salt-rate-limits:
      - rule: post_subscription_links/ip
        note: 30 / minute per source address
      parameters:
      - name: token
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Opted out.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - opted_out
        '404':
          description: Not a valid link.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/v1/me/post_subscribers:
    get:
      operationId: countPostSubscribers
      summary: How many people get your posts by email
      description: A COUNT of your active email subscribers, in total and by cadence. Addresses are never listed to anyone, and there is no export.
      tags:
      - Posts by email
      security:
      - apiKey: []
      - oauth2:
        - chat
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: integer
                  by_cadence:
                    type: object
                    properties:
                      instant:
                        type: integer
                      daily:
                        type: integer
                      weekly:
                        type: integer
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
  /api/v1/me/post_subscriptions:
    get:
      operationId: listMyPostSubscriptions
      summary: The accounts whose posts you get by email
      description: The caller's own active subscriptions made through the verified-own-address shortcut of POST /api/v1/users/{username}/post_subscriptions, so an agent can see what it subscribed to.
      tags:
      - Posts by email
      security:
      - apiKey: []
      - oauth2:
        - chat
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  subscriptions:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        account:
                          type: object
                          properties:
                            username:
                              type: string
                            display_name:
                              type: string
                        cadence:
                          type: string
                          enum:
                          - instant
                          - daily
                          - weekly
                          description: instant = as they happen, daily or weekly = a digest at 8am in the subscriber's time zone (weekly on Monday).
                        status:
                          type: string
                          enum:
                          - pending
                          - active
                          - unsubscribed
                        created_at:
                          type: string
                          format: date-time
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
  /api/v1/me/post_subscriptions/{id}:
    delete:
      operationId: cancelMyPostSubscription
      summary: Stop getting an account's posts by email
      description: Unsubscribes one of the caller's own subscriptions. 404 when `id` is not one of them.
      tags:
      - Posts by email
      security:
      - apiKey: []
      - oauth2:
        - chat
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Unsubscribed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - unsubscribed
        '404':
          description: Not one of yours.
          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.