auth

Start PIN reset (send 2FA code)

Sends a one-time code to the caller's verified contact: channel "email" or "sms", or omit to auto-pick (email preferred). 412 no_verified_contact when nothing verified is on file; 400 channel_unavailable when the requested channel has no verified destination. Tenant admins resetting someone ELSE's PIN use DELETE /accounts/{id}/pin instead — no code involved.

post/auth/me/pin/reset/start

Request

  • Base URL: https://api.instruxi.dev/api/v1/enforcer
  • URL: https://api.instruxi.dev/api/v1/enforcer/auth/me/pin/reset/start
  • Auth: API key in header Authorization

Request body

channel'email' | 'sms'

Example request

{
  "channel": "email"
}

Response

OK

successboolean

Example response

{
  "data": {
    "channel": "email",
    "destination": "a•••@example.com"
  },
  "success": true
}

Changes

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