Verify account email
#
Method#
/security/verify-emailPOST
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/security/verify-email
#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
ConceptMethod used to verify the account email. You can register an email on your WhatsApp account through the Set Account Email API.
caution
This API is available only for mobile instances.
#
Attributes#
RequiredAttributes | Type | Description |
---|---|---|
verificationCode | string | Verification code sent to the email that was registered on the account |
#
Request Body#
Response#
200Attributes | Type | Description |
---|---|---|
success | boolean | Defines if the request was executed successfully |
#
Example#
400Invalid request. Check if the data you are sending is in accordance with the documentation above.
#
405In this case, make sure you are correctly sending the method specification, i.e., check if you sent the POST or GET as specified at the beginning of this topic.
#
415If you receive a 415 error, make sure to add the "Content-Type" of the object you are sending to the headers of the request, mostly "application/json"