Skip to content
Daras
All topics

Creating API keys and setting scopes for programmatic access

A key generated on the Ayarlar → Erişim anahtarları (API) (Settings → Access keys (API)) page is shown only once at the moment it is generated; afterward, only its masked preview (sk_live_... / sk_test_...) remains in the list.

Steps

  1. In the dashboard, open the Ayarlar → Erişim anahtarları (API) page and click the "Anahtar oluştur" (Create key) button (or "İlk anahtarı oluştur" (Create first key) if you do not have any keys yet).
  2. In the "Ad" (Name) field, enter where you will use the key (for example, CLI, Zapier, n8n).
  3. In the "Ortam" (Environment) field, "Canlı (sk_live_)" (Live) accesses your store's real data; "Test (sk_test_)" (Test) can only be generated in a store in test mode.
  4. Under "Kapsamlar" (Scopes), check the ones you need: Katalog (Catalog: catalog:read, catalog:write, inventory:write), Siparişler (Orders: orders:read, orders:write, fulfillment:write), Müşteriler (Customers: customers:read, customers:write), Pazarlama (Marketing: discounts:write, campaigns:write), Arama motoru (Search engine: seo:read, seo:write — legacy URL redirects), Webhook (webhooks:manage). If you select no scopes, the key operates as read-only.
  5. Optionally select a "Son kullanma tarihi" (Expiration date); if left blank, the key never expires. Setting an expiration date is recommended for CI and staging keys.
  6. Click "Üret" (Generate) to create it; immediately copy the key from the "Yeni anahtar üretildi" (New key generated) dialog using the copy button and paste it into your integration. Once the dialog is closed, the key cannot be viewed again.
  7. Immediately invalidate an unused or leaked key by clicking "İptal et" (Revoke) in the list and confirming with "Evet, iptal et" (Yes, revoke); all calls made with that key will be rejected.

Tips

  • Follow the principle of least privilege and select only the scopes you will actually use.
  • Key events (creation, revocation) can be tracked on the Analitik → Denetim → Denetim kaydı (Analytics → Audit → Audit log) page; the "işlem kayıtlarında API anahtar olayları" (API key events in audit logs) link below the list also takes you there.
Didn't find the answer?Open a request from the Daras support screen in your store panel.
Open a support request