cURL
curl --request POST \ --url https://api.example.com/api/admin/bootstrap/become-admin \ --header 'Content-Type: application/json' \ --cookie better-auth.session_token= \ --data ' { "description": "<string>", "expiresAt": "<string>" } '
{ "ok": true, "userId": "<string>" }
Promotes the authenticated user to admin role. Dev/staging only — requires a static bootstrap token.
Default Response
true
Was this page helpful?