Create a new account
const url = 'https://api.aetherpush.com/v1/auth/register';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"adrian@aetherpush.com","password":"correct horse battery staple","name":"Adrian Moreno"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.aetherpush.com/v1/auth/register \ --header 'Content-Type: application/json' \ --data '{ "email": "adrian@aetherpush.com", "password": "correct horse battery staple", "name": "Adrian Moreno" }'Registers a new account with email and password. Provisions a new tenant for the account. Sends a verification email; the account cannot log in until the email is verified.
Rate limited to 5 registration attempts per IP per 60 minutes.
When REGISTRATION_ALLOWLIST is set on the server, emails outside
that list receive 403 before an account is created.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Plain-text password. Server-side strength validation rejects weak passwords with 400 and a ValidationErrorResponse body.
Example
{ "email": "adrian@aetherpush.com", "password": "correct horse battery staple", "name": "Adrian Moreno"}Responses
Section titled “Responses”Account created. Verification email dispatched (or queued for resend if delivery failed).
object
False if the account was created but the verification email
could not be dispatched. Clients should prompt the user to
request a new verification email via /v1/auth/resend-verification.
Example
{ "message": "Account created. Please check your email to verify your account.", "accountId": "5b3f1c8a-4d2e-4a7c-9a1b-8e6f3c2d1b0a", "tenantId": "7c4a2b1d-3e5f-4b6c-8d7e-9f0a1b2c3d4e", "emailSent": true}Missing fields, a name longer than 255 characters, a value too long for a column, or a weak password.
Standard error envelope. code is the stable machine identifier for
client branching and i18n. The wording of error is a human-readable
fallback and is not part of the contract. Specialized responses keep
narrower code enums where clients already branch on them.
object
Human-readable error message.
Stable machine code. Prefer this over matching on error. The
values this API can answer with are listed in the ApiErrorCode
schema of the raw document at
https://api.aetherpush.com/openapi.yaml. The field stays an
open string here so that a release adding a value does not
invalidate this response.
Unique identifier for the request, also exposed as the X-Request-Id response header.
object
object
Stable machine code for this field error.
Examples
Missing email or password
{ "error": "Email and password are required.", "code": "email_password_required", "requestId": "req_abc123"}Register name over 255 characters
{ "error": "Validation failed.", "code": "validation_failed", "errors": [ { "field": "name", "message": "Field is invalid", "code": "field_invalid" } ], "requestId": "req_abc123"}Weak password failing strength rules
{ "error": "Validation failed.", "code": "validation_failed", "errors": [ { "field": "password", "message": "Password must be at least 12 characters long.", "code": "password_too_short" } ], "requestId": "req_abc123"}Registration is restricted by REGISTRATION_ALLOWLIST on this
environment. The email is outside the configured list.
Standard error envelope. code is the stable machine identifier for
client branching and i18n. The wording of error is a human-readable
fallback and is not part of the contract. Specialized responses keep
narrower code enums where clients already branch on them.
object
Human-readable error message.
Stable machine code. Prefer this over matching on error. The
values this API can answer with are listed in the ApiErrorCode
schema of the raw document at
https://api.aetherpush.com/openapi.yaml. The field stays an
open string here so that a release adding a value does not
invalidate this response.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "Registration is restricted on this environment.", "code": "registration_restricted", "requestId": "req_abc123"}An account with this email already exists. When that account is scheduled for deletion, the message adds the deletion date (YYYY-MM-DD, UTC) and the way back: sign in and choose Cancel deletion before that date, or the address becomes available once the deletion runs.
Standard error envelope. code is the stable machine identifier for
client branching and i18n. The wording of error is a human-readable
fallback and is not part of the contract. Specialized responses keep
narrower code enums where clients already branch on them.
object
Human-readable error message.
Stable machine code. Prefer this over matching on error. The
values this API can answer with are listed in the ApiErrorCode
schema of the raw document at
https://api.aetherpush.com/openapi.yaml. The field stays an
open string here so that a release adding a value does not
invalidate this response.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "An account with this email already exists.", "code": "account_email_exists", "requestId": "req_abc123"}Too many registration attempts from this IP.
Returned with HTTP 429 when an endpoint-specific rate limit is hit,
including the per-tenant management API budget. Not the process-wide
address limiter (see GlobalAddressRateLimitErrorResponse).
retryAfterSeconds
indicates how long the client should wait before retrying, and matches
the Retry-After header when that header is set. code names the
limit that fired so clients can translate without matching on error.
object
Example
{ "error": "Too many registration attempts. Please try again later.", "code": "too_many_registration_attempts", "retryAfterSeconds": 3600, "requestId": "req_abc123"}Internal server error.
Standard error envelope. code is the stable machine identifier for
client branching and i18n. The wording of error is a human-readable
fallback and is not part of the contract. Specialized responses keep
narrower code enums where clients already branch on them.
object
Human-readable error message.
Stable machine code. Prefer this over matching on error. The
values this API can answer with are listed in the ApiErrorCode
schema of the raw document at
https://api.aetherpush.com/openapi.yaml. The field stays an
open string here so that a release adding a value does not
invalidate this response.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "The requested resource was not found.", "code": "not_found", "requestId": "req_abc123"}