Input Text
Slug Output
All examples use BASE_URL — set it to your deployment URL.
POST/api/text/slugify
Convert text to a URL-friendly slug. Optional: separator (-, _, .) and lowercase (boolean).
const res = await fetch(`${BASE_URL}/api/text/slugify`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
text: "Hello World! My Blog Post #1",
separator: "-",
lowercase: true
})
});
// → { success: true, result: "hello-world-my-blog-post-1" }