Authentication API

JWT-based authentication for the HoodslyHub API.

Endpoints

MethodEndpointDescription
POST/api/auth/loginAuthenticate and get JWT token
POST/api/auth/meGet current user profile
POST/api/auth/refreshRefresh JWT token
POST/api/auth/logoutLogout and invalidate token

Token Usage

After login, include the JWT token in all authenticated requests:

Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...

Token Expiration

Tokens expire after 1 hour. Use the refresh endpoint to get a new token before expiration.

Request
GET /api/v1/status
Response