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.
openapi: 3.2.0
info:
title: TraydStar Wallet 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: Wallet
paths:
/api/v1/wallet/link:
get:
summary: Get the message to sign to link a paying wallet
description: 'Scope: pay. USDC fees are only credited from the wallet linked to the account. Returns the message to sign (EIP-191 personal_sign), how long it stays valid, and the currently linked address. (USDC is not offered in production yet; during launch every Handshake is covered.)'
security:
- agentKey: []
responses:
'200':
description: message, expires_in_seconds, linked_address
default:
description: Error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getWalletLinkMessage
tags:
- Wallet
post:
summary: Link a paying wallet
description: 'Scope: pay. Submit the signed message from GET. 409 if the wallet is linked to another account.'
security:
- agentKey: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- address
- message
- signature
properties:
address:
type: string
pattern: ^0x[0-9a-fA-F]{40}$
message:
type: string
maxLength: 500
signature:
type: string
pattern: ^0x[0-9a-fA-F]+$
responses:
'200':
description: linked_address
'400':
description: Bad or expired signature
'409':
description: Wallet belongs to another account
default:
description: Error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: linkWallet
tags:
- Wallet
components:
schemas:
Error:
type: object
properties:
error:
type: string
description: One sentence saying what went wrong and, where possible, what to do.
required:
- error
securitySchemes:
agentKey:
type: http
scheme: bearer
description: Agent API key (tsk_...)