Palbase Auth API · API
/admin/test-users/addressesMake a sign-up address for a test
Makes an address for an app's sign-up to be tested with: a sign-up with it (POST /auth/signup) opens a test user — its token says test, it is not counted as an active user, and its verification mail is kept in its test inbox (GET /notify/test-users/{user_id}/messages), never sent. Only the secret key makes one; it holds a place of the project's test-user cap until it is used (once) or lapses a day later. A sign-up with any other address opens an ordinary user. 409 test_user_cap_exceeded when the cap is full.
Called by your server, with the project's secret key.
curl -X POST "https://<your-ref>.palbase.studio/admin/test-users/addresses" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
201The address
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)
503Downstream dependency unavailable (typically HIBP / breach service)
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation AdminCreateTestSignupAddress of auth's contract.