Domain: dezz.web.id
Semua endpoint publik untuk membuat shortlink otomatis, custom, dan contoh integrasi Bot WA.
Membuat shortlink otomatis tanpa custom slug.
/api/create
Request Body:
{
"original_url": "https://example.com"
}
Response:
{
"success": true,
"short_url": "https://dezz.web.id/abc123"
}
Membuat shortlink dengan custom slug sendiri.
/api/customlink
Request Body:
{
"original_url": "https://example.com",
"custom_slug": "namalink"
}
Response:
{
"success": true,
"short_url": "https://dezz.web.id/namalink"
}
Redirect otomatis berdasarkan slug
/api/[slug]
Bisa langsung membuat shortlink dari chat WhatsApp menggunakan command:
!dezzshort <URL>
Node.js / Baileys:
import axios from "axios";
case 'dezzshort': {
if (!args[0]) return m.reply('❌ Masukkan URL untuk di-shortlink!');
const originalUrl = args[0];
try {
const res = await axios.post('https://dezz.web.id/api/create', {
original_url: originalUrl
});
if (res.data.success) {
m.reply(\`✅ Shortlink berhasil dibuat:\n\${res.data.short_url}\`);
} else {
m.reply(\`❌ Gagal membuat shortlink: \${res.data.error || 'Unknown error'}\`);
}
} catch (err) {
m.reply(\`❌ Terjadi error: \${err.response?.data?.error || err.message}\`);
}
}
break;
💡 Note: Pastikan bot sudah memakai axios, Node.js ESM, dan bisa akses internet.