Skip to content
Developers

Errors

All endpoints return the same error body. For older clients hata (code) and detay (message) never change; structured information is in hata_ayrinti. Messages are in Turkish.

JSON
{
  "hata": "kaynak_erisilemiyor",
  "detay": "Ticaret Sicili Gazetesi şu an yanıt vermiyor; kısa süre sonra yeniden deneyin.",
  "hata_ayrinti": {"kod": "kaynak_erisilemiyor", "mesaj": "…", "taraf": "kaynak", "kaynak": "ttsg",
                   "tekrar_denenebilir": true, "tekrar_sn": 300}
}

HataAyrinti

  • kodstringrequired
    Machine-readable error code (same as hata).
  • mesajstringrequired
    Human-readable message (same as detay).
  • tarafstringrequired
    Where the fault lies: istemci (request, key, plan), ulawk (our side), kaynak (the official source is unreachable right now). Values: istemci, ulawk, kaynak
  • kaynakstringrequirednullable
    Which source, for source-side errors; otherwise null. Values: ttsg, kap, yurt_disi_sicil
  • tekrar_denenebilirbooleanrequired
    Whether the same request may be retried later.
  • tekrar_snintegerrequirednullable
    Suggested wait in seconds. When set, a Retry-After header is sent too.

taraf: whose fault

tarafMeaningWhat to do
istemciRequest, key or planFix the request; retrying will not help (except 429).
ulawkOur sideRetry after tekrar_sn.
kaynakThe official source is unreachableRetry after tekrar_sn; see /durum/ for status.

Codes

HTTPhataWhen
400gecersiz_parametre · gecersiz_kategori · gecersiz_tarih · gecersiz_gun · eksik_alan · gecersiz_sicil · gecersiz_json · gecersiz_webhookBad parameter or body
400deneme_desteklenmiyorEndpoint not available with a sandbox key
401yetkisizMissing or invalid key
402kota_dolduPlan allowance used up
403anahtar_gerekliOperation requires an API key (a browser session is not enough)
404bulunamadiNo such record or no access
404arsivde_yokGazette not archived yet (retryable)
404kap_eslesmesi_yokThe company is not matched to a KAP member
405yontemWrong HTTP method
429hiz_siniriHourly limit exceeded; Retry-After
500ic_hataUnexpected error; retryable
502webhook_teslim_hatasiTest notification could not be delivered to your endpoint
503kaynak_erisilemiyorThe official source is not answering

Sanctions screening and the legacy endpoints (/api/v1/companies) return a plain body for historical reasons (no hata_ayrinti).

Markdown · OpenAPI · llms.txt · © 2026 Ulawk