Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
APIKeyHashes | []string | ✔️ | API key hashes | [ “c56454edb818d6b14bc0d61c46025f1450b0f4012d12304ab40aacb519fcbc93” ] |
Config | components.GuardrailBudgetPolicyConfig | ✔️ | N/A | { “include_byok_in_budgets”: false, “limit_usd”: 200, “reset_interval”: “monthly” } |
ID | string | ✔️ | Policy ID | 550e8400-e29b-41d4-a716-446655440000 |
IsWorkspaceDefault | *bool | ➖ | N/A | |
MemberIds | []string | ✔️ | Organization member user IDs | [ “user_2abcDEFghiJKLmnoPQRstu” ] |
Name | string | ✔️ | Policy name | Engineering monthly budget |
OptedOutAPIKeyHashes | []string | ✔️ | API key hashes | [ “c56454edb818d6b14bc0d61c46025f1450b0f4012d12304ab40aacb519fcbc93” ] |
OptedOutMemberIds | []string | ➖ | Organization member user IDs | [ “user_2abcDEFghiJKLmnoPQRstu” ] |
OverriddenAPIKeyHashes | []string | ✔️ | API keys that have a different policy of this type assigned directly | [ “c56454edb818d6b14bc0d61c46025f1450b0f4012d12304ab40aacb519fcbc93” ] |
OverriddenMemberIds | []string | ➖ | Members that have a different policy of this type assigned directly | [ “user_2abcDEFghiJKLmnoPQRstu” ] |
PolicyType | components.BudgetGuardrailPolicyDetailPolicyType | ✔️ | N/A | |
Reference | optionalnullable.OptionalNullable[components.BudgetGuardrailPolicyDetailReference] | ➖ | legacy_mapping when the policy is synced from a v1 guardrail, account_default when it is an account-wide default, otherwise null | |
ReplacesLegacyDefault | *bool | ➖ | Whether this workspace copy replaced a v1 workspace default guardrail that still exists; it cannot be deleted | |
UpdatedAt | *string | ✔️ | N/A |