Using Sandbox and Single Tenant Environments
The Dodgeball Client and Server SDKs accept an apiUrl option as part of the optional config object passed to their constructors.
By default, all Dodgeball SDKs make requests to https://api.dodgeballhq.com.
If you have a Sandbox or Single Tenant environment you would like to use, you'll need to specify the apiUrl when using the Dodgeball SDKs.
After you login to your account, you can find the correct apiUrl to call in the Developer Center on the API Keys tab.
Code Examples
Client SDK
import { Dodgeball } from "@dodgeball/trust-sdk-client";
const dodgeball = new Dodgeball('public-api-key...', {
apiUrl: 'https://api.sandbox.dodgeballhq.com'
});
NodeJS SDK
import { Dodgeball } from '@dodgeball/trust-sdk-server';
const dodgeball = new Dodgeball('private-api-key...', {
apiUrl: 'https://api.sandbox.dodgeballhq.com'
});