---
title: Get Compliance Settings
url: https://platform.claude.com/docs/en/api/go/organization/compliance_settings/retrieve
---

# Get Compliance Settings

`client.Organization.ComplianceSettings.Get(ctx) (*OrganizationComplianceSettings, error)`

**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

- `type OrganizationComplianceSettings`

  - `Type ComplianceSettings`

    default: compliance_settings

  - `State ComplianceSettingsStateUnion`

    Whether the Compliance API is enabled for this organization.

    - `type ComplianceSettingsStateEnabled`

      - `Type Enabled`

        default: enabled

    - `type ComplianceSettingsStateDisabled`

      - `Type Disabled`

        default: disabled

## Example

```go
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"),
	)
	organizationComplianceSettings, err := client.Organization.ComplianceSettings.Get(context.TODO())
	if err != nil {
		panic(err.Error())
	}
	fmt.Printf("%+v\n", organizationComplianceSettings.State)
}
```

### Response (200)

```json
{
  "state": {
    "type": "enabled"
  },
  "type": "compliance_settings"
}
```
