Docs / API / Login User

Login User

Authenticate a user using their email and password to receive a Bearer API token. This token is required for all subsequent API requests.

Token Reset Behavior

Calling this endpoint will reset your current API token. Any scripts using the old token will need to be updated with the new one immediately.

Endpoint

GEThttps://dns.grovix.dev/v1/auth/login

Parameters

ParameterTypeRequiredDescription
emailstringYesThe email address associated with your account.
passwordstringYesYour account password.

Example Request

curl -X GET "https://dns.grovix.dev/v1/auth/login?email=user@example.com&password=your_secure_password"

Success Response

{
  "success": true,
  "message": "Authentication successful",
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "expires_in": 3600
  }
}