The KERN API has two public authentication endpoints. Neither requires an existing token. Both return aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/jaimegayo/KERNDOCUMENTATION/llms.txt
Use this file to discover all available pages before exploring further.
LoginResponse containing a JWT access token and the full user object.
POST /register
Registers a new user account and returns a JWT access token immediately. No email verification step is required. Auth required: NoRequest body
Unique display name for the account. Must not already exist in the database.
Email address. Must be unique across all accounts.
Plain-text password. Stored as a SHA-256 hash — never in plain text.
User’s full name. Optional.
Phone number. Optional.
Response — 200
Signed JWT token. Valid for 30 minutes. Use as
Authorization: Bearer <accessToken>.Always
"bearer".Errors
| Status | detail | Cause |
|---|---|---|
400 | "El usuario o email ya existe" | username or email is already taken |
Example
POST /login
Authenticates an existing user with their email address and password, and returns a fresh JWT access token. Auth required: NoRequest body
The email address used when registering the account.
The account password in plain text. The API compares its SHA-256 hash against the stored hash.
Response — 200
SameLoginResponse structure as POST /register. See the response fields above.
Errors
| Status | detail | Cause |
|---|---|---|
401 | "Email o contraseña incorrectos" | No account found for that email, or password hash does not match |