/api/orgs/{org_id}/retention保持期間の設定を取得する
保存済みのプロンプトと応答を保持する期間です。既定の有効期限、オーバーライド、キーごとの上限、保持件数、プランの制限を返します。すべてのメンバーとキーが読み取れます。
認証: AuthorizationヘッダーにBearer形式のAPIキー
パスパラメーター
org_idstring必須お客様の組織ID(uuid)。
GET /api/whoamiで取得できます。
レスポンス
200設定。
レスポンス
storage_onboolean組織がプロンプトと応答を保存しているかどうか。
default_daysinteger | null保存済みの内容が期限切れになるまでの日数。nullの場合は保存がオンの間保持します。
min_daysintegerplan_max_daysinteger | nullプランで設定できる最長の有効期限。上限がない場合はnull。
planstringpaid_retentionobjectpaid_retention
activebooleanupgrade_max_daysinteger | nullupgrade_hrefstring
fixed_retention_daysinteger | null書面の契約で有効期限が固定されている場合に設定されます。その場合、他の設定は読み取り専用です。
overridesarray<object>overrides
idstringscopeenumtargetstringtarget_labelstringdaysintegercreated_atstring
key_capsinteger独自の有効期限の上限が設定されたキーの数。
keepsobjectkeeps
requestsintegersessionsinteger
archiveobjectExperientialが自社で利用するための内容のアーカイブ。まだ提供されていません。
archive
offeredbooleanopted_inbooleanexcluded_becausearray<string>default_onboolean
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/retention' \
-H "Authorization: Bearer <YOUR_API_KEY>"レスポンス
{
"storage_on": true,
"default_days": 30,
"min_days": 1,
"plan_max_days": 90,
"plan": "pro",
"paid_retention": {
"active": true,
"upgrade_max_days": 365,
"upgrade_href": "/credits?upgrade=pro"
},
"fixed_retention_days": null,
"overrides": [
{
"id": "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b",
"scope": "project",
"target": "evals",
"target_label": "evals",
"days": 7,
"created_at": "2026-11-18T14:32:07Z"
}
],
"key_caps": 1,
"keeps": {
"requests": 3,
"sessions": 1
},
"archive": {
"offered": false,
"opted_in": false,
"excluded_because": [],
"default_on": false
}
}https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/retention