New to a language client? See TypeScript notes or Java notes for install details, runtime requirements, and language-specific features.
Installation
Authentication
Generate an access token with your API client credentials, then pass it to the SDK. Create API clients in the Clients tab of the Account management portal. See Manage API clients.password grant, which additionally takes a username and password. Use client_credentials unless you have been told otherwise.
Region selection
GBG Go is deployed across three regions. Both clients expose the same server list in the same order, so you can select a region by index or set the URL directly.eu) endpoint.
Available operations
These are the resources and methods exposed by the SDK. The names are identical in both languages. TypeScript uses properties (go.tokens.generate()); Java uses accessor methods and a terminal .call() (go.tokens().generate().call()).
Start a journey
Pass the resource ID of the journey template you want to run. The response includes theinstanceId you’ll use to track the journey.
resourceId uses the format <id>@<version>. Use @latest to always run the current published version of the template.
Connect an end-user device
Generate a connect token on your server, then pass it to the end user’s device.devices.connect uses the connect token as its credential rather than your customer access token, because it runs on the end-user device. In TypeScript you pass it as the first argument; in Java you pass it with .security().
Error handling
Every SDK call raises a single base error type carrying the HTTP status code and the response body.The base error is called
GoError in TypeScript and GoException in Java. In Java, network failures surface separately as UncheckedIOException rather than as an SDK error.Retries
Configure retry behaviour when you build the client. Both languages use the same backoff strategy and the same parameters.Language-specific guides
Some features exist in only one client. These pages cover installation in detail and everything that has no counterpart in the other language.TypeScript notes
Runtime support, standalone functions for tree-shaking, custom HTTP client, and debugging.
Java notes
Gradle and Maven setup, asynchronous calls,
Optional handling, Jackson configuration, and logging.