Server Configurations

If the API you're using offers alternate server URLs and server variables in its servers definition, you can supply this to the SDK with .server():

sdk.server('https://{region}{basePath}', {
  region: 'eu',
  basePath: 'v14',


When your request is executed, it will be made to Alternatively if you don't want to deal with URL templates, you can opt to pass a full URL in instead: