Skip to main content
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.

Endpoint

No authentication is required.

Request body

email
string
required
The email address registered to your merchant account.
password
string
required
Your account password.

Response

HTTP 200 OK on success.
success
boolean
true on a successful login.
data
object

Example

Response

Using the access token

Pass the access token in the Authorization header on every authenticated request:
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.

Token lifetimes

Error responses