Verify email OTP
curl --request POST \
--url https://www.dench.com/api/v1/auth/otp/verify \
--header 'Content-Type: application/json' \
--data '
{
"email": "string",
"code": "string",
"agentName": "string",
"agentKind": "string",
"sessionTokenHash": "string",
"intent": "join_existing"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
email: 'string',
code: 'string',
agentName: 'string',
agentKind: 'string',
sessionTokenHash: 'string',
intent: 'join_existing'
})
};
fetch('https://www.dench.com/api/v1/auth/otp/verify', 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/verify"
payload = {
"email": "string",
"code": "string",
"agentName": "string",
"agentKind": "string",
"sessionTokenHash": "string",
"intent": "join_existing"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"result": {
"kind": "completed",
"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
Verify email OTP
Verify an email OTP sign-in code.
POST
/
auth
/
otp
/
verify
Verify email OTP
curl --request POST \
--url https://www.dench.com/api/v1/auth/otp/verify \
--header 'Content-Type: application/json' \
--data '
{
"email": "string",
"code": "string",
"agentName": "string",
"agentKind": "string",
"sessionTokenHash": "string",
"intent": "join_existing"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
email: 'string',
code: 'string',
agentName: 'string',
agentKind: 'string',
sessionTokenHash: 'string',
intent: 'join_existing'
})
};
fetch('https://www.dench.com/api/v1/auth/otp/verify', 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/verify"
payload = {
"email": "string",
"code": "string",
"agentName": "string",
"agentKind": "string",
"sessionTokenHash": "string",
"intent": "join_existing"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"result": {
"kind": "completed",
"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>"
}
}Body
application/json
6+ digit code from the email.
sha256 hex of the local session token.
Whether to join an existing workspace or create a new one.
Available options:
join_existing, create_workspace