API Configuration

Quadrata SDK API Configuration

Each API service allows you to pass in a configuration object. All API configuration options are inherited from the QuadrataSdkConfiguration type at @quadrata/sdk/types.

Each service will define which configuration options are required and which are optional, but for each service, you must pass in the environment parameter.


import { createAccessToken, QuadrataEnvironment } from '@quadrata/sdk/api';

const { data: { accessToken } } = await createAccessToken(
    // service params
    { apiKey: process.env.QUADRATA_API_KEY },

    // configuration
    { environment: QuadrataEnvironment.PRODUCTION }

Last updated