go.proyek.org

REST API v1

Dokumentasi API

Gunakan API key dari dashboard sebagai Bearer token. Scope dan rate limit diterapkan pada setiap permintaan.

Unduh OpenAPI 3.1 JSON

Autentikasi

curl -H "Authorization: Bearer gop_xxx" \
  https://go.proyek.org/api/v1/links

Header respons mencakup X-RateLimit-Limit, X-RateLimit-Remaining, dan X-RateLimit-Reset.

GET
/api/v1/links

Daftar semua short link

Scope: links:read
POST
/api/v1/links

Buat short link

Scope: links:write
GET/PATCH/DELETE
/api/v1/links/{id}

Detail, edit, atau hapus link

Scope: links:read / links:write
GET
/api/v1/analytics

Ringkasan performa

Scope: analytics:read
POST
/api/v1/qr

Generate PNG atau SVG

Scope: qr:write

Contoh membuat link

curl -X POST https://go.proyek.org/api/v1/links \
  -H "Authorization: Bearer gop_xxx" \
  -H "Content-Type: application/json" \
  -d '{"targetUrl":"https://example.com","alias":"contoh"}'