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
- i need help!
I was working on my project and I just can't stop receiving this message. Is something wrong?
- redirect_uri errors on flutter client
Hi all, I'm using the flutter client for my app to do appwrite auth and use the JWTs to send to my backend. When I try to sign in with SSO, I get this: https:/...
- Request for JWKS Endpoint and OIDC Disco...
Hey Appwrite Team, Do you have plans to support JWKS and a well-known OIDC discovery endpoint? This would let us verify Appwrite JWTs in other services using st...