Back to Warranty API
Login
POST
/api/v1/auth/login
Authenticate with your email and password to receive JWT access and refresh tokens.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Yes | Your account email address | |
| password | string | Yes | Your account password |
Example Request
curl -X POST https://api.marquatica.com/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "your@email.com", "password": "yourpassword"}'
Success Response (200)
{
"success": true,
"status": 200,
"data": {
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"refresh_token": "eyJhbGciOiJIUzI1NiIs...",
"token_type": "Bearer",
"expires_in": 3600
}
}
Error Responses
{
"success": false,
"status": 400,
"error": {
"code": "VALIDATION_ERROR",
"message": "Email and password are required"
}
}
{
"success": false,
"status": 401,
"error": {
"code": "AUTHENTICATION_FAILED",
"message": "Invalid email or password"
}
}
Try It Out
cURL Preview
POST https://api.marquatica.com/api/v1/auth/login
Base URL
Body Parameters
* email required
* password required
Response
Send a request to see the response