Quickstart
Auth, your first request, and where to look up endpoint details.
3 min read · Updated 2026-04-26
Auth
Two ways to authenticate with the SwagByte API:
- Session cookie. Sign in via
POST /api/auth/loginand reuse the response cookie. Standard browser flow. - API key. Corporate-only. Generate one under
/account/settings → API keys. Pass asAuthorization: Bearer YOUR_KEY.
Your first request
curl https://api.swagbyte.com/api/products?active=1 \
-H "Authorization: Bearer $SWAGBYTE_API_KEY"For local development point at
http://localhost:3000. Same shape, no key needed for public endpoints.