Gamma API

Email a one-time code

POST
/api/auth/two-factor/send-otp

Send two factor OTP to the user

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Request Body

application/json
  1. body
trustDevice?boolean

Response Body

Successful response

application/json
  1. response
status?boolean
Example Request
curl -X POST 'http://localhost:3000/api/auth/two-factor/send-otp' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "status": true}