# Java SDK

The official Apideck SDK for Java. Integrate with 200+ services across CRM, Accounting, HRIS, ATS, File Storage, E-commerce, Issue Tracking, and more — using one unified API.

## Install

```bash
implementation 'com.apideck:unify:0.1.11'
```

- Maven Central: https://central.sonatype.com/artifact/com.apideck/unify
- GitHub: https://github.com/apideck-libraries/sdk-java

## Getting started

Initialize the client with your API key, application ID, and a consumer ID (an identifier in your system for the end user whose connections you are acting on). Then call any Unified API method — for example, listing CRM contacts from Salesforce:

```java
import com.apideck.unify.Apideck;

Apideck sdk = Apideck.builder()
    .apiKey("<YOUR_API_KEY_HERE>")
    .customerId("<insert-consumer-id-here>")
    .appId("<insert-application-id-here>")
    .build();

var res = sdk.crm().contacts().list()
    .request(CrmContactsAllRequest.builder().serviceId("salesforce").build())
    .call();
```

## AI coding agent skill

If you are using an AI coding agent, install the `apideck-java` skill to teach it how to use this SDK — including methods, authentication patterns, and error handling:

```bash
npx skills add apideck/api-skills --skill apideck-java
```

See [https://developers.apideck.com/building-with-llms](https://developers.apideck.com/building-with-llms.md) for more on using Apideck with LLMs and AI agents.

## Resources

- [Unified API reference](https://developers.apideck.com/apis/crm/reference.md)
- [Get an API key](https://developers.apideck.com/get-started.md)
- [Other SDKs](https://developers.apideck.com/sdks): Node.js, Python, .NET, PHP, Java, Go
