Sofa
Admin

Toggle registration

Open or close new user registration.

PUT
/admin/registration
better-auth.session_token<token>

Better Auth session cookie

In: cookie

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

open*boolean

Whether new user registration is allowed

Response Body

curl -X PUT "http://localhost:3000/api/v1/admin/registration" \  -H "Content-Type: application/json" \  -d '{    "open": true  }'
Empty