> ## Documentation Index
> Fetch the complete documentation index at: https://docs.operark.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Go SDK

> Official Go client for the Operark API.

## Installation

```bash theme={null}
go get github.com/operark-ai/operark-go
```

## Initialize

```go theme={null}
import operark "github.com/operark-ai/operark-go"

client := operark.NewClient("YOUR_API_KEY")
```

## Ask an executive

```go theme={null}
resp, err := client.Executives.Ask(ctx, "AI_CEO", operark.AskRequest{
    Message: "What's our strategy for Q2?",
})
if err != nil {
    log.Fatal(err)
}
fmt.Println(resp.Answer)
```

## Request a governed decision

```go theme={null}
decision, err := client.Executives.Decide(ctx, "AI_CRO", operark.DecideRequest{
    Message: "Approve a new vendor without ISO 27001?",
})
if err != nil {
    log.Fatal(err)
}
fmt.Println(decision.Outcome, decision.Rationale)
```

<Note>
  Method and field names follow the Go client in the `operark-go` repository.
  Check that repository's README for the exact, version-pinned signatures.
</Note>

<Card title="API Reference" icon="code" href="/api-reference/introduction">
  Full endpoint reference, generated from OpenAPI.
</Card>
