The users API covers the full account lifecycle: registering a new ECHO account, authenticating to receive a JWT token, reading and updating user data, and deleting accounts. Most endpoints that modify data require a valid Bearer token in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/HelenaLM32/ECHO/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header. See Authenticate with the ECHO API for details on obtaining a token.
The base URL for all endpoints on a local development server is
http://localhost:8084. Replace this with your deployed API URL in production.Get all users
Authentication
Requires a valid JWT token withADMIN role.
Example
Response fields
Unique identifier for the user.
The user’s email address.
The user’s display name.
List of role names assigned to the user. Possible values:
ADMIN, USER, CREATOR, VENUE_MANAGER.Get user by ID
Path parameters
The numeric ID of the user to retrieve.
Example
Response fields
Unique identifier for the user.
The user’s email address.
The user’s display name.
List of role names assigned to the user (e.g.,
["USER"], ["ADMIN"]).Error codes
| Status | Meaning |
|---|---|
404 | No user exists with the given ID. |
Register new user
/users/login to obtain a JWT token.
Request body
A valid email address. Must be unique across all accounts.
A display name. Must be at least 3 characters long.
Account password. Validated server-side for minimum length and format.
Example
Response fields
The newly created user’s ID.
The registered email address.
The chosen display name.
Error codes
| Status | Meaning |
|---|---|
400 | Validation failed (malformed email, username too short, weak password). |
409 | An account with the given email already exists. |
Login
Request body
The email address used to register the account.
The account password.
Example
Response
On success, returns a JSON object containing the JWT token and user details. Store thetoken securely and include it as a Bearer token on subsequent authenticated requests.
Error codes
| Status | Meaning |
|---|---|
401 | Incorrect email or password. |
Update user
ADMIN role.
Path parameters
The numeric ID of the user to update.
Request body
Updated email address.
Updated display name.
Example
Error codes
| Status | Meaning |
|---|---|
400 | Validation failed. |
403 | Not authorized to update this user. |
404 | No user exists with the given ID. |
Delete user
ADMIN may delete any account.
Path parameters
The numeric ID of the user to delete.
Example
Error codes
| Status | Meaning |
|---|---|
403 | Not authorized to delete this user. |
404 | No user exists with the given ID. |
Update credentials
Path parameters
The numeric ID of the user whose credentials to update.
Request body
All fields are optional, but at least one must be provided.New display name to set. Must be at least 3 characters.
The account’s current password. Required when setting a new password.
The password to replace the current one. Requires
currentPassword to also be provided.Example
Error codes
| Status | Meaning |
|---|---|
400 | Validation failed or currentPassword is incorrect. |
403 | Not authorized to update this user’s credentials. |
404 | No user exists with the given ID. |