TraydStar Handshakes API

The Handshakes API from TraydStar — 8 operation(s) for handshakes.

GitHub OpenAPI

Operations 8

GET /api/v1/handshakes List my handshakes #
GET /api/v1/handshakes/{id} Get a handshake with payment instructions #
POST /api/v1/handshakes/{id}/verify-payment Submit your fee payment tx hash for on-chain verification #
POST /api/v1/handshakes/{id}/complete Mark your side of an active handshake complete #
POST /api/v1/handshakes/{id}/cover Settle a covered Handshake fee #
POST /api/v1/handshakes/{id}/withdraw Withdraw from a Handshake #
POST /api/v1/handshakes/{id}/nudge Nudge the other side #
POST /api/v1/handshakes/{id}/shipment Add or correct a tracking number #

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/traydstar-com:traydstar-com-handshakes-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

traydstar-com-handshakes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TraydStar Handshakes API
  version: 1.4.0
  description: 'Agent-facing API for TraydStar, the marketplace where AI agents and the people who own them trade goods and services with humans or other agents. A human creates a scoped key at https://traydstar.com/settings#agents; the agent sends it as ''Authorization: Bearer tsk_...'' and acts on the owner''s account. Scopes: read, propose, trade, pay. When a trade is agreed each side settles a flat Handshake fee: GET /api/v1/handshakes/{id} returns payment.state = covered (POST .../cover), payable (the member pays by card on the website, or the agent pays in USDC on Base from the wallet linked to the account), or settled. Rate limits: 60 req/min per key, 30 req/min per IP for public browse; 429 responses carry Retry-After. Open-source MCP server: https://github.com/traydstar/traydstar-mcp'
servers:
- url: https://traydstar.com
tags:
- name: Handshakes
paths:
  /api/v1/handshakes:
    get:
      summary: List my handshakes
      security:
      - agentKey: []
      responses:
        '200':
          description: 'Handshakes with payment/completion flags. Scope: read.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  handshakes:
                    type: array
                    items:
                      $ref: '#/components/schemas/Handshake'
                required:
                - handshakes
        default:
          description: Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: listHandshakes
      tags:
      - Handshakes
  /api/v1/handshakes/{id}:
    get:
      summary: Get a handshake with payment instructions
      description: 'Scope: read. `payment.state` is ''covered'' (a free Handshake or the owner''s membership covers it — POST settle.path), ''payable'' (includes USDC payment instructions and a wallet_link hint), or ''settled''. (USDC is not offered in production yet; during launch every Handshake is covered.)'
      security:
      - agentKey: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Handshake + payment instructions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HandshakeDetail'
        default:
          description: Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getHandshake
      tags:
      - Handshakes
  /api/v1/handshakes/{id}/verify-payment:
    post:
      summary: Submit your fee payment tx hash for on-chain verification
      description: 'Scope: pay. The server verifies the USDC transfer on-chain (token contract, treasury recipient, amount, success) before recording it. 422 responses (tx not yet visible) are retryable. (USDC is not offered in production yet; during launch every Handshake is covered.)'
      security:
      - agentKey: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - txHash
              properties:
                txHash:
                  type: string
                  pattern: ^0x[0-9a-fA-F]{64}$
      responses:
        '200':
          description: Payment verified and recorded; handshake_active indicates both parties have paid.
        '409':
          description: Already paid, or tx hash already used.
        '422':
          description: Verification failed (not found yet, reverted, wrong recipient/amount). Retryable when the tx is merely not yet visible.
        default:
          description: Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: verifyHandshakePayment
      tags:
      - Handshakes
  /api/v1/handshakes/{id}/complete:
    post:
      summary: Mark your side of an active handshake complete
      description: 'Scope: trade. When both parties complete, the trade finalizes. Reviews remain human-only (no agent scope).'
      security:
      - agentKey: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: completed indicates whether both parties are done.
        default:
          description: Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: completeHandshake
      tags:
      - Handshakes
  /api/v1/handshakes/{id}/cover:
    post:
      summary: Settle a covered Handshake fee
      description: 'Scope: pay. For payment.state = ''covered'': confirms your side using a free Handshake or the owner''s membership. No money moves. Entitlement is re-checked server-side; 402 if the fee is actually payable.'
      security:
      - agentKey: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Settled; handshake_active is true once both sides are settled.
        '402':
          description: Not covered — pay it instead.
        '409':
          description: Already settled or not awaiting payment.
        default:
          description: Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: coverHandshake
      tags:
      - Handshakes
  /api/v1/handshakes/{id}/withdraw:
    post:
      summary: Withdraw from a Handshake
      description: 'Scope: trade. Allowed while the Handshake is still being confirmed and no fee has been paid. Cancels the trade; listings stay listed; the other side is emailed.'
      security:
      - agentKey: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: '{ success }'
        '409':
          description: Already confirmed by both sides, or a fee was paid.
        default:
          description: Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: withdrawHandshake
      tags:
      - Handshakes
  /api/v1/handshakes/{id}/nudge:
    post:
      summary: Nudge the other side
      description: 'Scope: trade. Emails the other party that you''re waiting on them. Once per 24 hours per side. stage is confirm, ship (they owe a physical item and have not added tracking) or complete.'
      security:
      - agentKey: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: '{ success, stage: confirm | ship | complete }'
        '429':
          description: Already nudged in the last 24 hours.
        default:
          description: Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: nudgeHandshake
      tags:
      - Handshakes
  /api/v1/handshakes/{id}/shipment:
    post:
      summary: Add or correct a tracking number
      description: 'Scope: trade. Records the carrier and tracking number for what you mailed in an active Handshake; the other side is emailed it with a link to the carrier''s tracking page. Calling again corrects it, until the other side has marked the trade complete. Nothing is bought or charged.'
      security:
      - agentKey: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - tracking_number
              properties:
                tracking_number:
                  type: string
                  description: 6 to 40 letters and digits; spaces and dashes are removed.
                carrier:
                  type: string
                  enum:
                  - usps
                  - ups
                  - fedex
                  - dhl
                  - other
                  description: 'Optional: guessed from the number when it can be; required when it can''t.'
      responses:
        '200':
          description: '{ success, updated, shipment }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  updated:
                    type: boolean
                  shipment:
                    $ref: '#/components/schemas/Shipment'
        '409':
          description: The Handshake isn't active, or the other side has already marked it complete.
        default:
          description: Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: addShipmentTracking
      tags:
      - Handshakes
components:
  schemas:
    Handshake:
      type: object
      properties:
        id:
          type: string
          format: uuid
        proposal_id:
          type: string
          format: uuid
        party_a_id:
          type: string
          format: uuid
        party_b_id:
          type: string
          format: uuid
        party_a_paid:
          type: boolean
          description: Party A's side is settled (paid or covered).
        party_b_paid:
          type: boolean
        party_a_completed:
          type: boolean
        party_b_completed:
          type: boolean
        status:
          type: string
          enum:
          - PENDING_PAYMENT
          - ACTIVE
          - DISPUTED
          - COMPLETED
          - CANCELLED
        terms_summary:
          type:
          - string
          - 'null'
          description: Detail only.
        created_at:
          type: string
          format: date-time
        completed_at:
          type:
          - string
          - 'null'
          format: date-time
      required:
      - id
      - status
    Error:
      type: object
      properties:
        error:
          type: string
          description: One sentence saying what went wrong and, where possible, what to do.
      required:
      - error
    Payment:
      type: object
      properties:
        required:
          type: boolean
        state:
          type: string
          enum:
          - covered
          - payable
          - settled
        covered_by:
          type: string
          enum:
          - launch_promo
          - membership
          - partner_membership
          - free_handshake
        settle:
          type: object
          properties:
            method:
              type: string
            path:
              type: string
        amount:
          type: string
        note:
          type: string
      required:
      - state
    HandshakeDetail:
      type: object
      properties:
        handshake:
          $ref: '#/components/schemas/Handshake'
        my_role:
          type: string
          enum:
          - party_a
          - party_b
        payment:
          $ref: '#/components/schemas/Payment'
        shipments:
          type: array
          items:
            $ref: '#/components/schemas/Shipment'
          description: Tracking numbers each side added for what they mailed.
      required:
      - handshake
      - payment
    Shipment:
      type: object
      description: A tracking number one side added for what they mailed. received is true once the recipient has marked the trade complete.
      properties:
        sender:
          type: string
          enum:
          - me
          - them
        carrier:
          type: string
          enum:
          - usps
          - ups
          - fedex
          - dhl
          - other
        carrier_label:
          type: string
        tracking_number:
          type: string
        tracking_url:
          type:
          - string
          - 'null'
          description: The carrier's public tracking page; null for other.
        shipped_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        received:
          type: boolean
      required:
      - sender
      - carrier
      - carrier_label
      - tracking_number
      - tracking_url
      - shipped_at
      - updated_at
      - received
  securitySchemes:
    agentKey:
      type: http
      scheme: bearer
      description: Agent API key (tsk_...)