Description

Sends an OTP code in an SMS to the given mobile number (the input parameter) to be used in RenewPrimaryKeyOTPStep2 for renewing the primary API key. Use this method when the original primary API key is lost or unrecoverable.

HTTP method: PUT
URI: https://api.signere.no/api/ApiToken/OTP/RenewPrimaryKeyStep1
Autorization model: No apikey is neeeded for this operation.
Parameters
Name Type Description Example value Required Max length Min length Nullable Enum Regex
MobileNumber String The mobile phone number to recevie the OTP code for step 2. Must be one of the admin users of the account. +4799775533 True 255   False False ^(\(?\+47\)?)?[- ]?([4|9]{1})([0-9]{1})[- ]?([0-9]{1})([0-9]{1})[- ]?([0-9]{1})([0-9]{1})[- ]?([0-9]{1})([0-9]{1})$
ProviderID Guid The ID of the provider. EA522127D971420595EFA08A00D4D3AE True 36 36 False False ^(\{{0,1}([0-9a-fA-F]){8}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){12}\}{0,1})$
SmsMessage String If you want to specify the sms text that is sent to the end user. Must contain {0} to be replace with the OTP code. One time code for new API key is: {0} False   157 False False ^[a-z A-Z\u0080-\u00FF 0-9 _ . = / + @ % & : \- , ; ! ? ( ) \r\\n \n \r { } \[ \] ]*$
Name MobileNumber
Type String
Description The mobile phone number to recevie the OTP code for step 2. Must be one of the admin users of the account.
Example value +4799775533
Required True
Max length 255
Min length  
Nullable False
Enum False
Regex ^(\(?\+47\)?)?[- ]?([4|9]{1})([0-9]{1})[- ]?([0-9]{1})([0-9]{1})[- ]?([0-9]{1})([0-9]{1})[- ]?([0-9]{1})([0-9]{1})$
Name ProviderID
Type Guid
Description The ID of the provider.
Example value EA522127D971420595EFA08A00D4D3AE
Required True
Max length 36
Min length 36
Nullable False
Enum False
Regex ^(\{{0,1}([0-9a-fA-F]){8}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){12}\}{0,1})$
Name SmsMessage
Type String
Description If you want to specify the sms text that is sent to the end user. Must contain {0} to be replace with the OTP code.
Example value One time code for new API key is: {0}
Required False
Max length  
Min length 157
Nullable False
Enum False
Regex ^[a-z A-Z\u0080-\u00FF 0-9 _ . = / + @ % & : \- , ; ! ? ( ) \r\\n \n \r { } \[ \] ]*$
{
    "ProviderID": "ea522127d971420595efa08a00d4d3ae",
    "MobileNumber": "+4799775533",
    "SmsMessage": "One time code for new API key is: {0}"
}

XML elements must be in same order as in this example xml

<?xml version="1.0" encoding="utf-8"?>
<NewPrimaryTokenStep1Request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Unipluss.Sign.ExternalContract.Entities">
   <MobileNumber>+4799775533</MobileNumber>
   <ProviderID>ea522127-d971-4205-95ef-a08a00d4d3ae</ProviderID>
   <SmsMessage>One time code for new API key is: {0}</SmsMessage>
</NewPrimaryTokenStep1Request>