> 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.12

Added OAuth2 client-credentials support via `PayabliApiClient.withCredentials(clientId, clientSecret)`. The SDK handles the token exchange and refresh automatically:

```java
PayabliApiClient client = PayabliApiClient
        .withCredentials("...", "...")
        .environment(Environment.SANDBOX)
        .build();
```

The existing `new PayabliApiClientBuilder().apiKey(...)` builder flow still works unchanged — no action needed if you're not switching auth methods. See the [Java SDK guide](/developers/platform-sdk-java-guide) and [Authentication](/developers/authentication) to compare both methods.