Get Compliance Settings
GET/v1/organizations/compliance_settings
Retrieve your organization's Compliance Settings.
Compliance Settings is a singleton resource: there is exactly one per
organization, addressed without an identifier. The state field reflects
whether the Compliance API is enabled. An organization with a parent
organization reads the state inherited from the parent's configuration.
Returns
Get Compliance Settings
package main
import (
"context"
"fmt"
"github.com/anthropics/anthropic-sdk-go"
"github.com/anthropics/anthropic-sdk-go/option"
)
func main() {
client := anthropic.NewClient(
option.WithAPIKey("my-anthropic-api-key"),
)
betaComplianceSettings, err := client.Beta.Organization.ComplianceSettings.Get(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", betaComplianceSettings.State)
}Response 200
{
"state": {
"type": "enabled"
},
"type": "compliance_settings"
}Returns Examples
Response 200
{
"state": {
"type": "enabled"
},
"type": "compliance_settings"
}