Auth

Start TOTP enrollment for the current user

post/auth/security/totp/setup

Request

  • Base URL: https://app.openpo.st/api/v1
  • URL: https://app.openpo.st/api/v1/auth/security/totp/setup
  • Auth: one of:
    • HTTP bearer
    • API key in cookie openpost_session

Request body

$schemastring uri

A URL to the JSON Schema for this object.

current_passwordstring required

Current password for re-authentication

reauth_grantstring

One-time action-bound reauthentication grant

Example request

{
  "$schema": "https://example.com/api/v1/schemas/SetupTOTPInputBody.json"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

challenge_idstring required
manual_entry_keystring required
otpauth_urlstring required
qr_code_data_urlstring required

Example response

{
  "$schema": "https://example.com/api/v1/schemas/SetupTOTPOutputBody.json"
}

Changes

No recorded changes to this operation across all 1 revision of this API.