Skip to content
Back

Appwrite Email Verification Query!!

  • 0
  • Functions
  • Cloud
varunarya
8 Aug, 2025, 22:05

Hi team

I've created an Appwrite cloud function to send an email verification to a user. My understanding is that server-side code should use the Users API, but I'm unable to find the createVerification() method in its documentation. However, I've found that method in the Account API.

Could you please clarify my understanding and provide the correct code for sending a verification email from an Appwrite function?

TL;DR
Developers are wondering about the best practice for handling email verification in Appwrite, particularly regarding client-side vs server-side implementation and using SSR. They are seeking clarification on whether to use Users API or Account API for sending verification emails from an Appwrite cloud function and requesting the correct code snippet for this task. Solution: It is recommended for such operations to be done server-side. The correct method for sending email verification from an Appwrite function is to utilize the createVerification() method from the Account API instead of the Users API.
Steven
8 Aug, 2025, 22:49

it's common to make that call client-side. no need to do that server-side. You could use the function for handling the verification, though

Mr. Afonso
8 Aug, 2025, 22:54

Maybe not fully related to the verification but related to your answer, is there a rule on when it's okay/best to do it client-side VS server-side?

Additionally, if we are using SSR, how would that work? Can we make requests on behalf of an user? (aka instead of using the api key/admin client)

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more