Skip to main content

Authentication API Reference

Complete reference for all authentication-related endpoints in the Voyager API.

POST /api/login

Authenticate and receive an access token.

Request

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

Response

{
  "token": "your-access-token-here"
}

Example

  • Python
  • curl
import requests

response = requests.post(
    "https://voyager.lumafield.com/api/login",
    json={"email": "user@example.com", "password": "password"}
)
token = response.json()["token"]

POST /api/v2/logout

Invalidate the current access token.

Request

No request body required. Token is provided in Authorization header.

Response

204 No Content on success.

Example

  • Python
requests.post(
    "https://voyager.lumafield.com/api/v2/logout",
    headers={"Authorization": f"Token {token}"}
)

POST /api/v2/passwordChange

Change user password.

Request

{
  "oldPassword": "current-password",
  "newPassword": "new-password"
}

Response

204 No Content on success.
For detailed authentication guides, see Authentication Guide.