
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the verification email using REST also.
First I create the account like this:
``` const response = await fetch(${VITE_APPWRITE_ENDPOINT}/users
, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Appwrite-Response-Format': '1.4.0',
'X-Appwrite-Project': VITE_APPWRITE_PROJECT_ID,
'X-Appwrite-Key': PRIVATE_API_KEY,
},
body: JSON.stringify(payload)
});
const json = await response.json();
The json will give me an object with the users account like $id and so on..
How can I use that with this?
```POST /v1/account/verification HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
X-Appwrite-Response-Format: 1.6.0
X-Appwrite-Project: <YOUR_PROJECT_ID>
X-Appwrite-Session:
X-Appwrite-JWT: <YOUR_JWT>
{
"url": "https://example.com"
}```
I don't see where i can pass the userID or email.
Thanks
Recommended threads
- Collection Permission issue
I am facing issue in my Pro account. "Add" button is disabled while adding permission in DB collection settings.
- Origin error after changing default port...
Hi! I need some help regarding an issue I’m facing with Appwrite after changing the default ports. I have a self-hosted Appwrite instance running on my VPS. I ...
- Opened my website after long time and Ba...
I built a website around a year back and and used appwrite for making the backend. At that time the website was working fine but now when i open it the images a...
