Kimlik doğrulama

Kimliği doğrula

Belirtecin hangi kullanıcıyla çalıştığını, kullanıcının açık modüllerini, kurulumun sabitlerini (aşama anahtarları ve adları, görev öncelikleri, kayıp nedenleri…), ürün listesini ve lisans durumunu döndürür. Entegrasyonunuzu başlatırken ilk çağrı budur; aşama anahtarları kuruluma göre değiştiği için constants.stages ve constants.stage_labels buradan okunmalıdır. v42'den beri api (42; v43'te 43), caps (kullanıcının kullanabildikleri — paket dışı modüller false), plan (yöneticiye paket dışı modüller ve tek upgrade_url), team (bahsetme için etkin kullanıcılar), badges ve ai_models de döner. v43: caps.qe2, caps.objects ve mobilde görünen özel nesneler (objects). v48: api 48, caps.note_labels (not etiketleri). v49: api 49, caps.note_archive (not arşivi), constants.stage_gates (aşama kapıları: on, seq, win_from, aşama başına exit koşulları {k, m: block|warn, label}, win). v50: api 50, caps.chats (Solk'a sor sohbetleri), caps.mail_categories ve constants.mail_categories (k, label, color). v52c: api 52, caps.pipeline2 (Pipeline özeti, şelale, kayıtlar), caps.boards (panolar — raporlar modülü), caps.opp_pano (Fırsat panosu), constants.nav_main (varsayılan menü sırası). v53: api 53, caps.panos (modül panoları), caps.lead_lookup (fuar lead girişinde firma sorgusu, CRM'e aktarma, toplu işlem). v54: api 54, caps.erp (ERP bağlantısı var), caps.erp_push (siparişi ERP'ye gönder), caps.erp_stock (anlık stok). v54b: caps.order_po (siparişte müşteri PO numarası düzenlenir). v58: caps.push (telefon bildirimleri kullanılabilir — /push/*). v59: caps.share (telefondan paylaşım — /share), caps.card_scan (kartvizit okuma — /cards/*), caps.callerid (arayan kimliği — /callerid) — İleri / Kurumsal paketinde; mobile_pro (pro, callerid_admin_off, upgrade_url, phone_cc). v60: user.photo (fotoğraf yolu ya da null), user.color (ekip rengi), user.phone, user.ui (palette, theme — boş = seçmedi, light, dark, on_light, on_dark); palettes (renk paletleri, ilki firma rengi), product_groups (ürün grupları, ilki Tüm ürünler), pot (on, title — firma kartındaki potansiyel bölümü), products[].group, team[].photo ve team[].color; users[] satırlarında da photo ve color. v61: caps.card (dijital kartvizitler çalışma alanında açık — /card; her pakette). v62: caps.notif2 (tür, başlık, açıklama ve kişiyle bildirimler — /notifications?v=2); badges.notifications sistem bildirimlerini saymaz. v65: caps.support (kurulum Solk paneline bağlı — Solk desteği), support (on, email, unread — okunmamış Solk yanıtı). v66: caps.visits2 (ziyaret listesi / ayrıntısı, ekibin günü), caps.geo (ziyaret konumu açık), geo66 (mode — off · optional · required, radius, types, reasons, checkin — açık Konumdayım girişi). v67: caps.tel (santralden arama — kullanıcının dahilisi eşlenmiş, /tel/dial), caps.tel_calls (santral bağlı — /tel/calls), caps.sms (SMS gönderilebilir), tel67 (c2c, provider, ext — dahili, plan), sms67 (on, provider, footer — ticari ileti satırı tanımlı mı, kinds (k, label, desc, off), templates — şablon sayısı) — İleri / Kurumsal paketinde. v80: caps.agents (ajan raporları). v92: caps.activity (etkinlik akışı, damga ve kayda not), caps.wa (WhatsApp Business bağlı ve firmalar modülü açık). v94: caps.call_list (arama listesine ekleme — çağrı merkezi bağlı ve kullanıcıda Santral ve SMS modülü), dl94 (on, links — id, name, appointments).

GET/api/v1/me

Yetkilendirme

Authorizationheaderzorunlu
Bearer belirteci: API anahtarı (sk_…), OAuth erişim belirteci (mcp_…) ya da mobil oturum (xk_…).
Kapsam: crm.read
İstek
curl https://ornek.solk.app/api/v1/me \
  -H "Authorization: Bearer $SOLK_API_KEY"
Yanıt
{
  "ai": false,
  "ai_models": [],
  "api": 54,
  "app": {
    "accent": "#0f3a44",
    "accent_dark": "#0b2b33",
    "company": "Örnek Kimya",
    "currencies": [
      "EUR"
    ],
    "currency_base": "EUR",
    "currency_symbol": "€",
    "logo": "",
    "name": "Solk CRM",
    "opp_lifetime_days": 180,
    "site_url": "https://ornek.solk.app",
    "stage_sla": {
      "Expect to Close": 15,
      "Negotiation": 30,
      "Present Solution": 60,
      "Qualify": 30,
      "Viable": 60
    },
    "ticket_sla_hours": {
      "Acil": 4,
      "Düşük": 168,
      "Normal": 72,
      "Yüksek": 24
    },
    "unit_default": "kg",
    "units": [
      "kg"
    ],
    "version": "v62"
  },
  "badges": {
    "approvals": 3,
    "notifications": 0
  },
  "caps": {
    "ai": false,
    "approval_forms": true,
    "approvals": true,
    "ask": true,
    "boards": true,
    "calendar": true,
    "callerid": true,
    "calls": true,
    "card": true,
    "card_scan": true,
    "chats": true,
    "comments": true,
    "contracts": true,
    "customers": true,
    "demos": true,
    "email": true,
    "erp": false,
    "erp_push": false,
    "erp_stock": false,
    "fairs": true,
    "forecast": true,
    "forms": true,
    "lead_lookup": true,
    "mail_categories": true,
    "mailauto": true,
    "note_archive": true,
    "note_labels": true,
    "notes": true,
    "notif2": true,
    "objects": true,
    "opp_pano": true,
    "opportunities": true,
    "order_po": true,
    "panos": true,
    "performance": true,
    "pipeline": true,
    "pipeline2": true,
    "push": false,
    "qe2": true,
    "rcpt": true,
    "reports": true,
    "share": true,
    "tasks": true,
    "tickets": true,
    "visits": true
  },
  "constants": {
    "action_soon_days": 7,
    "barriers": [
      "Fiyat"
    ],
    "customer_statuses": [
      "AC"
    ],
    "demo_results": [
      "Başarılı"
    ],
    "demo_statuses": [
      "Henüz Deneme Aşamasına Gelmedik"
    ],
    "forecast_cats": [
      "Pipeline"
    ],
    "lead_interest": [
      "Sıcak"
    ],
    "lead_next_actions": [
      "Teklif gönder"
    ],
    "lead_statuses": [
      "Yeni"
    ],
    "lead_timings": [
      "Hemen"
    ],
    "lead_visitor_types": [
      "Potansiyel müşteri"
    ],
    "loss_reasons": [
      "Fiyat"
    ],
    "mail_categories": [
      {
        "color": "#2a78d6",
        "k": "musteri",
        "label": "Müşteri yazışması"
      }
    ],
    "makro_stages": [
      "Takip"
    ],
    "nav_main": [
      "today"
    ],
    "next_actions": [
      "Numune Gönder"
    ],
    "open_stages": [
      "Qualify"
    ],
    "opp_line_label": "",
    "opp_status_labels": false,
    "opp_types": [
      "Yeni Müşteri"
    ],
    "order_kinds": [
      "İlk Sipariş"
    ],
    "stage_colors": {
      "Cancel": "#62767a",
      "Expect to Close": "#2d9d78",
      "Lost": "#c23934",
      "Negotiation": "#e0a228",
      "Present Solution": "#6b5bd6",
      "Qualify": "#8a9ba0",
      "Viable": "#2a78d6",
      "Win": "#24733f"
    },
    "stage_gate": {
      "Expect to Close": "kapanış bekleniyor",
      "Negotiation": "fiyat / vade pazarlığı",
      "Present Solution": "aktif deneme, sonucu net",
      "Qualify": "BANT 4/4",
      "Viable": "f2f ziyaret + doğru ürün"
    },
    "stage_gates": {
      "custom": false,
      "exit": {
        "Negotiation": [
          {
            "k": "price",
            "label": "Teklif fiyatı",
            "m": "block"
          }
        ],
        "Present Solution": [
          {
            "k": "demo_ok",
            "label": "Deneme sonucu olumlu",
            "m": "block"
          }
        ],
        "Qualify": [
          {
            "k": "bant",
            "label": "BANT 4/4",
            "m": "block"
          }
        ],
        "Viable": [
          {
            "k": "f2f",
            "label": "Yüz yüze görüşme",
            "m": "block"
          }
        ]
      },
      "on": true,
      "seq": true,
      "win": [],
      "win_from": [
        "Negotiation"
      ]
    },
    "stage_labels": {
      "Cancel": "Cancel",
      "Expect to Close": "Expect to Close",
      "Lost": "Lost",
      "Negotiation": "Negotiation",
      "Present Solution": "Present Solution",
      "Qualify": "Qualify",
      "Viable": "Viable",
      "Win": "Win"
    },
    "stage_rules": true,
    "stage_sla": {
      "Expect to Close": 15,
      "Negotiation": 30,
      "Present Solution": 60,
      "Qualify": 30,
      "Viable": 60
    },
    "stages": [
      "Qualify"
    ],
    "task_priorities": [
      "Düşük"
    ],
    "task_statuses": [
      "Açık"
    ],
    "visit_period": {
      "AC": 90,
      "Prospect": 180
    },
    "visit_topics": [
      "Yeni Ürünler"
    ],
    "visit_types": [
      "F2F"
    ]
  },
  "features": [
    "notes",
    "comments"
  ],
  "license": {
    "blocked": false,
    "customer": "Örnek Kimya",
    "days_left": null,
    "end": null,
    "label": "Deneme modu",
    "modules": [
      "calendar"
    ],
    "no": null,
    "state": "trial"
  },
  "mailbox": {
    "connected": true,
    "email": "deniz@ornekkimya.com.tr",
    "error": "",
    "signature": false,
    "status": "ok"
  },
  "mobile_pro": {
    "callerid_admin_off": false,
    "phone_cc": "90",
    "pro": true,
    "upgrade_url": null
  },
  "objects": [
    {
      "icon": "gear-wide-connected",
      "key": "uretim_hatti",
      "label": "Üretim hattı",
      "plural": "Üretim hatları",
      "quick_entry": false
    },
    {
      "icon": "gear-wide-connected",
      "key": "uretim_hatti_2",
      "label": "Üretim hattı",
      "plural": "Üretim hatları",
      "quick_entry": true
    }
  ],
  "ok": true,
  "palettes": [
    {
      "dark": "#6C6E71",
      "key": "graphite",
      "label": "Grafit",
      "light": "#1F2023",
      "on_dark": "#FFFFFF",
      "on_light": "#FFFFFF"
    },
    {
      "dark": "#3C7682",
      "key": "petrol",
      "label": "Petrol",
      "light": "#1E5A66",
      "on_dark": "#FFFFFF",
      "on_light": "#FFFFFF"
    }
  ],
  "plan": {
    "missing": [],
    "upgrade_url": null
  },
  "pot": {
    "on": true,
    "title": "Potansiyel ve pazar payı"
  },
  "product_groups": [
    {
      "label": "Tüm ürünler",
      "n": null,
      "name": "",
      "unit": "kg",
      "unit_label": "kg"
    }
  ],
  "products": [
    {
      "code": "HS30",
      "group": "",
      "id": 5,
      "list_price": 6.4,
      "name": "HS 30 Isıl Yapışma Laki"
    },
    {
      "code": "SB450",
      "group": "",
      "id": 3,
      "list_price": 3.8,
      "name": "PU-SB 450 Solvent Bazlı Yapıştırıcı"
    }
  ],
  "team": [
    {
      "color": "#b95ccd",
      "full_name": "Ayşe Demir",
      "id": 2,
      "photo": null
    },
    {
      "color": "#5867e8",
      "full_name": "Deniz Aksoy",
      "id": 1,
      "photo": null
    }
  ],
  "user": {
    "color": "#5867e8",
    "email": "deniz@ornekkimya.com.tr",
    "full_name": "Deniz Aksoy",
    "id": 1,
    "modules": [
      "calendar"
    ],
    "phone": "",
    "photo": null,
    "role": "admin",
    "role_label": "Yönetici",
    "ui": {
      "dark": "#6C6E71",
      "light": "#1F2023",
      "on_dark": "#FFFFFF",
      "on_light": "#FFFFFF",
      "palette": "graphite",
      "theme": ""
    },
    "username": "admin"
  },
  "users": [
    {
      "color": "#b95ccd",
      "full_name": "Ayşe Demir",
      "id": 2,
      "photo": null,
      "role": "sales",
      "role_label": "Satış",
      "username": "ayse"
    },
    {
      "color": "#5867e8",
      "full_name": "Deniz Aksoy",
      "id": 1,
      "photo": null,
      "role": "admin",
      "role_label": "Yönetici",
      "username": "admin"
    }
  ],
  "weak_password": true
}

Örnek yanıt örnek veriyle çalışan bir v98 kurulumundan alındı; listeler en çok iki öğeyle kısaltıldı.