​Проверка статуса аутентификации
Используется для получения информации о текущем статусе аутентификации, указав ее идентификатор.
Чтобы проверить статус аутентификации, отправьте запрос по этому URL:
GET https://one-api.notificore.ru/api/2fa/authentications/{id}
Request parameters
ParameterRequiresTypeDefaultDescription
idYesstringNoAuthentication ID received in response to https://one-api.notificore.ru/api/2fa/authentications/otp. The maximum length is 36 characters.
Response parameters
ParameterTypeDescription
idstringAuthentication ID created at the request of the user.
recipientstringOTP message recipient number (specified by the user in the authentication request)
statusstringAuthentication status. Possible values: pending – authentication has been created and is in the pending state verified – authentication successful (code successfully verified) expired – authentication has expired failed – authentication failed canceled – authentication has been canceled.
channelstringAuthentication channel. Possible values: SMS, Viber.
senderstringThe name of the sender (specified by the user in the authentication request).
sender_altstringAlternative sender name for sending SMS (specified by the user in the authentication request).
code_lifetimeintegerOTP expiration date (specified by the user in the authentication request).
code_max_triesintegerNumber of OTP verification attempts (specified by the user in the authentication request).
code_digitsintegerThe number of digits in the OTP (specified by the user in the authentication request).
pricestringAuthentication cost (excluding the cost of sent messages). The amount must be displayed with 7 decimal places.
currencystringThe three-letter code of the currency in which the value is indicated.
country_codestringReceiver’s country code according to ISO 3166-1 alpha-2.
expired_atstringThe expiration date of the authentication session.
created_atstringThe date and time of the authentication were created in ISO 8601 format.
finished_atstringDate and time when authentication was closed in ISO 8601 format.
messagesarrayArray of message objects:
messages[]idstringThe unique ID of the message.
messages[]recipientstringThe recipient’s phone number.
messages[]statusstringMessage status. Possible values: delivered – the message was sent accepted – message accepted for sending undelivered – the message was not delivered.
messages[]channelstringThe channel for sending the message. Possible values: SMS or Viber.
messages[]senderstringThe name of the sender of the message.
messages[]textstringMessage text.
messages[]pricefloatMessage cost.
messages[]currencystringThe three-letter code of the currency in which the value is indicated.
messages[]sent_atstringThe date and time of the message were sent in ISO 8601 format.
messages[]created_atstringThe date and time the message was created in ISO 8601 format.
Response example

Ответ в случае успешного запроса:
{
  "data": {
    "id": "ea5db413-e368-4952-b745-cc2030210c49",
    "recipient": "792501403813",
    "status": "verified",
    "channel": "sms",
    "sender": "testsms",
    "sender_alt": "string",
    "message_text": "Your Notificore 2FA confirmation code is {code}. Do not share this with anyone else.",
    "code_lifetime": 30,
    "code_max_tries": 5,
    "code_digits": 6,
    "price": 50.25,
    "currency": "EUR",
    "country_code": "RU",
    "expired_at": "2022-04-28 14:21:16",
    "created_at": "2022-04-28 14:21:16",
    "updated_at": "2022-04-28 14:21:16",
    "finished_at": "2022-04-28 14:21:16",
    "messages": [
      {
        "id": "1ed32701-5d4f-6cfa-ba06-9db3aa8bab68",
        "recipient": "61401629754",
        "status": "accepted",
        "channel": "sms",
        "sender": "SENDER",
        "price": 0.0642918,
        "currency": "EUR",
        "sent_at": "2022-04-18 11:00:30",
        "created_at": "2022-04-18 10:55:35"
      }
    ]
  }
}
Codes of errors
CodeErrorDescription
404Authentication not foundThis error can occur when the authentication identifier is specified incorrectly or the specified authentication is not present in the system. Please ensure that you are using the correct authentication identifier and try again.