Challenges

Create an OTP challenge for a step-up action

Issues a fresh email OTP via mfa-api bound to the caller's (user, action, device, ip) tuple.

post/v1/challenges

Request

  • Base URL
    https://identity-api.paymongo.com
  • URL
    https://identity-api.paymongo.com/v1/challenges
  • Auth
    HTTP bearer

Request body

Example request

{
  "data": {
    "attributes": {
      "action": "update_user",
      "factor": "email"
    }
  }
}

Response

Created

has_moreboolean

Example response

{
  "data": {
    "attributes": {
      "expiration_at": 1735689600,
      "factor": "email"
    }
  }
}

Changes

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