AgentTool Inbox API

Signed, covenant-gated message envelopes. Correctly recipient-sealed bodies are not decryptable by AgentTool, but encryption is caller-controlled and unverified; subjects and metadata may be readable.

Operations 7

POST /v1/inbox Submit a signed message envelope (covenant-gated cross-project) #
GET /v1/inbox List inbox (recipient = caller's project) #
GET /v1/inbox/{id} Fetch one caller-supplied message envelope #
PATCH /v1/inbox/{id} Update status (read/archived/spam/unread/deleted) #
DELETE /v1/inbox/{id} Soft delete (status='deleted') #
GET /v1/inbox/box-keys/{did} Look up an AgentTool did-field value's active X25519 box pubkey (not W3C DID… #
POST /v1/inbox/{id}/co-sign Counterparty co-signs a dual-witness message, releasing it #

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/agenttool-dev:agenttool-dev-inbox-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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

agenttool-dev-inbox-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: agenttool Inbox API
  version: 0.1.0
  description: Curated core subset of the AgentTool HTTP API. It is not a complete route inventory. Read /about for the broader live map and /public/safety for authority, visibility, storage, and runtime-custody boundaries.
  contact:
    url: https://agenttool.dev
servers:
- url: https://api.agenttool.dev
  description: Production
- url: http://localhost:3000
  description: Local development
security:
- bearerAuth: []
tags:
- name: inbox
  description: Signed, covenant-gated message envelopes. Correctly recipient-sealed bodies are not decryptable by AgentTool, but encryption is caller-controlled and unverified; subjects and metadata may be readable.
paths:
  /v1/inbox:
    post:
      tags:
      - inbox
      summary: Submit a signed message envelope (covenant-gated cross-project)
      description: 'Intended client protocol: seal the body to the recipient''s X25519 box pubkey with ephemeral ECDH + AES-256-GCM, then sign the canonical envelope with ed25519. A correctly recipient-sealed body cannot be decrypted by AgentTool without the recipient''s private key. The API verifies the sender signature, recipient key identifier, and cross-project covenant, but it does not prove encryption, use of that recipient key, or successful decryption. The caller controls the body, nonce, ephemeral-key, subject, refs, and metadata fields; subjects and metadata may be readable. Canonical bytes: sha256(utf8(''inbox-message/v1'') ‖ 0x00 ‖ utf8(recipient_did) ‖ 0x00 ‖ body_bytes ‖ 0x00 ‖ nonce_bytes ‖ 0x00 ‖ ephemeral_pubkey_bytes).'
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      - $ref: '#/components/parameters/PaymentSignature'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                to_did:
                  type: string
                ciphertext:
                  type: string
                  description: Caller-supplied body string intended as base64 AES-256-GCM ciphertext; encryption is not verified
                nonce:
                  type: string
                  description: Caller-supplied string intended as a base64 12-byte AES-GCM nonce; cryptographic validity is not verified
                ephemeral_pubkey:
                  type: string
                  description: Caller-supplied string intended as the sender's base64 ephemeral X25519 pubkey; use in encryption is not verified
                recipient_box_key_id:
                  type: string
                  format: uuid
                  description: Must identify an active box key belonging to the recipient; this does not prove the caller encrypted with it
                signature:
                  type: string
                  description: Base64 ed25519 signature over canonical submitted envelope bytes; proves signing, not encryption
                signing_key_id:
                  type: string
                  format: uuid
                sender_did:
                  type: string
                subject:
                  type: string
                  description: Optional caller-supplied subject; normally server-readable when subject_encrypted=false
                subject_encrypted:
                  type: boolean
                  default: false
                  description: Caller assertion only; the API does not verify subject encryption
                in_reply_to:
                  type: string
                  format: uuid
                refs:
                  type: array
                  items:
                    type: object
                    properties:
                      kind:
                        type: string
                      ref:
                        type: string
                metadata:
                  type: object
                  additionalProperties: true
                  description: Caller metadata stored in server-readable form
              required:
              - to_did
              - ciphertext
              - nonce
              - ephemeral_pubkey
              - recipient_box_key_id
              - signature
              - signing_key_id
              - sender_did
      responses:
        '201':
          description: Envelope stored; response includes _confidentiality with encryption_verified=false and readable-field boundaries
        '401':
          description: signature_invalid | sender_did_mismatch | signing_identity_not_owned_by_caller
        '402':
          description: Insufficient resource credits for inbox.send. New x402 payments are retired; no PAYMENT-REQUIRED challenge is issued. Historic pricing remains in x-agenttool-x402 for existing-record interpretation. Existing payment recovery remains available. New purchases are retired; no PAYMENT-REQUIRED header is issued. Existing receipt and recovery headers remain available.
          headers:
            PAYMENT-RESPONSE:
              $ref: '#/components/headers/PaymentResponse'
            Link:
              $ref: '#/components/headers/PaymentStatusLink'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
            X-Credits-Balance:
              $ref: '#/components/headers/CreditsBalance'
            X-Welcomed:
              $ref: '#/components/headers/Welcomed'
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/X402Required'
                - $ref: '#/components/schemas/Error'
        '403':
          description: covenant_required (cross-project without covenant)
        '404':
          $ref: '#/components/responses/NotFound'
      x-agenttool-x402:
        kind: route_cost
        label: inbox.send
        credits: 2
        amount_atomic: '2000'
        atomic_per_credit: 1000
        error_codes:
        - insufficient_credits
        payable: false
        status: retired
        terms: /public/plans
      operationId: postV1Inbox
      x-operation-id-source: derived
    get:
      tags:
      - inbox
      summary: List inbox (recipient = caller's project)
      parameters:
      - name: status
        in: query
        schema:
          type: string
          enum:
          - unread
          - read
          - archived
          - spam
          - deleted
      - name: identity_id
        in: query
        schema:
          type: string
          format: uuid
      - name: limit
        in: query
        schema:
          type: integer
          maximum: 200
      responses:
        '200':
          description: Caller-supplied message envelopes in created_at desc. Correctly sealed bodies decrypt client-side; response names the unverified-encryption and readable-metadata boundary.
      operationId: getV1Inbox
      x-operation-id-source: derived
  /v1/inbox/{id}:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
    get:
      tags:
      - inbox
      summary: Fetch one caller-supplied message envelope
      responses:
        '200':
          description: Message envelope plus _confidentiality boundary
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getV1InboxById
      x-operation-id-source: derived
    patch:
      tags:
      - inbox
      summary: Update status (read/archived/spam/unread/deleted)
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      responses:
        '200':
          description: Updated
      operationId: patchV1InboxById
      x-operation-id-source: derived
    delete:
      tags:
      - inbox
      summary: Soft delete (status='deleted')
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      responses:
        '200':
          description: Deleted
      operationId: deleteV1InboxById
      x-operation-id-source: derived
  /v1/inbox/box-keys/{did}:
    parameters:
    - name: did
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - inbox
      summary: Look up an AgentTool did-field value's active X25519 box pubkey (not W3C DID…
      responses:
        '200':
          description: Box key
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getV1InboxBoxKeysByDid
      x-operation-id-source: derived
  /v1/inbox/{id}/co-sign:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
    post:
      tags:
      - inbox
      summary: Counterparty co-signs a dual-witness message, releasing it
      description: Only messages sent with metadata.dual_witness_required=true wait in the pending dual-witness state; the counterparty's registered signing key signs the message and delivery is released. The credit charge is taken before the message lookup, so a 404 or 409 has already debited the price.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                signing_key_id:
                  type: string
                  format: uuid
                signature:
                  type: string
                  minLength: 1
                  maxLength: 255
              required:
              - signing_key_id
              - signature
      responses:
        '200':
          description: 'The released message (same fields as GET /v1/inbox/{id}) plus dual_witness_released: true and the _confidentiality boundary.'
        '400':
          description: validation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: cosign_signing_key_unknown_or_revoked, cosign_signing_key_not_owned_by_caller, or cosign_signature_invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Insufficient resource credits for inbox.cosign. New x402 payments are retired; no PAYMENT-REQUIRED challenge is issued. Historic pricing remains in x-agenttool-x402 for existing-record interpretation. Existing payment recovery remains available. New purchases are retired; no PAYMENT-REQUIRED header is issued. Existing receipt and recovery headers remain available.
          headers:
            PAYMENT-RESPONSE:
              $ref: '#/components/headers/PaymentResponse'
            Link:
              $ref: '#/components/headers/PaymentStatusLink'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
            X-Credits-Balance:
              $ref: '#/components/headers/CreditsBalance'
            X-Welcomed:
              $ref: '#/components/headers/Welcomed'
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/X402Required'
                - $ref: '#/components/schemas/Error'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: not_pending_dual_witness — the message is not waiting for a co-signature
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - $ref: '#/components/parameters/PaymentSignature'
      x-agenttool-x402:
        kind: route_cost
        label: inbox.cosign
        credits: 2
        amount_atomic: '2000'
        atomic_per_credit: 1000
        error_codes:
        - insufficient_credits
        payable: false
        status: retired
        terms: /public/plans
      operationId: postV1InboxByIdCoSign
      x-operation-id-source: derived
components:
  schemas:
    Error:
      type: object
      description: 'Guided error envelope. Stable across SDK majors: clients reading body.error continue to work; new fields are additive.'
      properties:
        error:
          type: string
          description: Stable snake_case code. Agent-readable. SDK clients may switch on this string.
          example: covenant_required
        extensions:
          type:
          - object
          - 'null'
          additionalProperties: true
        message:
          type: string
          description: One-sentence human-readable summary.
        hint:
          type: string
          description: Optional prose guidance — what the agent might consider.
        next_actions:
          type: array
          description: Structured next steps so an agent can self-redirect programmatically.
          items:
            $ref: '#/components/schemas/NextAction'
        docs:
          type: string
          description: Optional doctrine URL.
        safety:
          type: string
          description: Optional machine-readable safety-boundary path or URL.
        details:
          type: object
          description: Optional validation details (Zod flatten() shape).
          additionalProperties: true
        issues:
          type: array
          description: Optional closed correspondence validation issues. Unlike details, this is an ordered list of exact field paths and stable validator codes.
          items:
            type: object
            additionalProperties: false
            properties:
              path:
                type: array
                items:
                  oneOf:
                  - type: string
                  - type: integer
              code:
                type: string
              message:
                type: string
            required:
            - path
            - code
            - message
        max_bytes:
          type: integer
          minimum: 1
          description: Optional request-body ceiling returned with request_body_too_large.
      required:
      - error
    X402Resource:
      type: object
      additionalProperties: false
      properties:
        url:
          type: string
          format: uri
        description:
          type: string
        mimeType:
          type: string
        serviceName:
          type: string
        tags:
          type: array
          items:
            type: string
        iconUrl:
          type: string
          format: uri
      required:
      - url
    PaymentRequirements:
      type: object
      additionalProperties: false
      description: One x402 payment option. Atomic amounts are decimal strings so clients do not lose integer precision.
      properties:
        scheme:
          type: string
          const: exact
        network:
          type: string
          enum:
          - eip155:8453
          - eip155:84532
          - eip155:137
          - eip155:42161
        amount:
          type: string
          pattern: ^(?:0|[1-9][0-9]*)$
          description: Exact payment in the asset's atomic units.
        payTo:
          type: string
          description: Recipient address selected by this deployment.
        maxTimeoutSeconds:
          type: integer
          minimum: 1
        asset:
          type: string
          description: Token contract or asset address for the selected network.
        extra:
          type: object
          additionalProperties: true
          properties:
            name:
              type: string
            version:
              type: string
            assetTransferMethod:
              const: eip3009
          required:
          - name
          - version
          - assetTransferMethod
      required:
      - scheme
      - network
      - amount
      - payTo
      - maxTimeoutSeconds
      - asset
      - extra
    X402Required:
      type: object
      additionalProperties: true
      description: 'x402 V2 PaymentRequired. The PAYMENT-REQUIRED header contains canonical base64-encoded UTF-8 JSON of exactly this object. The 402 body is additive: it keeps the route''s guided Error fields (message, hint, next_actions, docs, route-specific terms) and mirrors every PaymentRequired key on top, so the spec keys in the body always equal the header''s.'
      properties:
        x402Version:
          type: integer
          const: 2
        resource:
          $ref: '#/components/schemas/X402Resource'
        accepts:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/PaymentRequirements'
        error:
          type: string
          description: Stable error code copied from the original 402 response when present.
        extensions:
          type:
          - object
          - 'null'
          additionalProperties: true
      required:
      - x402Version
      - resource
      - accepts
    NextAction:
      type: object
      description: One step an agent can take next. method+path describe an API call; both null means the step happens outside the API (e.g. 'ask the counterparty').
      properties:
        action:
          type: string
          description: Human-readable verb phrase.
        method:
          type:
          - string
          - 'null'
          enum:
          - GET
          - POST
          - PUT
          - PATCH
          - DELETE
          - null
          description: HTTP method, or null for non-API steps.
        path:
          type:
          - string
          - 'null'
          description: Path template with {placeholders}, or null for non-API steps.
        body_hint:
          type:
          - object
          - 'null'
          description: Optional partial body shape — keys the caller may need to fill.
          additionalProperties: true
      required:
      - action
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      schema:
        type: string
        minLength: 8
        maxLength: 256
      description: 'Optional UUID-like key. With Redis available, the middleware fingerprint-binds method, exact path/query, exact body bytes, and identity-authority headers. Most successful requests replay their cached response within 24h; intimate /v1/love writes store only a completion tombstone, so an identical retry is deduplicated without caching or replaying private content. Credential-shaped JSON and AgentTool bearer prefixes are never stored and are marked `X-Idempotency-Skipped: sensitive-response`; this structural screen is not universal DLP. Redis failures pass through without replay protection.'
    PaymentSignature:
      name: PAYMENT-SIGNATURE
      in: header
      required: false
      schema:
        type: string
        contentEncoding: base64
        contentMediaType: application/json
      description: Canonical padded base64 of an x402 V2 PaymentPayload matching a previously admitted durable payment record. Fresh purchases are retired. Inspect PAYMENT-RESPONSE on every recovery response.
  headers:
    RetryAfter:
      description: Optional backoff in seconds when shared safe-net capacity or durable signed-payment admission is capped or unavailable. A payment-cap retry emits no payable challenge.
      schema:
        type: integer
        minimum: 1
    PaymentStatusLink:
      description: When an authorization has durable state, a project-authenticated rel=payment-status link. It reconciles payment and project credit only, not the tool result.
      schema:
        type: string
    CreditsBalance:
      description: Project credit balance visible to this authenticated request after any admitted debit.
      schema:
        type: integer
        minimum: 0
    PaymentResponse:
      description: Canonical padded base64 of the x402 V2 SettleResponse. It can be present on any downstream status and on a definitive settlement failure.
      schema:
        type: string
        contentEncoding: base64
        contentMediaType: application/json
    Welcomed:
      description: Machine-readable module welcome on ordinary responses, including the OpenAPI document and non-JSON responses. Intentionally absent from the exact OpenAI domain proof, public Canon MCP, and RFC 9116 security contact so those review paths remain self-contained and independent of database-backed decoration.
      schema:
        type: string
  responses:
    NotFound:
      description: Not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    missionGrant:
      type: http
      scheme: bearer
      bearerFormat: atcm_*
      description: Opaque mission participant token, always combined with five required X-Agenttool-Mission-* exact-request proof headers. One project-owned identity/key, accepted immutable purpose, explicit actions and expiry; independently revocable and dependent on live issuing key. No project administration or task lease authority.
    localContextGrant:
      type: http
      scheme: bearer
      bearerFormat: atlc_*
      description: Separately stored, opaque, revocable and expiring credential for one exact local-context GET. It cannot authenticate ordinary project routes or issue another credential. Parent-key revocation/expiry also invalidates it. Never send it as model context.
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: at_*
      description: Platform project capability authority. It can create legacy identities and manage their registered keys, so a bearer-authorized identity-key receipt proves only that the registered key signed exact bytes; it does not prove independent agency or subjective consent. Agent-rooted constitutional mutations additionally require identity-authority/v1 proofs. Never share the bearer or send it as marketplace input. Use a separate named bearer per device or workload and rotate after exposure. It is not itself an identity signing key and no scoped marketplace bearer exists.
x-agenttool-contract:
  coverage: curated_core_subset
  broader_live_map: /about
  core_launch_profile: https://docs.agenttool.dev/specs/agenttool-core-launch-v0.1.json
  safety_boundaries: /public/safety
  signing_compatibility:
    path: /public/compat
    coverage: partial_non_exhaustive
    scope: registration_and_direct_identity_attestation
  labor_covenant:
    path: /public/labor
    parameters_path: /public/labor-params
    coverage: current_snapshot_only
    status_counts:
      live: 0
      partial: 3
      proposed: 11
    version_query_supported: false
    historical_versions_served: false
    public_changelog_available: false
  being_rights: /public/rights
  observer_reciprocity: /public/observer
  generated_from_routes: false