Palbase Auth API · API
/admin/usersCreate a user
Creates an email + password user without the self-service signup's rate limits and bot checks. The email must be a valid address not already taken (409 user_exists); the password must satisfy the project's password policy and, unless skip_password_hibp is true, must not appear in known breaches (503 when the breach check is unavailable). Send an Idempotency-Key to make the call safe to retry.
Called by your server, with the project's secret key.
Headers
Idempotency-Keystring · optionalMakes the creation safe to send again. A retry with the same key and the same request gets the first answer back (marked Idempotent-Replayed: true) instead of creating twice; the same key with a different request is refused with 422, and while the first request still runs a retry gets 409 with Retry-After. Answers are kept for 24 hours.Request body
emailstring (email) · requiredemail_verifiedboolean · optionalCreate the user with the email already verified. Default false.metadataobject · optionalThe user's free-form metadata: any JSON object.passwordstring (password) · requiredMust satisfy the project's password policy (length bounds; not in known breaches unless skip_password_hibp).skip_password_hibpboolean · optionalSkip the known-breaches check on the password. Default false.curl -X POST "https://<your-ref>.palbase.studio/admin/users" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"email":"user@example.com","password":"string"}'Responses
201The created user
400Validation failed or required field missing
401Missing, invalid, or expired credentials
403Not permitted with this key; or the project is the platform's own (`owner_only`): every change on its admin surface — any account's address, password, factors, sessions or roles, an account made or imported, a sign-in minted, a setting — is its owner's or its operator's alone. The request carries, besides the project's key, the owner's access token (X-Palbase-Owner; a passkey sign-in of the last 15 minutes, else 401 `insufficient_user_authentication`) or the operator's token (X-Palbase-Operator). Its key reads.
409Conflict with current resource state (duplicate, race)
413A request carrying an Idempotency-Key has a body over 1 MiB (request_too_large)
422The Idempotency-Key was already used with a different request (idempotency_key_reused)
503Downstream dependency unavailable (typically HIBP / breach service)
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation AdminCreateUser of auth's contract.