Retrieving Email Verification
Description
This web service returns all the e-mail verification details of the required user.
Definition
GET https://<domain>/services/apexrest/peer/v1/email/verifyEmailToken
Parameters
The table given below provides details of the request parameters used by this web service:
Fields | Type | Description |
---|---|---|
register | String | This is used to register a new user |
emailToken* | String | This is the e-mail token of the user |
Error messages
When you post a web service, you can receive the possible error messages as shown in the table below:
Error Code | Reason | HTTP Status Code |
---|---|---|
'invalid/expired/used verification link | You will receive this error if the verification link associated with a particular e-mail ID is already used. | 400 |
Email no longer with your account | You will receive this error if the requested e-mail ID not associated with your account. | 400 |
<exception message> | You will receive this error if there is any run time exception | 500 |
Sample Request
The sample request to be sent is as shown below:
GET https://na11.salesforce.com/services/apexrest/peer/v1/email/verifyEmailToken?emailToken=1234576575767
Sample Response
The sample response that you will receive is as shown below:
{ "status":"SUCCESS", "response":[ { "userId":"001G000001PhdoeIAB", "email":"anilb@cloudlendinginc.com" } ], "errorCode":"NO_ERROR", "content":[ ] }