Using sandbox and single tenant environments

The Composer Client and Server SDKs accept an apiUrl option in the optional config object passed to their constructors.

By default, all SDKs make requests to https://api.dodgeballhq.com.

If you have a Sandbox or Single Tenant environment, specify the apiUrl when initializing the SDK. After logging in, find the correct apiUrl in the Developer Center under the API Keys tab.

Code examples

Client SDK

import { Composer } from "@dodgeball/trust-sdk-client"; // package name unconfirmed

const composer = new Composer('public-api-key...', {
  apiUrl: 'https://api.sandbox.dodgeballhq.com' // unconfirmed
});

Node.js SDK

import { Composer } from '@dodgeball/trust-sdk-server'; // package name unconfirmed

const composer = new Composer('private-api-key...', {
  apiUrl: 'https://api.sandbox.dodgeballhq.com' // unconfirmed
});



Did this page help you?