Add lead capture, links and visitor tracking to your Java enterprise applications and Android apps. Maven and Gradle support with full Spring Boot compatibility.
Integrate Linkbreakers into your Java stack with type-safe, production-ready methods.
Install the SDK, authenticate, and make your first API call.
<dependency> <groupId>com.linkbreakers</groupId> <artifactId>linkbreakers-java</artifactId> <version>1.0.0</version> </dependency>
import com.linkbreakers.client.*;
import com.linkbreakers.client.api.*;
import com.linkbreakers.client.model.*;
ApiClient client = Configuration.getDefaultApiClient();
client.setBasePath("https://api.linkbreakers.com");
client.setBearerToken(System.getenv("LINKBREAKERS_SECRET_KEY"));
LinksApi api = new LinksApi(client);
CreateLinkRequest request = new CreateLinkRequest()
.destination("https://example.com")
.name("Campaign Link")
.tags(Arrays.asList("marketing"));
CreateLinkResponse response = api.linksServiceCreate(request);
System.out.println("Short URL: " + response.getLink().getShortlink());ListLinksResponse links = api.linksServiceList()
.pageSize(20)
.execute();
for (Link link : links.getLinks()) {
System.out.printf("%s: %s%n",
link.getName(), link.getShortlink());
}implementation 'com.linkbreakers:linkbreakers-java:1.0.0'
What teams build with the Linkbreakers Java SDK.
Spring Boot enterprise applications
Android mobile apps
Enterprise integrations and batch processing
The Java SDK is one of five official SDKs. Linkbreakers also offers an MCP server for AI assistants and a CLI for terminal workflows.
Sign up for Linkbreakers, create an API token, and start integrating in minutes.