Ana içeriğe geç

Authenticated key meta bilgisini doner

GET 

/auth/me

HTTP Basic Auth ile gelen request'in dogrulanmis kimligini doner. Smoke test endpoint'i — entegrasyonun calistigini hizli test etmek icin.

DONULEN ALANLAR (api_secret_hash veya benzeri sensitive alan YOK):

  • api_key_id: Internal numeric ID
  • reseller_id: WHMCS tblclients.id (bayinin musteri id'si)
  • name: Key etiketi
  • permissions: Scope listesi (["orders:create", "*"])
  • client_ip: Bu istegi yapan istemci IP'si (X-Forwarded-For trusted proxy resolver ile)
  • last_used_at: Bu key'in son kullanim zamani (RFC 3339)
  • expires_at: Key'in expire tarihi (NULL = sonsuz)
  • rate_limit_rpm: Per-key override (NULL = default 60)
  • auto_apply_credit: POST /orders bakiye otomatik tahsilat toggle'i (true = default; false ise siparis pending_payment + notice=auto_apply_credit_disabled doner, bayi faturayi manuel oder). Admin CLI ile degistirilir: php bin/api-key-update.php <id> --auto-apply-credit=0|1

Responses

Authenticated, kimlik bilgisi donuldu

Response Headers
    X-RateLimit-Limit

    Bu key icin tanimli dakika basi limit

    X-RateLimit-Remaining

    Mevcut window'da kalan istek sayisi

    X-RateLimit-Reset

    Sonraki window basinin Unix epoch'u (UTC saniye)