Skip to Content
Xeonr Developer Docs
API SpecificationCurrent User

Verify Email

POST
/xeonr.auth.api.v1.MeService/VerifyEmail

Completes verification of an address added with AddEmail, using the token from the emailed link. Must be called as the account that added the address. Refused with failed_precondition when another account verified the address first.

Required scopes: auth:emails:edit or auth:account:edit

Authorization

AuthorizationBearer <token>

JWT access token obtained via OAuth2 flow or service account

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

token?string

The token from the verification link.

Length16 <= length <= 128
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.api.v1.MeService/VerifyEmail" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "email": {
    "id": "6f1c2a9e-3b7d-4c55-9a43-2f0e8d1b7c61",
    "email": "[email protected]",
    "verified": true,
    "primary": true,
    "sources": [
      "EMAIL_SOURCE_UNSPECIFIED"
    ],
    "connectionIdpSlugs": [
      "github"
    ],
    "verifiedAt": "2023-01-15T01:30:15.01Z",
    "verificationExpiresAt": "2023-01-15T01:30:15.01Z",
    "createdAt": "2023-01-15T01:30:15.01Z"
  }
}