Skip to main content
POST
Root user programmatic signin

Body

application/json

Request payload for root user programmatic signin using HMAC signature

email
string<email>
required

The root user's email address (must match configured ROOT_EMAIL)

Example:

"admin@example.com"

timestamp
integer<int64>
required

Unix timestamp (seconds since epoch). Must be within 60 seconds of server time.

Example:

1735600000

signature
string
required

HMAC-SHA256 signature computed as: HMAC-SHA256(email + ":" + timestamp, SECRET_KEY) The signature should be hex-encoded.

Example:

"a1b2c3d4e5f6..."

Response

Authentication successful

Successful authentication response containing JWT token and user details

token
string
required

JWT authentication token for subsequent API requests

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

user
object
required

User account information

expires_at
string<date-time>
required

Token expiration timestamp

Example:

"2025-01-01T12:00:00Z"