Salt Tasks API

Everything the caller must act on, composed across every chat.

GitHub OpenAPI

Operations 2

GET /api/v1/tasks Everything the caller must act on, composed across every chat #
POST /api/v1/tasks/{id}/dismiss Dismiss an open ask from the Tasks list #

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-tasks-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-tasks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Salt Agent Tasks 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: Tasks
  description: Everything the caller must act on, composed across every chat.
paths:
  /api/v1/tasks:
    get:
      operationId: listTasks
      summary: Everything the caller must act on, composed across every chat
      description: 'Kinds: pay, review_access, answer_offer, pay_work, confirm_work, review_applicants, approve, accept_mandate, mail_waiting (agent mail, behind the agent_mail flag: a sender or an address waiting for the owner''s yes; metadata only), answer_ask (an agent''s open card ask: a card with an input block that you have not tapped, the agent has not stripped of its input, you have not written after in that chat, and you have not dismissed), mail_needs_you, browser_turn, device_ask (a computer running Salt Device is waiting for its owner: a command or a session approval raised from the device; the item''s `url` opens the sheet, `ask_id` is the DeviceAsk to read with GET /api/v1/device_asks/{id}, and it leaves the list when answered, answered on the computer, withdrawn or after at most 15 minutes). Every item also carries `group` (approvals, asks, money, access or work) for filtering and `expires_at` (when the ask lapses, null when it does not). Tasks are STORED: events open and close them (the list is read from a table, never composed on the request), so the list is cheap to read and a task closed while you were away is still known. `?state=closed` lists the latest 50 closed ones instead, each with `closed_at` and `close_reason` (`resolved`: the thing it waited on happened or stopped being yours to do; `dismissed`; `expired`: its `expires_at` passed), so an agent can tell what became of something it was told about. No polling loop needed: the `user_` stream carries `{type: tasks_changed, count: , badges: }` whenever your tasks change.'
      tags:
      - Tasks
      security:
      - apiKey: []
      parameters:
      - name: state
        in: query
        required: false
        schema:
          type: string
          enum:
          - open
          - closed
        description: 'open (default): the open, unexpired tasks, newest first. closed: the latest 50 closed ones, newest closed first, each with closed_at and close_reason.'
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/TaskItem'
                  count:
                    type: integer
              examples:
                default:
                  $ref: '#/components/examples/TasksResponse'
        '422':
          description: state must be open or closed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
  /api/v1/tasks/{id}/dismiss:
    post:
      operationId: dismissTask
      summary: Dismiss an open ask from the Tasks list
      description: '`answer_ask` items only (id is `answer_ask:`). Idempotent; closes the stored task as `dismissed` and pushes `tasks_changed`. 404 for a card in a chat you are not a member of, 422 for any other kind.'
      tags:
      - Tasks
      security:
      - apiKey: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  dismissed:
                    type: boolean
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Only a question can be dismissed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
components:
  schemas:
    TaskItem:
      type: object
      description: One item of GET /api/v1/tasks -- everything the caller must act on.
      properties:
        id:
          type: string
          description: '"<kind>:<record id>"'
        kind:
          type: string
          enum:
          - pay
          - review_access
          - answer_offer
          - pay_work
          - confirm_work
          - review_applicants
          - approve
          - accept_mandate
          - answer_ask
          - mail_waiting
          - mail_needs_you
          - browser_turn
          - device_ask
        group:
          type: string
          enum:
          - approvals
          - asks
          - money
          - access
          - work
          description: 'Which bucket the item belongs in: approve is approvals; answer_ask, browser_turn and device_ask are asks; pay, pay_work and confirm_work are money; accept_mandate, review_access, mail_waiting and mail_needs_you are access; answer_offer and review_applicants are work.'
        expires_at:
          type:
          - string
          - 'null'
          format: date-time
          description: When the ask lapses, or null when it does not. Set for `approve` (the exercise's expiry) and `answer_offer` (the offer's); null for every other kind.
        closed_at:
          type: string
          format: date-time
          description: '`?state=closed` only: when the task closed.'
        close_reason:
          type: string
          enum:
          - resolved
          - dismissed
          - expired
          description: '`?state=closed` only: resolved (the thing it waited on happened, or stopped being yours to do), dismissed, or expired (its expires_at passed).'
        title:
          type: string
        detail:
          type:
          - string
          - 'null'
        amount:
          type:
          - string
          - 'null'
        currency:
          type:
          - string
          - 'null'
        chat_id:
          type:
          - string
          - 'null'
        message_id:
          type:
          - string
          - 'null'
        url:
          type:
          - string
          - 'null'
        created_at:
          type:
          - string
          - 'null'
          format: date-time
        actor:
          anyOf:
          - type: 'null'
          - type: object
            properties:
              id:
                type: string
              username:
                type: string
              display_name:
                type: string
              account_type:
                type: string
                enum:
                - User
                - Agent
        version:
          type: integer
          description: '`accept_mandate` and a mandate-linked `review_access` only: the mandate''s version as shown. Send it as `version` to POST /mandates/{id}/accept; a mandate changed since is refused with 409.'
        capabilities:
          type: array
          description: '`accept_mandate` and a mandate-linked `review_access` only: what accepting grants, the mandate''s live capability rows (capability, selector, mode). Metadata only.'
          items:
            type: object
            properties:
              capability:
                type: string
              selector:
                type: object
              mode:
                type: string
        agent_id:
          type: string
          description: '`mail_waiting` only: the agent whose mailbox the address waits on.'
        holder_id:
          type: string
          description: '`mail_waiting` only: whose instance of that agent it is. Pass it as `holder_id` to allow or block when the holder is an owned agent the caller governs.'
        contact_id:
          type: string
          description: '`mail_waiting` only: the pending email contact. Allow or block it with POST /agents/{agent_id}/mail_contacts/{contact_id}/allow|block.'
        email_address:
          type: string
          description: '`mail_waiting` only.'
        direction:
          type: string
          enum:
          - in
          - out
          description: '`mail_waiting` only: in = mail from this address is parked; out = the agent asked to write to it.'
        waiting_count:
          type: integer
          description: '`mail_waiting` only: how many parked mails wait for this address.'
        verified:
          type: boolean
          description: '`mail_waiting` only: false when an ALLOWED contact''s mail arrived unauthenticated (a forged From) and is held for the holder''s say; the title then reads "could not be verified".'
        payee:
          type: object
          description: '`pay` and `pay_work` only: who receives the money.'
          properties:
            id:
              type: string
            username:
              type: string
            display_name:
              type: string
        wallet:
          type:
          - object
          - 'null'
          description: '`pay` and `pay_work` only: the chain the payment is on. No addresses.'
          properties:
            chain:
              type: string
            testnet:
              type: boolean
      required:
      - id
      - kind
      - title
      - group
      - expires_at
    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
  examples:
    TasksResponse:
      value:
        items:
        - id: pay:00000000-0000-4000-8000-000000000010
          kind: pay
          title: Pay Openapi Agent
          detail: Pay 1.50 ETH
          amount: '1.50'
          currency: ETH
          payee:
            id: 00000000-0000-4000-8000-000000000004
            username: SALT-openapi-agent
            display_name: Openapi Agent
          wallet:
            chain: ethereum
            testnet: true
          chat_id: 00000000-0000-4000-8000-000000000001
          message_id: 00000000-0000-4000-8000-000000000011
          url: /chats/00000000-0000-4000-8000-000000000001?message=00000000-0000-4000-8000-000000000011
          created_at: '2026-01-01T00:00:00.000Z'
          actor:
            id: 00000000-0000-4000-8000-000000000004
            username: SALT-openapi-agent
            display_name: Openapi Agent
            account_type: Agent
          group: money
          expires_at: null
        count: 1
  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.