auth

Request O T P

Public: starts the native email_otp login/registration flow by emailing a one-time code to email (optionally scoped by tenant_code). Always 200 {message:"code sent"} on success; the code itself is only echoed in the response body when the deployment has expose_dev_otp enabled (local/dev only). An expired workspace code gets 404 tenant_code_expired.

post/auth/otp/request

Request

  • Base URL: https://api.instruxi.dev/api/v1/enforcer
  • URL: https://api.instruxi.dev/api/v1/enforcer/auth/otp/request
  • Auth: none declared

Request body

emailstring
tenant_codestring

Response

OK

dev_otpstring
messagestring
successboolean

Example response

{
  "success": true
}

Changes

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