Sign up
POST
Makes the account and a first workspace for it, then signs in (sets the session cookie).
application/json- body
name*stringLength
1 <= lengthemail*stringMatch
^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$Format
emailpassword*stringLength
8 <= lengthThe new account and its session token.
curl -X POST 'https://app.useroster.work/api/auth/sign-up/email' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "email": "user@example.com", "password": "stringst"}'Example Response
Empty
Registration policy GET
The effective open, invite or closed policy. Does not disclose email eligibility or administrator addresses.
Sign in POST
Answers with `Set-Cookie: better-auth.session_token=…`. Keep the cookie (curl: `-c cookies.txt`) and send it with every call (`-b cookies.txt`). Limited to 10 a minute per IP.