Generate OTP code

Authgear Admin GraphQL API supports generating OTP code on behalf of end-user when they asks for support.

API Details

The query:

mutation ($target: String!) {
  generateOOBOTPCode(input: { target: $target }) {
    code
  }
}

The variables:

{
  "target": "<USER_EMAIL_OR_PHONE_NUMBER>"
}

The sample variables:

{
  "target": "user@example.com"
}

The sample response:

{
  "data": {
    "generateOOBOTPCode": {
      "code": "123456"
    }
  }
}

Last updated