GET
/api/orgs/{org_id}/keys/{key_id}/storageキーの保存設定を取得する
1つのキーの保存モード、有効期限の上限、現在の保存内容を返します。キーの作成者または組織の管理者が実行できます。
認証: AuthorizationヘッダーにBearer形式のAPIキー
パスパラメーター
org_idstring必須お客様の組織ID(uuid)。
GET /api/whoamiで取得できます。key_idstring必須APIキーのID。
レスポンス
200設定。
レスポンス
key_idstringmodeenumfollowは組織が保存する内容を保存し、do_not_storeはこのキーについて何も保存しません。expiry_daysinteger | nullキーの有効期限の上限。
org_storage_onbooleanorg_default_daysinteger | nullmax_expiry_daysintegereffectiveobjectキーの現在の動作。
effective
storesbooleanexpiry_daysinteger | null
401APIキーがない、不明、または失効しています。
レスポンス
errorstring必須人が読めるメッセージ。
codestringエンドポイントが定義している場合の、安定した機械可読の理由(例:
pro_required)。actionstringエンドポイントが定義している場合の、安定した対処アクション。
detailsobject呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。
404このキーは存在しません。
レスポンス
errorstring必須人が読めるメッセージ。
codestringエンドポイントが定義している場合の、安定した機械可読の理由(例:
pro_required)。actionstringエンドポイントが定義している場合の、安定した対処アクション。
detailsobject呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。
リクエスト
curl 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/keys/6b1d2f4e-3c8a-4f0e-9a21-7e5c0d9b4a33/storage' \
-H "Authorization: Bearer <YOUR_API_KEY>"レスポンス
{
"key_id": "6b1d2f4e-3c8a-4f0e-9a21-7e5c0d9b4a33",
"mode": "do_not_store",
"expiry_days": null,
"org_storage_on": true,
"org_default_days": 30,
"max_expiry_days": 3650,
"effective": {
"stores": false,
"expiry_days": null
}
}https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/keys/6b1d2f4e-3c8a-4f0e-9a21-7e5c0d9b4a33/storage