Authorization - Generate token

API Url

Generate a one-time login token for a user. Requires administrator privileges.

GET
http://localhost:16010/ProMarkREST/web/Auth/users/{id}/token

Permissions: user

Path parameters

FieldTypeDescription
idString

The unique User ID.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    tokenObject
      otpoptionalString

Generated OTP

      otpExpiryoptionalDateTime

OTP expiry timestamp.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.