Overview
Guardrail Policies endpointsAvailable Operations
- ListAccountPolicies - List workspace-wide policies
- CreateAccountPolicy - Create a workspace-wide policy
- DeleteAccountPolicy - Delete a workspace-wide policy
- UpdateAccountPolicy - Update a workspace-wide policy
- GetAPIKeyPolicyAssignment - Get an API key policy assignment
- ChangeAPIKeyPolicyAssignment - Change an API key policy assignment
- GetMemberPolicyAssignment - Get a member policy assignment
- ChangeMemberPolicyAssignment - Change a member policy assignment
- ListScimGroupPolicyAssignments - List SCIM group policy assignments
- GetScimGroupPolicyAssignment - Get a SCIM group policy assignment
- UpdateScimGroupPolicyAssignment - Update a SCIM group policy assignment
- DeleteScimGroupPolicyOptOut - Restore a member to a SCIM group policy
- ListScimGroupPolicyOptOuts - List opt-outs from a SCIM group policy assignment
- ListBudgetPolicies - List budget policies
- CreateBudgetPolicy - Create a budget policy
- DeleteBudgetPolicy - Delete a budget policy
- GetBudgetPolicy - Get a budget policy
- UpdateBudgetPolicy - Update a budget policy
- ListCapacityPolicies - List capacity policies
- CreateCapacityPolicy - Create a capacity policy
- DeleteCapacityPolicy - Delete a capacity policy
- GetCapacityPolicy - Get a capacity policy
- UpdateCapacityPolicy - Update a capacity policy
- ListModelAvailabilityPolicies - List model availability policies
- CreateModelAvailabilityPolicy - Create a model availability policy
- DeleteModelAvailabilityPolicy - Delete a model availability policy
- GetModelAvailabilityPolicy - Get a model availability policy
- UpdateModelAvailabilityPolicy - Update a model availability policy
- ListModerationPolicies - List moderation policies
- CreateModerationPolicy - Create a moderation policy
- DeleteModerationPolicy - Delete a moderation policy
- GetModerationPolicy - Get a moderation policy
- UpdateModerationPolicy - Update a moderation policy
ListAccountPolicies
List the workspace-wide policies that apply across workspaces in the account. Management key required.Example Usage
Parameters
Response
*operations.ListAccountPoliciesResponse, errorErrors
CreateAccountPolicy
Create a workspace-wide budget, moderation, or model availability policy. Management key required.Example Usage
Parameters
Response
*components.AccountGuardrailPolicyResponse, errorErrors
DeleteAccountPolicy
Delete a workspace-wide policy. Management key required.Example Usage
Parameters
Response
*components.DeleteGuardrailPolicyResponse, errorErrors
UpdateAccountPolicy
Replace a workspace-wide policy and its workspace coverage. Management key required.Example Usage
Parameters
Response
*components.AccountGuardrailPolicyResponse, errorErrors
GetAPIKeyPolicyAssignment
Get the policies of one type that apply to an API key in a workspace. Requires a management key with write access. Management key required.Example Usage
Parameters
Response
*components.GuardrailPolicyAssignmentResponse, errorErrors
ChangeAPIKeyPolicyAssignment
Assign or unassign one policy for an API key. Fails with 409 whenexpected_assignment no longer matches the stored state. Management key required.
Example Usage
Parameters
Response
*components.ChangeGuardrailPolicyAssignmentResponse, errorErrors
GetMemberPolicyAssignment
Get the policies of one type that apply to a member in a workspace. Requires a management key with write access. Management key required.Example Usage
Parameters
Response
*components.GuardrailPolicyAssignmentResponse, errorErrors
ChangeMemberPolicyAssignment
Assign or unassign one policy for a member. Fails with 409 whenexpected_assignment no longer matches the stored state. Management key required.
Example Usage
Parameters
Response
*components.ChangeGuardrailPolicyAssignmentResponse, errorErrors
ListScimGroupPolicyAssignments
List the guardrail policies attached to each SCIM group mapping in the organization. Requiresscim:view and guardrails:view. Enterprise private beta feature. Management key required.
Example Usage
Parameters
Response
*components.ListScimGroupPolicyAssignmentsResponse, errorErrors
GetScimGroupPolicyAssignment
Get the guardrail policies attached to one SCIM group mapping. Requiresscim:view and guardrails:view. Enterprise private beta feature. Management key required.
Example Usage
Parameters
Response
*components.ScimGroupPolicyAssignmentResponse, errorErrors
UpdateScimGroupPolicyAssignment
Attach or remove guardrail policies on one SCIM group mapping, then update its members’ policies. Every type in the request is applied, or none is. Requiresscim:view, guardrails:view and guardrails:update. Enterprise private beta feature. Management key required.
Example Usage
Parameters
Response
*components.ScimGroupPolicyAssignmentResponse, errorErrors
DeleteScimGroupPolicyOptOut
Remove a member’s opt-out for one policy type, so the member receives their groups’ policy again right away. The member must be in the mapping’s group and the mapping must set a policy of that type. Requiresscim:view, guardrails:view and guardrails:update. Enterprise private beta feature. Management key required.
Example Usage
Parameters
Response
*components.DeleteScimGroupOptOutResponse, errorErrors
ListScimGroupPolicyOptOuts
List the group’s members who opted out of a guardrail policy this mapping sets, per policy type. Opted-out members keep their own assignment (or none) instead of the group policy. Requiresscim:view and guardrails:view. Enterprise private beta feature. Management key required.