The WorkOS Kotlin library provides convenient access to the WorkOS API from applications written in JVM compatible languages.
See the API Reference for Kotlin/Java usage examples.
<dependency>
<groupId>com.workos</groupId>
<artifactId>workos</artifactId>
<version>VERSION</version>
</dependency>
dependencies {
implementation 'com.workos:workos:VERSION'
}
dependencies {
implementation("com.workos:workos:VERSION")
}
import com.workos.WorkOS;
WorkOS workos = new WorkOS("WORKOS_API_KEY");
// Access different domains of the WorkOS API through the following properties
// workos.directorySync
// workos.organizations
// workos.passwordless
// workos.portal
// workos.sso
// workos.webhooks
See full examples at https://github.com/workos-inc/java-example-applications.