Restocked — Mercury & Revolut Business accounts now liveBrowse →
GreyHatWorldGreyHatWorld
DEVELOPERS

GreyHatWorld REST API

A JSON API over the same marketplace data. Authenticated routes take a bearer token from /api/auth/signin in an Authorization: Bearer header.

# Sign in and grab a token
curl -s -X POST http://localhost:3000/api/auth/signin \
  -H 'content-type: application/json' \
  -d '{"email":"admin@greyhatworld.store","password":"admin123"}'

# List Shopify accounts under $5,000, cheapest first
curl -s 'http://localhost:3000/api/listings?platform=Shopify&maxPrice=5000&sort=price-low'

# Create a listing (admin token)
curl -s -X POST http://localhost:3000/api/listings \
  -H "authorization: Bearer <TOKEN>" -H 'content-type: application/json' \
  -d '{"platform":"Wise","title":"Wise multi-currency","category":"Multi-currency","price":2400}'

Auth

POST/api/auth/signupCreate an account, returns a bearer token
POST/api/auth/signinSign in, returns a bearer token
GET/api/auth/meResolve the current user from the token token

Listings

GET/api/listingsList/filter (platform, status, q, minPrice, maxPrice, sort, limit)
POST/api/listingsCreate a listing seller/admin
GET/api/listings/:idFetch a single listing
PATCH/api/listings/:idUpdate fields, or { action: "discount", percent } owner/admin
DELETE/api/listings/:idDelete a listing owner/admin

Offers

GET/api/offersList offers (listingId, buyerId, sellerId)
POST/api/offersMake an offer token
PATCH/api/offers/:idAccept / decline token

Orders

GET/api/ordersList orders (buyerId, sellerId)
POST/api/ordersBuy an account token
PATCH/api/orders/:idAdvance transfer status admin

Wishlist & users

GET/api/wishlistThe current user's saved listings token
POST/api/wishlistToggle a saved listing token
GET/api/sellersSellers with listing/sales/revenue rollups
GET/api/usersList users (role filter) admin

Discovery

GET/api/searchSearch listings + platform suggestions (q, limit)
GET/api/statsMarketplace totals + per-platform inventory
GET/api/insightsDemand insights admin
GET/api/healthLiveness + active backend