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}'