
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
- Suggested docker-compose.yml uses known-...
The version of `docker-compose.yml` in the self-hosted instructions uses the image `appwrite/console:6.0.13` for the `appwrite-console` container. This version ...
- Asynchronous Function Execution via Func...
Hi everyone, Is there a way to call a function via its function domain URL with async execution set to true?
- Server Error when upserting existing and...
Hello there! Im currently experiencing issues with the not so long ago officially announced upserting funcionality. Im running appwrite 1.7.4 self hosted and no...
