Get mutual authentication passcode
POST/:handle/:session_id/otp
Verify mutual authentication fields and get the secret passcode
Request
Path Parameters
handle stringrequired
Org handle
session_id stringrequired
Session ID
- application/json
Body
required
request body
digest string
Digest of the plaintext hashed with salt
Responses
- 200
- 400
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
data
object
otp string
Secret code that the sender should know
ttl_ms integer
Milliseconds left before the session expires
success boolean
{
"data": {
"otp": "string",
"ttl_ms": 0
},
"success": true
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
data integer[]
detail string
Human-friendly description that can be shown to the user.
error_code string
error_id string
Only present in case of internal errors (status 500 or 502)
{
"data": [
0
],
"detail": "string",
"error_code": "string",
"error_id": "string"
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
data integer[]
detail string
Human-friendly description that can be shown to the user.
error_code string
error_id string
Only present in case of internal errors (status 500 or 502)
{
"data": [
0
],
"detail": "string",
"error_code": "string",
"error_id": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
data integer[]
detail string
Human-friendly description that can be shown to the user.
error_code string
error_id string
Only present in case of internal errors (status 500 or 502)
{
"data": [
0
],
"detail": "string",
"error_code": "string",
"error_id": "string"
}
Loading...