Skip to content

Verify code

Request

Verify the code sent via email or SMS. Returns verification status and the verified contact information (email/phone).

Security
PartnerApiKey and PartnerOAuth
Path
accountIdinteger, (int64)required
idinteger, (int64)required
Bodyapplication/jsonrequired

Provide either email or phone (not both), along with the verification code

codestringrequired

Verification code received

Example:"123456"
emailstring

Email that received the code. Provide either email or phone, not both.

Example:"john@example.com"
phonestring

Phone number that received the code (10-digit US number, e.g. 5551234567). Country code is optional and defaults to US (+1). Provide either email or phone, not both.

curl -i -X POST \
  'https://api-docs.lobbie.com/_mock/openapi/partner/v2/account/{accountId}/identity-proof/{id}/verify' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -d '{
    "phone": "5551234567",
    "code": "123456"
  }'

Responses

Verification result (success or failure)

Bodyapplication/json
verifiedboolean

Whether the code was verified successfully

Example:true
verifiedEmailstring

Verified email (if verification succeeded)

Example:"john@example.com"
verifiedPhonestring

Verified phone (if verification succeeded)

Example:"5551234567"
Response
{ "verified": true, "verifiedEmail": "john@example.com", "verifiedPhone": "5551234567" }