Update Privacy Settings
/v1/account/privacyOverview
Applies to owned workspaces and keys created by this account. Workspace restrictions cannot loosen account rules. Requires a dashboard session; API keys cannot change account policy.
Request Body
zdrobjectUnknown retention policies are excluded when the corresponding restriction is enabled. First-party Anthropic, OpenAI and Google AI Studio endpoints are excluded by their switches.
Show nested fields
otherbooleananthropicbooleanopenaibooleangooglebooleanxaibooleanallow_paid_trainingbooleanallow_free_trainingbooleanallow_free_publicationbooleanmax_key_daysinteger | nullMaximum lifetime measured from creation. Null allows any lifetime. Existing nonexpiring or overlong keys are rejected. New keys without an explicit expiry inherit the cap; explicit noncompliant expiries are rejected.
Minimum 1 · Maximum 3650
Responses
200Saved policy. Unspecified fields remain unchanged.
zdrobjectUnknown retention policies are excluded when the corresponding restriction is enabled. First-party Anthropic, OpenAI and Google AI Studio endpoints are excluded by their switches.
Show nested fields
otherbooleananthropicbooleanopenaibooleangooglebooleanxaibooleanallow_paid_trainingbooleanallow_free_trainingbooleanallow_free_publicationbooleanmax_key_daysinteger | nullMaximum lifetime measured from creation. Null allows any lifetime. Existing nonexpiring or overlong keys are rejected. New keys without an explicit expiry inherit the cap; explicit noncompliant expiries are rejected.
Minimum 1 · Maximum 3650
400Request validation failed.
errorobjectRequiredShow nested fields
codestringRequiredmessagestringRequiredparamstring | nullrequest_idstring | nullmetadataobjectTyped detail for some refusals. budget_exceeded (402): limit (key_budget or workspace_budget) and budget with scope, period, limit, usage and resets_at. key_limit_exceeded (402): limit key_spend_limit. access_denied (403): policy (workspace or key), rule (models, providers or products), product, provider and model.
401Authentication is missing or invalid.
errorobjectRequiredShow nested fields
codestringRequiredmessagestringRequiredparamstring | nullrequest_idstring | nullmetadataobjectTyped detail for some refusals. budget_exceeded (402): limit (key_budget or workspace_budget) and budget with scope, period, limit, usage and resets_at. key_limit_exceeded (402): limit key_spend_limit. access_denied (403): policy (workspace or key), rule (models, providers or products), product, provider and model.
403Authenticated principal lacks permission.
errorobjectRequiredShow nested fields
codestringRequiredmessagestringRequiredparamstring | nullrequest_idstring | nullmetadataobjectTyped detail for some refusals. budget_exceeded (402): limit (key_budget or workspace_budget) and budget with scope, period, limit, usage and resets_at. key_limit_exceeded (402): limit key_spend_limit. access_denied (403): policy (workspace or key), rule (models, providers or products), product, provider and model.