Skip to main content

RegisterResponse

Register response

accessTokenstring | nullnullable

JWT access token (if email confirmation not required)

Example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
expiresIninteger,null<int64>nullable

Token expiry in seconds

Possible values: >= 0

Example: 86400
messagestring | nullnullable

Message about email verification if required

Example: Please check your email to verify your account
tokenTypestring | nullnullable

Token type (always "Bearer")

Example: Bearer
user objectrequired

User information in login response

emailstringrequired

Email address

Example: admin@example.com
emailVerifiedbooleanrequired

Whether email has been verified

Example: true
idstring<uuid>required

User unique identifier

Example: 550e8400-e29b-41d4-a716-446655440000
permissionsstring[]required

Custom permissions granted to the user (in addition to role permissions)

Example: ["libraries:write","series:delete"]
rolestringrequired

User role (reader, maintainer, admin)

Example: admin
usernamestringrequired

Username

Example: admin
RegisterResponse
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expiresIn": 86400,
"message": "Please check your email to verify your account",
"tokenType": "Bearer",
"user": {
"email": "admin@example.com",
"emailVerified": true,
"id": "550e8400-e29b-41d4-a716-446655440000",
"permissions": [
"libraries:write",
"series:delete"
],
"role": "admin",
"username": "admin"
}
}