RapidIdentity Product Guide: Legacy UI

Generate Authentication Code

A REST call to generate a user authentication code. A successful response returns an authentication code.

POST /restservices/restservice.svc/GenerateAuthCode

REQUEST:

    curl
      --request POST
      --url https://<MFAServerHostname>/restservices/restservice.svc/GenerateAuthCode
      --data '{
        "userName":<string>,
        "domainName":<string>,
        "timeout":"seconds",
        "codeLength":"number",
        "send":"true false",
        "apiKey":<string>
      }'
  

REQUEST:

    {
      "userName":<string>,
      "domainName":<string>,
      "timeout":"seconds",
      "codeLength":"number",
      "send":"true false",
      "apiKey":<string>
    }
  

RESPONSE 200 OK:

    {
      "status":"success",
      "Result":"377588"
    }