auth

Auth Config Bootstrap

Public: given an optional tenant_code, reports how that tenant's login UI should authenticate (native OTP/passkey/SIWE vs. Privy custom auth), plus the tenant's public privy_app_id (never a secret) so the client can initialize the right SDK before the user picks a method. Also publishes what a drop-in login widget needs pre-auth: the OTP methods the tenant can use now (phone only with a usable Twilio Verify connection), otp_length, the tenant's name/logo_url, and self_join_policy. The join code is never echoed back. An expired workspace code gets 404 tenant_code_expired.

get/auth/config

Request

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

Query parameters

tenant_codestring

tenant routing code

Response

OK

successboolean

Example response

{
  "data": {
    "otp_length": 6
  },
  "success": true
}

Changes

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