Authenticate a user
POST
/api/v1/user/login
Authenticate with your credentials to access protected endpoints in the Argentine Rock Legends API.
Request Body
application/json
JSON "email": "carlos@rock-legends.com", "password": "i-love-rock"
{
}
Responses
Authentication Successful
You have been successfully authenticated.
Response Details
The response includes:
- Your user information
- Authentication tokens (JWT token and API key)
- Token expiration information
Important: Store these credentials securely and include them in subsequent API requests.
application/json
JSON "user": { "id": 1, "name": "Carlos", "email": "carlos@rock-legends.com" }, "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "api_key": "rock-legends-api-key-12345", "expires_at": "2025-08-26T19:28:00Z"
{
}