POST /auth/login — Authenticate your merchant account
Exchange your email and password for a short-lived access token and a long-lived refresh token. Use the access token to authenticate all subsequent API requests.
This endpoint authenticates your merchant account and returns two tokens: a short-lived access token you attach to every API request, and a long-lived refresh token you store securely and use only to rotate the access token when it expires. Your account must have a verified email address before login succeeds.This endpoint applies a strict rate limit.
A signed JWT refresh token. Valid for 7 days. Use this with POST /auth/refresh to get a new access token without re-entering your password. Store it securely — treat it like a password.
Access tokens expire after 15 minutes. When you receive a 401 UNAUTHORIZED response on a previously working token, call POST /auth/refresh with your refresh token to get a new access token.