Using Sandbox and Single Tenant Environments


Using Sandbox and Single Tenant Environments

The Dodgeball 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.Dodgeball.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 { Dodgeball } from "@dodgeball/trust-sdk-client";

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

Node.js SDK

import { Dodgeball } from '@dodgeball/trust-sdk-server';

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