Create an account & sign in
Sign up through the UI at /sign-up. Better-auth sets a session cookie on the response — every subsequent call in this quickstart includes it as better-auth.session_token. The shape and the cookie contract are spelled out in the auth guide.
For scripted setups the same path works as a REST endpoint. The shape below is what the better-auth handler accepts.
curl -X POST https://streamwake.polsia.io/api/auth/sign-up/email \
-H "content-type: application/json" \
-d '{
"name": "Your Name",
"email": "you@example.com",
"password": "choose-a-strong-password"
}'