POST/api/v1/auth/login

Authenticate with email and password to receive a JWT access token. Include this token in the Authorization header for all subsequent requests.

Request Body

{
  "email": "user@example.com",
  "password": "your-password"
}

Response

{
  "token": "eyJhbGciOiJIUzI1NiIs...",
  "refreshToken": "eyJhbGciOiJIUzI1NiIs...",
  "user": {
    "id": "usr_abc123",
    "email": "user@example.com",
    "workspaceId": "ws_def456"
  }
}

Example (cURL)

curl -X POST https://api.revnox.com/api/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{"email": "user@example.com", "password": "your-password"}'