TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/danielsl4/TFG_DAM_2526/llms.txt
Use this file to discover all available pages before exploring further.
/register endpoint creates a new user account and returns a signed JWT so your client can authenticate immediately without a separate login step. All new accounts are assigned the user role by default.
This endpoint is rate-limited to 10 requests per IP address per 15-minute window using a Redis-backed store. Exceeding the limit returns a 429 Too Many Requests response.
Request
Method:POSTPath:
/register
Body parameters
Unique display name for the account. Must not already exist in the system.
Email address for the account. Must not already be registered.
Plain-text password. Stored as a bcrypt hash (cost factor 10). Minimum length is not enforced by the API but short passwords are strongly discouraged.
Response
201 Created
Account was created successfully. The response includes the new user object and a ready-to-use JWT.Human-readable confirmation, e.g.
"User registered successfully".Signed JWT. Include this in subsequent requests as
Authorization: Bearer <token>. Expires in 7 days for user role accounts (6 hours for admin and referee).Errors
| Status | Condition |
|---|---|
400 Bad Request | One or more of username, email, or password is missing from the request body. |
409 Conflict | The username or email is already taken by an existing account. |
429 Too Many Requests | Rate limit exceeded. Retry after 15 minutes. |
500 Internal Server Error | Database error or JWT signing failure. |
Example
201 response