beginner 2 min
Sign Up
Create your account and get access to the platform.
Create an account to start using the Reseller API.
Register
Send a POST request to /v1/auth/register with your email and a password (minimum 8 characters):
curl -X POST https://api.example.com/v1/auth/register
-H "Content-Type: application/json"
-d '{
"email": "[email protected]",
"password": "your-secure-password"
}' The response includes a short-lived access token (15 minutes) and sets an httpOnly refresh token cookie (7 days):
{
"accessToken": "eyJhbGciOiJIUzI1NiIs...",
"expiresAt": 1708700000
} Log in
If you already have an account, log in with the same credentials:
curl -X POST https://api.example.com/v1/auth/login
-H "Content-Type: application/json"
-d '{
"email": "[email protected]",
"password": "your-secure-password"
}' Refresh your token
Access tokens expire after 15 minutes. Use the refresh endpoint to get a new one — the refresh token is sent automatically via the httpOnly cookie:
curl -X POST https://api.example.com/v1/auth/refresh
--cookie "refresh_token=..." The platform uses refresh token rotation — each refresh revokes the old token and issues a new pair for security.
What’s next?
- Get API Keys — Generate keys for programmatic access
- Store Setup — Connect your Shopify stores