ALAMAT EMAIL KAMU
kyzenstore.my.id
8
JSON
24h
OTP
POST
/api/addressaddressstring | ||
usernamestring |
curl -X POST https://tmailkyzen.kyzenstore.my.id/api/address -H "Content-Type: application/json" -d '{}'const res = await fetch('https://tmailkyzen.kyzenstore.my.id/api/address', { method: 'POST' });
const { address, token } = await res.json();200 OK
{
"address": "[email protected]",
"token": "TOKEN_RAHASIA",
"expiresIn": 86400
}GET
/api/messages?address=&token=addressstring | ||
tokenstring |
curl "https://tmailkyzen.kyzenstore.my.id/api/[email protected]&token=TOKEN"
const url = `https://tmailkyzen.kyzenstore.my.id/api/messages?address=${address}&token=${token}`;
const { messages } = await (await fetch(url)).json();
console.log(messages[0]?.otp);200 OK
{
"messages": [
{ "id": "...", "from": "...", "subject": "...",
"otp": "123456", "attachmentCount": 0,
"preview": "...", "createdAt": 1730000000000 }
]
}GET
/api/messages/:id?address=idstring | ||
addressstring | ||
x-kyzen-tokenheader |
curl "https://tmailkyzen.kyzenstore.my.id/api/messages/[email protected]" -H "x-kyzen-token: TOKEN"
const res = await fetch(`https://tmailkyzen.kyzenstore.my.id/api/messages/${id}?address=${address}`,
{ headers: { 'x-kyzen-token': token } });
const msg = await res.json();200 OK
{
"subject": "...", "text": "...", "html": "...",
"otp": "123456", "attachments": []
}GET
/api/messages/:id/attachments/:indexidstring | ||
indexnumber | ||
addressstring | ||
tokenstring | ||
download1 |
REQUEST
curl "https://tmailkyzen.kyzenstore.my.id/api/messages/ID/attachments/[email protected]&token=TOKEN&download=1" -o file
DELETE
/api/messages/:ididstring | ||
addressstring | ||
tokenstring |
REQUEST
curl -X DELETE https://tmailkyzen.kyzenstore.my.id/api/messages/ID -H "Content-Type: application/json" -d '{"address":"[email protected]","token":"TOKEN"}'DELETE
/api/messagesaddressstring | ||
tokenstring |
REQUEST
curl -X DELETE https://tmailkyzen.kyzenstore.my.id/api/messages -H "Content-Type: application/json" -d '{"address":"[email protected]","token":"TOKEN"}'POST
/api/translatetextstring | ||
targetid | en |
curl -X POST https://tmailkyzen.kyzenstore.my.id/api/translate -H "Content-Type: application/json" -d '{"text":"Hello","target":"id"}'const res = await fetch('https://tmailkyzen.kyzenstore.my.id/api/translate', {
method: 'POST', headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ text: 'Hello', target: 'id' })
});
const { translated } = await res.json();200 OK
{
"translated": "Halo",
"target": "id"
}GET
/api/healthREQUEST
curl https://tmailkyzen.kyzenstore.my.id/api/health
200 OK
{
"status": "ok",
"domains": ["kyzenstore.my.id"]
}