Integration ID ile Getir
Genel Bakış
UUID ile tek bir integration döndürür. Secret hiçbir zaman döndürülmez — sadece integration oluşturulurken bir kez gösterilir.
Endpoint: GET /api/v1/integrations/{id}
Kimlik Doğrulama: Bearer token (JWT) gereklidir.
İstek
Başlıklar
| Başlık | Zorunlu | Açıklama |
|---|---|---|
Authorization | Evet | Bearer <jwt_token> |
Yol Parametreleri
| Parametre | Tip | Zorunlu | Açıklama |
|---|---|---|---|
id | string | Evet | Integration UUID |
Yanıt
Başarı — 200 OK
| Alan | Tip | Açıklama |
|---|---|---|
id | string | Integration UUID |
node_id | string | Node UUID |
name | string | Integration adı |
api_key | string | API anahtarı (örn: apex_abc123...) |
permissions | string[] | İzin listesi |
expires_at | string | Son kullanma tarihi (veya null) |
created_at | string | Oluşturulma zaman damgası |
Not: secret alanı mevcut integration'lar için asla döndürülmez.
Örnek Yanıt
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"node_id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Production API",
"api_key": "apex_abc123xyz456",
"permissions": ["payments.read", "payments.create"],
"expires_at": "2026-12-31T23:59:59Z",
"created_at": "2025-02-14T10:00:00Z"
}
Hata Yanıtları
| Kod | Açıklama |
|---|---|
400 | Geçersiz istek (doğrulama hatası) |
401 | Yetkisiz (eksik veya geçersiz token) |
404 | Integration bulunamadı |
500 | Sunucu hatası |
cURL Örneği
curl -X GET https://api.example.com/api/v1/integrations/550e8400-e29b-41d4-a716-446655440001 \
-H "Authorization: Bearer JWT_TOKEN"