Gamma API

Get the TOTP URI

POST
/api/auth/two-factor/get-totp-uri

Use this endpoint to get the TOTP URI

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
password?string

User password

Response Body

Successful response

application/json
  1. response
totpURI?string
Example Request
curl -X POST 'http://localhost:3000/api/auth/two-factor/get-totp-uri' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "totpURI": "string"}