Use this endpoint to create a new patient account. On success, the user is persisted to the database with a hashed password and the new record is returned. The account role defaults toDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/bentlyy/Clinica/llms.txt
Use this file to discover all available pages before exploring further.
user (the patient role).
Request
Method:POSTPath:
/api/auth/registerAuth required: No
Body
The email address for the new account. Must be unique — registering with an existing email returns a
400 error.The plain-text password. Clinica hashes this with bcrypt before storing it.
Response
201 — Created
Returns the newly created user record.The unique identifier for the new user.
The email address associated with the account.
Error responses
| Status | Condition | Error message |
|---|---|---|
400 | email or password missing from request body | "Email and password required" |
400 | An account with the given email already exists | "Email already exists" |
{ "error": "<message>" }.
Example
cURL
Response