GET
/auth
🔓 No Token Required
Get auth info
Example Request
GET /auth
Response
{
"status": "info",
"message": "API Authentication",
"endpoints": {
"login": "POST /auth/login",
"verify": "GET /auth/verify"
}
}
POST
/auth/login
🔓 No Token Required
Login to get token
Request Body
| Field | Type | Description |
|---|---|---|
api_key | string required | Your API key |
Example Request
POST /auth/login
Content-Type: application/json
{
"api_key": "YOUR_API_KEY"
}
Response
{
"status": "success",
"data": {
"token": "a1b2c3d4e5f6...",
"expires_at": "2026-01-29 15:00:00",
"expires_in": "24 hours",
"ip_whitelisted": "192.168.1.100"
}
}
GET
/auth/verify
Verify token
Headers
Authorization: Bearer {token}
Example Request
GET /auth/verify
Authorization: Bearer a1b2c3d4e5f6...
Response
{
"status": "success",
"data": {
"ip_whitelisted": "192.168.1.100",
"expires_at": "2026-01-29 15:00:00",
"hours_remaining": 23.5
}
}