Request Headers (Applies to all methods)
POST
/api/apps/{appID}/users/{accountType}:{address}/email-address/verify
Verify the email address of the user.
Content-Type application/vnd.kii.AddressVerificationRequest+json
The verification code must be provided.
- Authorization Basic: header for granting an anonymous access.
- Set a Base64-encoded string of AppID and AppKey concatenated with a colon (APP_ID:APP_KEY).
- The header should look like:
Authorization: Basic czZCaGRSa3F0Mzo3RmpmcDBaQnIxS3REUmJuZlZkbUl3 - Authorization Bearer: using Oauth2 Bearer Token.
- The header should look like:
Authorization: Bearer ht5fpHQAyrPPwLftK1rAqllv5WNVPCnYfPiCvPocFuQ
{
"verificationCode": "[string]"
}
Content-Type application/vnd.kii.AddressVerificationResponse+json
Name | Type | Description |
---|---|---|
verificationStatus | AddressVerificationStatus | The status of the verification. |
Content-Type application/vnd.kii.UserNotFoundException+json
Name | Type | Description |
---|---|---|
errorCode | string | Error code "USER_NOT_FOUND". |
message | string | The error message. |
field | string | The field used for searching the user. This can be the userID or address field. |
value | string | The field value used for searching the user. |
appID | string | The ID of the application. |
Content-Type application/vnd.kii.InvalidAccountStatusException+json
Name | Type | Description |
---|---|---|
errorCode | string | Error code "INVALID_ACCOUNT_STATUS". |
message | string | The error message. |
userID | string | The ID of the user. |
appID | string | The ID of the application. |
accountType | AccountType | The type of the account. |
Content-Type application/vnd.kii.InvalidVerificationCodeException+json
Name | Type | Description |
---|---|---|
errorCode | string | Error code "INVALID_VERIFICATION_CODE". |
message | string | The error message. |
userID | string | The ID of the user. |
appID | string | The ID of the application. |
verificationCode | string | The verification code. |
Content-Type application/vnd.kii.AddressAlreadyInUseException+json
Name | Type | Description |
---|---|---|
errorCode | string | Error code "USER_ALREADY_EXISTS". |
message | string | The error message. |
field | string | The field used to check the user already exists, can be "loginName", "emailAddress" or "phoneNumber". |
value | string | The value of the field. |
Content-Type application/vnd.kii.UserDisabledException+json
Name | Type | Description |
---|---|---|
errorCode | string | Error code "USER_DISABLED". |
message | string | The error message. |
UserID | string | The ID of the user. |
appID | string | The ID of the application. |