Finalize OTP session
curl --request POST \
--url https://www.dench.com/api/v1/auth/otp/finalize \
--header 'Content-Type: application/json' \
--data '
{
"authToken": "string"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({authToken: 'string'})
};
fetch('https://www.dench.com/api/v1/auth/otp/finalize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.dench.com/api/v1/auth/otp/finalize"
payload = { "authToken": "string" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"result": {
"organization": {
"id": "org_abc123",
"name": "Acme",
"slug": "acme"
},
"sessionExpiresAt": 1773302400000
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}auth
Finalize OTP session
Finalize an email OTP sign-in session.
POST
/
auth
/
otp
/
finalize
Finalize OTP session
curl --request POST \
--url https://www.dench.com/api/v1/auth/otp/finalize \
--header 'Content-Type: application/json' \
--data '
{
"authToken": "string"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({authToken: 'string'})
};
fetch('https://www.dench.com/api/v1/auth/otp/finalize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.dench.com/api/v1/auth/otp/finalize"
payload = { "authToken": "string" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"result": {
"organization": {
"id": "org_abc123",
"name": "Acme",
"slug": "acme"
},
"sessionExpiresAt": 1773302400000
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}⌘I