CapWorks Better Auth API
boolean · enum · requiredstring · required
string · requiredstring · requiredstringstringstring · required
POST
https://capworks-api-docs.pages.dev/proxy/capworks
/api/auth/email-otp/verify-email
Verify email with OTP
Responses
Success
statusIndicates if the verification was successful
Enum values:
tokenSession token if autoSignInAfterVerification is enabled, otherwise null
User · required
POST
https://capworks-api-docs.pages.dev/proxy/capworks
/api/auth/sign-in/email-otp
Sign in with email and OTP
Request Body
emailEmail address to sign in
otpOTP sent to the email
nameUser display name. Only used if the user is registering for the first time. Eg: "my-name"
imageUser profile image URL. Only used if the user is registering for the first time.
No data returned
Responses
Success
tokenSession token for the authenticated session
User · required