OpenRCS API reference · v1 ← Back to console Swagger UI
Accounts

Create a self-service account

POST /accounts public

Creates a new account and sends a confirmation email. The account is provisioned asynchronously after the email is confirmed. Throttled and unauthenticated.

Request body

FieldTypeRequiredDescription
email string yes Account email address (at most 128 characters).
password string no Optional. Omit (or send "") to have the server generate a policy-compliant password, which is returned once in the 200 response so the caller can complete the confirm/login flow. When supplied, must satisfy the password policy: at least 8 characters with an uppercase letter, a lowercase letter, a digit and a special character. A caller-supplied password is never echoed back.
{
  "email": "user@example.com",
  "password": "Secret1!"
}

Responses

StatusDescription
200 Account created; awaiting email confirmation. The body includes a `password` field exactly when the server generated one (i.e. the request omitted/blanked `password`); capture it immediately — it is shown only once, and a caller-supplied password is never echoed.
400 Invalid email or password (policy: at least 8 chars, upper, lower, digit, special).
409 An account with this email already exists.

200 example

{
  "status": "validation_pending",
  "password": "Generated1!"
}