Skip to main content
1
Install the SDK
2
Requires Java 17 or later.
3
Maven:
4
<dependency>
  <groupId>com.paxos</groupId>
  <artifactId>paxos-sdk</artifactId>
  <version>1.0.0</version>
</dependency>
5
Gradle:
6
implementation 'com.paxos:paxos-sdk:1.0.0'
7
Set Up Credentials
8
Create API credentials in the Paxos Dashboard and export them as environment variables.
9
export PAXOS_CLIENT_ID="your_client_id"
export PAXOS_CLIENT_SECRET="your_client_secret"
10
If you don’t have a Sandbox account, sign up here.
11
Make Your First API Call
12
Create a file with the following code. This example creates a client, lists your profiles, and prints the result.
13
import com.paxos.PaxosClient;
import com.paxos.models.Profile;
import com.paxos.models.ListProfilesRequest;

public class Main {
    public static void main(String[] args) {
        PaxosClient client = PaxosClient.builder()
            .clientId(System.getenv("PAXOS_CLIENT_ID"))
            .clientSecret(System.getenv("PAXOS_CLIENT_SECRET"))
            .sandbox(true)
            .build();

        // List profiles
        for (Profile profile : client.profiles().listProfiles(
                ListProfilesRequest.builder().limit(10).build())) {
            System.out.printf("Profile: %s (%s)%n", profile.getId(), profile.getNickname());
        }
    }
}

Next Steps