Skip to main content
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"
}
'
{
  "error": {
    "message": "<string>",
    "type": "<string>",
    "code": "<string>",
    "details": "<unknown>"
  }
}

Body

application/json
email
string
required
code
string
required

6+ digit code from the email.

agentName
string
required
agentKind
string
required
sessionTokenHash
string
required

sha256 hex of the local session token.

intent
enum<string>
required

Whether to join an existing workspace or create a new one.

Available options:
join_existing,
create_workspace
proposedOrganizationName
string
organizationSelector
string
userAgent
string

Response

Successful response