API getir

GET /v1/apis/{api_id} · izin apis:read

Tek bir API'yi döndürür. ETag yanıt başlığı, If-Match için güncel sürümü taşır. Başka ortamın API'si, silinmiş API ve biçimsiz kimlik 404 döner.

İstek

Parametre Yer Açıklama
api_id yol API kimliği, api_….

Yanıt

200 OK, ETag başlığıyla:

{
  "id": "api_01h455vb4pex5vsknk084sn02q",
  "key": "orders",
  "identifier": "https://api.example.com/orders",
  "name": "Orders API",
  "is_system": false,
  "access_token_lifetime_s": 3600,
  "token_format": "jwt",
  "rbac_mode": "off",
  "allow_offline_access": true,
  "require_resource_indicator": false,
  "dpop_required": false,
  "mcp_profile": false,
  "first_party_access": "all",
  "introspection_applications": ["app_01h455vb4pex5vsknk084sn02r"],
  "created_at": "2026-10-05T12:00:00Z",
  "updated_at": "2026-10-05T12:00:00Z"
}

introspection_applications, bu API'nin jetonlarını introspection ile sorgulayabilen uygulamaları (app_…, kimlik sırasıyla) listeler; boşsa yalnız jetonun kendi uygulaması sorgulayabilir.

Hatalar

HTTP code Ne zaman
404 not_found Bu ortamda böyle bir API yok.
403 insufficient_permissions Kimlik bilgisinde apis:read yok.

Örnek

curl https://api.eu.keenauth.com/v1/apis/api_01h455vb4pex5vsknk084sn02q \
  -H "Authorization: Bearer $KEENAUTH_SECRET_KEY"