Kimlik Doğrulama
Bir API anahtarını bearer token olarak gönderin. Bu uç nokta, teknik özelliklerde belirli bir yetki belirtmemektedir; bu nedenle, varsaymak yerine anahtarınıza ihtiyaç duyduğu en az yetkiyi verin ve yanıtı kontrol edin.
Bu uç nokta hiçbir organizasyon kimliği almaz. Anahtarınız zaten ait olduğu organizasyonu tanımlar ve yanıt bu organizasyonla sınırlandırılır.
Dene
Köşeli parantez içindeki her şeyi kendi değerlerinizle ve anahtar yer tutucusunu panonuzdan bir anahtarla değiştirin.
curl -X POST https://api.zinndigital.com/v1/seo/quota/top-up \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "quantity": <integer> }'Oturum açtınız mı? Panonuzdaki API konsolu, gerçek organizasyon kimliğinizi ve kendi anahtarınızı otomatik olarak doldurur ve isteği canlı API üzerinde çalıştırarak gerçek yanıtı görmenizi sağlar. Bu uç noktayı API konsolunda açın
Ayrıntılar
Buys a pack of additional lookups, paid from the account credit balance. Purchased lookups do not expire and are spent only once the daily plan allowance is used up. Idempotent on the `Idempotency-Key` header: repeating a request with the same key returns the same purchase rather than buying a second pack. `422` when the pack size is not sold or the credit balance does not cover it — in which case nothing is charged at all.
Parametreler
| Ad | Tür | Zorunlu | Ne olduğu |
|---|---|---|---|
Idempotency-Key (header) | string | Hayır | Caller-supplied replay key. Strongly recommended: without one, a retried request buys a second pack. |
İstek gövdesi
| Ad | Tür | Zorunlu | Ne olduğu |
|---|---|---|---|
quantity | integer | Evet | The pack size to buy. Must be one offered by `GET /v1/seo/quota`. |
Yanıt
| Ad | Tür | Zorunlu | Ne olduğu |
|---|---|---|---|
daily_allowance | integer | Evet | Lookups included per day. `-1` means unlimited. |
used_today | integer | Evet | Plan-funded lookups run since midnight UTC. |
plan_remaining | integer | Hayır | — |
top_up_remaining | integer | Hayır | Purchased lookups still unspent. These do not expire. |
remaining | integer | Evet | — |
is_unlimited | boolean | Hayır | — |
can_look_up | boolean | Evet | Whether a lookup would be permitted right now. **Not** the same as `remaining > 0`: a suspended or unpaid account may have lookups left and still be refused. |
in_good_standing | boolean | Hayır | — |
packs | object[] | Evet | Packs of extra lookups available to buy. |
Bu uç noktanın dönderebileceği hatalar
401 · 403 · 422