Skip to main content

Authenticate a user by code

POST 

https://localhost:8092/api/2.0/authentication/:code

Authenticates the current user by SMS or two-factor authentication code.

Request

Path Parameters

    code string

    Two-factor authentication code

Body

    userNamestring

    User name or email

    passwordstring

    Password

    providerstring

    Social media provider type

    accessTokenstring

    Provider token

    codeOAuthstring

    Code for getting a token

Responses

Two-factor authentication token to use in the 'Authorization' header when calling API methods

Schema
    Tokenstring
    Example: abcde12345
    Expiresstring
    Example: 2020-11-24T05:36:20.4206897Z
    Smsboolean
    Example: true
    PhoneNoisestring
    Example: 8(999)999-99-99
    Tfaboolean
    Example: true
    TfaKeystring
    Example: 123dwa
curl -L 'https://localhost:8092/api/2.0/authentication/:code' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"userName": "string",
"password": "string",
"provider": "string",
"accessToken": "string",
"codeOAuth": "string"
}'
Request Collapse all
Base URL
https://localhost:8092
Parameters
— path
Body
{
  "userName": "string",
  "password": "string",
  "provider": "string",
  "accessToken": "string",
  "codeOAuth": "string"
}
ResponseClear

Click the Send API Request button above and see the response here!