Input Text
Output
All examples use BASE_URL — set it to your deployment URL, e.g. https://winnieapi-v2.yourdomain.com
POST/api/text/encode
Encode text with the specified method (rot13, binary, morse, reverse, leetspeak, upside_down).
const res = await fetch(`${BASE_URL}/api/text/encode`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ text: "Hello World", method: "morse" })
});
// → { success: true, result: ".... . .-.. .-.. --- / .-- --- .-. .-.. -.." }