shrt.my.id

Dokumentasi API

Panduan lengkap integrasi, fitur, dan penggunaan platform pemendek URL shrt.my.id.

Fitur Utama

Pemendek URL cepat, kustom slug, dan generator QR Code otomatis untuk setiap link Anda.

Developer API

Integrasikan shrt.my.id langsung ke aplikasi Anda melalui REST API kami yang powerful.

Developer API (Pro)

Gunakan REST API kami untuk otomatisasi pemendekan link.

Base URL

https://shrt.my.id/api/v1

Authentication

Header: x-api-key: [Key_Anda]

Request Examples

curl -X POST https://shrt.my.id/api/v1/links \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "original_url": "https://example.com",
    "custom_code": "slug-pilihan",
    "title": "Nama Link"
  }'

Response (201 Created)

{
  "message": "Link created successfully",
  "link": {
    "short_code": "slug-pilihan",
    "original_url": "https://example.com",
    "short_url": "https://shrt.my.id/slug-pilihan",
    "qr_url": "https://shrt.my.id/api/qr/slug-pilihan"
  }
}