> This is Payabli documentation. For a complete page index, fetch https://docs.payabli.com/llms.txt — append .md to any page URL for lightweight markdown. For section-level indexes, query parameters, and other AI-optimized access methods, see https://docs.payabli.com/ai-agents.md

## v1.0.13

Added OAuth2 client-credentials support via `option.WithClientID`/`option.WithClientSecret`. The SDK handles the token exchange and refresh automatically:

```go
client := client.NewClient(
    option.WithClientID("..."),
    option.WithClientSecret("..."),
    option.WithBaseURL(sdk.Environments.Sandbox),
)
```

The existing `option.WithApiKey(...)` option function still works unchanged — no action needed if you're not switching auth methods. See the [Go SDK guide](/developers/platform-sdk-go-guide) and [Authentication](/developers/authentication) to compare both methods.