API Referansı
Auth & Firma
Kimlik doğrulama, oturum, profil ve firma (KYB, takım) uçları.
Kimlik doğrulama, oturum, profil ve firma (KYB, takım) uçları.
Tüm yollar
https://kaptan.isnet.net.trtabanına görecelidir. Korumalı uçlarAuthorization: Bearer <token>başlığı ister.
/
| Method | Yol | Açıklama |
|---|---|---|
| GET | /api/v1/ | Tek kayıt getir |
| GET | /api/v1/ | Tek kayıt getir |
/auth
| Method | Yol | Açıklama |
|---|---|---|
| POST | /api/v1/auth/change-password | Oluştur |
| POST | /api/v1/auth/forgot-password | Oluştur |
| POST | /api/v1/auth/login | Giriş yap |
| POST | /api/v1/auth/logout | Çıkış yap |
| POST | /api/v1/auth/logout-all | Tüm oturumları kapat |
| GET | /api/v1/auth/profile | Profil |
| PUT | /api/v1/auth/profile | Profil |
| POST | /api/v1/auth/refresh | Token yenile |
| POST | /api/v1/auth/register | Kayıt ol |
| POST | /api/v1/auth/reset-password | Oluştur |
| GET | /api/v1/auth/sessions | Oturumlar |
| DELETE | /api/v1/auth/sessions/* | Sil |
/companies
| Method | Yol | Açıklama |
|---|---|---|
| POST | /api/v1/companies/apply | Firma bilgisi gönder |
| POST | /api/v1/companies/internet/request | Talep |
| GET | /api/v1/companies/invites | Davetler |
| POST | /api/v1/companies/invites | Davetler |
| POST | /api/v1/companies/invites/:invite_id/revoke | Oluştur |
| POST | /api/v1/companies/invites/accept | Daveti kabul et |
| GET | /api/v1/companies/me | Bilgilerim |
| GET | /api/v1/companies/members | Üyeler |
| DELETE | /api/v1/companies/members/:user_id | Sil |
| PATCH | /api/v1/companies/members/:user_id/role | Rol |
| PATCH | /api/v1/companies/members/:user_id/spending-limit | Harcama limiti |
| POST | /api/v1/companies/register | Kayıt ol |
/events
| Method | Yol | Açıklama |
|---|---|---|
| GET | /api/v1/events/stream | Akış (SSE) |
/notifications
| Method | Yol | Açıklama |
|---|---|---|
| GET | /api/v1/notifications | Listele |
| DELETE | /api/v1/notifications/:id | Sil |
| POST | /api/v1/notifications/:id/read | Oluştur |
| POST | /api/v1/notifications/broadcast | Oluştur |
| POST | /api/v1/notifications/read-all | Tümünü okundu işaretle |
| GET | /api/v1/notifications/stream | Akış (SSE) |
/platform
| Method | Yol | Açıklama |
|---|---|---|
| GET | /api/v1/platform/pages | Listele |
/users
| Method | Yol | Açıklama |
|---|---|---|
| POST | /api/v1/users/me/internet-access/request | Talep |
Örnekler
Giriş yap — POST /api/v1/auth/login
curl -s -X POST https://kaptan.isnet.net.tr/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"email_or_username":"kullanici","password":"••••••••"}'Yanıt
{ "success": true, "data": { "access_token": "<JWT>", "refresh_token": "...", "token_type": "bearer", "expires_in": 3600 } }Firma bilgisi gönder (KYB) — POST /api/v1/companies/apply
curl -s -X POST https://kaptan.isnet.net.tr/api/v1/companies/apply \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"company_type":"SAHIS","legal_name":"Örnek Yazılım","tckn":"<11 hane>","city":"İstanbul","district":"Kadıköy","address_line":"...","authorized_name":"Ad Soyad","authorized_tckn":"<11 hane>"}'Yanıt
{ "success": true, "data": { "status": "pending_verification" }, "message": "Bilgiler alındı, doğrulama bekleniyor" }Bu sayfa yardımcı oldu mu?

Gao Kaptan Docs