<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "CKToolJS",
  "identifier" : "/documentation/CKToolJS/Configuration",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "CKTool JS"
    ],
    "preciseIdentifier" : "cl/Configuration"
  },
  "title" : "Configuration"
}
-->

# Configuration

An object you use to hold options for communicating with the API server.

```
interface Configuration
```

## Overview

A `createConfiguration` function from one of the `@apple/cktool.target.browser` or `@apple/cktool.target.nodejs` packages creates an instance of this class appropriate for your target platform.

Note: You shouldn’t create instances of this class directly.

## Topics

### Initializers

[`new Configuration();`](/documentation/CKToolJS/Configuration/Configuration)

Internal use only.

### Instance Properties

[`attribute Function jsonParse;`](/documentation/CKToolJS/Configuration/jsonParse)

A function that a response parser uses to interpret JSON from the API server.

[`attribute Function jsonStringify;`](/documentation/CKToolJS/Configuration/jsonStringify)

A function that a request function uses to prepare JSON to send to the API server.

[`attribute string serverUrl;`](/documentation/CKToolJS/Configuration/serverUrl)

The URL of the API server.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)