Login API Documentation
Endpoint
POST {base_url}/auth/token
Authentication
No authentication required to access this endpoint.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Yes | Registered user email | |
| password | string | Yes | User's password |
Success Response
{
"status": true,
"message": "Login successful",
"data": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_created_at": "2025-05-07 12:34:56"
}
}
Failure Response
{
"status": false,
"message": "Invalid credentials",
"data": {}
}
Notes
- Always use HTTPS to protect credentials.
- Sandbox test credentials: test@dilliking.com / Test@123
- You may need to pass the token in headers for protected API routes.
Example Request
Run Login