Authenticate a user by code
POST /api/2.0/authentication/{code}
Request
Authenticates the current user by SMS or two-factor authentication code.
Headers
- Accept
enum of string
Can be one of:
application/json
.- Content-Type
enum of string
Can be one of:
application/json
.
Path
- code
string
Two-factor authentication code
Body
- userName
string
User name or email
- password
string
Password
- provider
string
Social media provider type
- accessToken
string
Provider token
- codeOAuth
string
Code for getting a token
Examples
POST /api/2.0/authentication/%7Bcode%7D HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: example.com
curl --request POST \
--url https://example.com/api/2.0/authentication/%7Bcode%7D \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Responses
200
Two-factor authentication token to use in the 'Authorization' header when calling API methods
- Token
string
- Expires
string
- Sms
boolean
- PhoneNoise
string
- Tfa
boolean
- TfaKey
string