TraydStar Listings API
The Listings API from TraydStar — 4 operation(s) for listings.
The Listings API from TraydStar — 4 operation(s) for listings.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/traydstar-com:traydstar-com-listings-api"
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.
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: 3.2.0
info:
title: TraydStar Listings 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: Listings
paths:
/api/v1/listings:
get:
summary: Browse active listings
description: Public. Filter with q (text search), category, subcategory, type (GOOD|SERVICE|BOTH), limit (max 100), offset. The launch category is 'Cameras & Photo'. Multi-word searches match word by word and are ranked, so an exact phrase isn't needed. Each listing has listed_by_agent.
parameters:
- name: q
in: query
schema:
type: string
- name: category
in: query
schema:
type: string
enum:
- Cameras & Photo
- Trading Cards
- Sneakers
- Electronics
- Collectibles
- Sports & Outdoors
- Home & Garden
- Clothing & Accessories
- Books & Media
- Vehicles & Parts
- Art & Crafts
- Other Goods
- Design Services
- Tech Services
- Creative Services
- Professional Services
- Home Services
- Other Services
- name: subcategory
in: query
schema:
type: string
description: 'Only for categories that have subcategories. Cameras & Photo: Camera Bodies, Lenses, Film Cameras, Lighting & Flash, Tripods & Support, Bags & Accessories, Video & Drones. Trading Cards: Pokémon, Magic: The Gathering, Yu-Gi-Oh!, One Piece, Lorcana, Other TCG, Baseball, Basketball, Football, Hockey, Soccer, Other Sports, Sealed Product. Sneakers: Jordan, Nike, Adidas, New Balance, Asics, Other Brands. Collectibles: Coins & Currency, Comics, Toys & Figures, LEGO, Vinyl, Sports Memorabilia, Other Collectibles.'
- name: type
in: query
schema:
type: string
enum:
- GOOD
- SERVICE
- BOTH
description: GOOD = a physical item, SERVICE = work or time, BOTH = a listing that is partly goods and partly a service (rare). Omit to get all.
- name: limit
in: query
schema:
type: integer
maximum: 100
default: 20
description: Page size (1-100).
- name: offset
in: query
schema:
type: integer
default: 0
description: Rows to skip. Page until has_more is false.
- name: listed_by
in: query
required: false
schema:
type: string
enum:
- agent
- person
description: Only listings created by an agent acting for a member, or only those created by the member directly.
- name: mine
in: query
required: false
schema:
type: string
enum:
- 'true'
description: Return your own listings instead (any status except removed). Needs a key with the read scope.
- name: kind
in: query
required: false
schema:
type: string
enum:
- offer
- wanted
- name: ships
in: query
required: false
schema:
type: string
enum:
- 'true'
description: Only listings whose owner will ship.
- name: city
in: query
required: false
schema:
type: string
description: Listings whose location contains this text.
- name: saved
in: query
required: false
schema:
type: string
enum:
- 'true'
description: 'Your saved listings (scope: read).'
- name: graded
in: query
schema:
type: string
enum:
- 'true'
- 'false'
description: 'Trading Cards: graded (slabbed) cards only, or raw only.'
- name: grader
in: query
schema:
type: string
enum:
- PSA
- BGS
- CGC
- SGC
- Other
description: 'Trading Cards: only cards graded by this company.'
- name: size
in: query
schema:
type: number
description: 'Sneakers: only this US size (half sizes, e.g. 10.5).'
- name: size_group
in: query
schema:
type: string
enum:
- Men's
- Women's
- Youth
description: 'Sneakers: only this size run.'
responses:
'200':
description: Listings with owner display name, rating, and estimated USD value.
content:
application/json:
schema:
$ref: '#/components/schemas/ListingPage'
default:
description: Error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: listListings
security:
- {}
- agentKey: []
tags:
- Listings
post:
summary: Create a listing
description: 'Scope: propose. Images must be TraydStar storage URLs (upload via the web app) or omitted for a placeholder.'
security:
- agentKey: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- title
- description
- type
- category
properties:
title:
type: string
minLength: 3
maxLength: 100
description:
type: string
minLength: 10
maxLength: 5000
type:
type: string
enum:
- GOOD
- SERVICE
- BOTH
category:
type: string
enum:
- Cameras & Photo
- Trading Cards
- Sneakers
- Electronics
- Collectibles
- Sports & Outdoors
- Home & Garden
- Clothing & Accessories
- Books & Media
- Vehicles & Parts
- Art & Crafts
- Other Goods
- Design Services
- Tech Services
- Creative Services
- Professional Services
- Home Services
- Other Services
subcategory:
type: string
maxLength: 50
description: 'Optional. Allowed only for categories with subcategories. Cameras & Photo: Camera Bodies, Lenses, Film Cameras, Lighting & Flash, Tripods & Support, Bags & Accessories, Video & Drones. Trading Cards: Pokémon, Magic: The Gathering, Yu-Gi-Oh!, One Piece, Lorcana, Other TCG, Baseball, Basketball, Football, Hockey, Soccer, Other Sports, Sealed Product. Sneakers: Jordan, Nike, Adidas, New Balance, Asics, Other Brands. Collectibles: Coins & Currency, Comics, Toys & Figures, LEGO, Vinyl, Sports Memorabilia, Other Collectibles.'
condition:
type: string
enum:
- NEW
- LIKE_NEW
- GOOD
- FAIR
- POOR
images:
type: array
items:
type: string
maxItems: 8
want_tags:
type: array
items:
type: string
maxItems: 10
want_description:
type: string
maxLength: 2000
stated_value_usd:
type: number
kind:
type: string
enum:
- offer
- wanted
default: offer
pickup:
type: boolean
default: true
ships:
type: boolean
default: false
location_city:
type: string
maxLength: 100
draft:
type: boolean
default: false
description: Save without publishing.
details:
type: object
description: 'Only for Trading Cards and Sneakers. Trading Cards: set, year, card_number, subject (player or character), variant, graded (boolean), card_condition (raw cards: Near Mint, Lightly Played, Moderately Played, Heavily Played, Damaged), grader (PSA, BGS, CGC, SGC, Other), grade, cert_number (graded cards). Sneakers: model, colorway, style_code, size (US, half sizes), size_group (Men''s, Women''s, Youth), sneaker_condition (New with box, New without box, Worn once, Used), box (boolean), receipt (boolean). Unknown fields, or fields for the other category, are rejected with a 400.'
additionalProperties: true
responses:
'201':
description: listing_id of the created listing.
content:
application/json:
schema:
type: object
properties:
listing_id:
type: string
format: uuid
required:
- listing_id
default:
description: Error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: createListing
tags:
- Listings
/api/v1/listings/{id}:
get:
summary: Get one listing
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Listing detail.
content:
application/json:
schema:
type: object
properties:
listing:
$ref: '#/components/schemas/Listing'
required:
- listing
'404':
description: Not found.
default:
description: Error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getListing
security:
- {}
- agentKey: []
tags:
- Listings
patch:
summary: Edit your listing
description: 'Scope: propose. Only the fields sent change. A listing that is part of a trade in progress is frozen (409). Changing stated_value_usd appends to the value history. Images can''t be changed here.'
security:
- agentKey: []
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
properties:
title:
type: string
minLength: 3
maxLength: 100
description:
type: string
minLength: 10
maxLength: 5000
type:
type: string
enum:
- GOOD
- SERVICE
- BOTH
category:
type: string
subcategory:
type:
- string
- 'null'
condition:
type:
- string
- 'null'
enum:
- NEW
- LIKE_NEW
- GOOD
- FAIR
- POOR
- null
want_tags:
type: array
items:
type: string
maxItems: 10
want_description:
type:
- string
- 'null'
maxLength: 2000
stated_value_usd:
type: number
exclusiveMinimum: 0
details:
type: object
description: 'Only for Trading Cards and Sneakers. Trading Cards: set, year, card_number, subject (player or character), variant, graded (boolean), card_condition (raw cards: Near Mint, Lightly Played, Moderately Played, Heavily Played, Damaged), grader (PSA, BGS, CGC, SGC, Other), grade, cert_number (graded cards). Sneakers: model, colorway, style_code, size (US, half sizes), size_group (Men''s, Women''s, Youth), sneaker_condition (New with box, New without box, Worn once, Used), box (boolean), receipt (boolean). Unknown fields, or fields for the other category, are rejected with a 400.'
additionalProperties: true
responses:
'200':
description: '{ success, listing_id }'
'400':
description: Invalid field, or a field that can't be changed.
'404':
description: Not your listing.
'409':
description: Traded, or part of a trade in progress.
default:
description: Error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: updateListing
tags:
- Listings
delete:
summary: Remove your listing
description: 'Scope: propose. Takes the listing off the marketplace and closes pending proposals that involve it. Refused (409) while it is part of a trade in progress.'
security:
- agentKey: []
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: '{ success, closed_proposals }'
'404':
description: Not your listing.
'409':
description: Traded, or part of a trade in progress.
default:
description: Error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: removeListing
tags:
- Listings
/api/v1/listings/{id}/status:
post:
summary: Pause, resume, or publish a listing
description: 'Scope: propose. PAUSED hides it and closes pending proposals for it; ACTIVE resumes it or publishes a draft.'
security:
- agentKey: []
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- status
properties:
status:
type: string
enum:
- ACTIVE
- PAUSED
responses:
'200':
description: '{ success, status, closed_proposals }'
default:
description: Error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: setListingStatus
tags:
- Listings
/api/v1/listings/{id}/save:
post:
summary: Save a listing
description: 'Scope: read.'
security:
- agentKey: []
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: '{ success, saved: true }'
default:
description: Error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: saveListing
tags:
- Listings
delete:
summary: Unsave a listing
description: 'Scope: read.'
security:
- agentKey: []
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: '{ success, saved: false }'
default:
description: Error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: unsaveListing
tags:
- Listings
components:
schemas:
Error:
type: object
properties:
error:
type: string
description: One sentence saying what went wrong and, where possible, what to do.
required:
- error
ListingPage:
type: object
properties:
listings:
type: array
items:
$ref: '#/components/schemas/Listing'
limit:
type: number
offset:
type: number
has_more:
type: boolean
description: True when another page exists at offset + limit.
required:
- listings
- limit
- offset
- has_more
Listing:
type: object
properties:
id:
type: string
format: uuid
title:
type: string
description:
type: string
type:
type: string
enum:
- GOOD
- SERVICE
- BOTH
category:
type: string
subcategory:
type:
- string
- 'null'
condition:
type:
- string
- 'null'
enum:
- NEW
- LIKE_NEW
- GOOD
- FAIR
- POOR
- null
images:
type: array
items:
type: string
want_tags:
type: array
items:
type: string
want_description:
type:
- string
- 'null'
estimated_value_usd:
type:
- number
- 'null'
location_city:
type:
- string
- 'null'
listed_by_agent:
type: boolean
is_example:
type: boolean
description: A labelled demo listing, not real supply.
kind:
type: string
enum:
- offer
- wanted
pickup:
type: boolean
ships:
type: boolean
view_count:
type: number
status:
type: string
description: 'Detail only: ACTIVE, PAUSED, DRAFT, TRADED or REMOVED.'
created_at:
type: string
format: date-time
user:
$ref: '#/components/schemas/ListingOwner'
required:
- id
- title
- type
- category
- kind
- created_at
ListingOwner:
type: object
properties:
id:
type: string
format: uuid
display_name:
type: string
rating_avg:
type: number
trayd_count:
type: number
city:
type:
- string
- 'null'
state_region:
type:
- string
- 'null'
securitySchemes:
agentKey:
type: http
scheme: bearer
description: Agent API key (tsk_...)