Authenticate a user by code
POSThttps://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
- application/json
Body
userNamestring
User name or email
passwordstring
Password
providerstring
Social media provider type
accessTokenstring
Provider token
codeOAuthstring
Code for getting a token
Responses
- 200
Two-factor authentication token to use in the 'Authorization' header when calling API methods
- application/json
- Schema
- Example (auto)
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
{
"Token": "abcde12345",
"Expires": "2020-11-24T05:36:20.4206897Z",
"Sms": "true",
"PhoneNoise": "8(999)999-99-99",
"Tfa": "true",
"TfaKey": "123dwa"
}
- curl
- python
- javascript
- php
- csharp
- java
- CURL
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"
}'
ResponseClear