Skip to main content
POST
Sign in and create a key

Authorizations

better-auth.session_token
string
cookie
required

Better Auth session cookie from email/password sign-in. On an https API origin the name is __Secure-better-auth.session_token. On http it is better-auth.session_token. Host-only unless AUTH_COOKIE_DOMAIN is set. Use a cookie jar instead of typing the name.

Body

application/json

A name is required, 1 to 32 characters.

name
string
required
Required string length: 1 - 32

Response

The new key, including key once.

id
string
required
key
string
required
name
string
start
string | null
{key}
any