Skip to content

Function: createClient()

ts
function createClient(config): Client;

Defined in: src/core/createClient.ts:177

Stable

Creates a low-level Confluence API client.

The client carries only transport, auth and retry policy — it is version agnostic, so one instance drives both confluence.js/v1 and confluence.js/v2.

Prefer createV1Client / createV2Client from confluence.js unless you want the flat functions and a smaller bundle.

Parameters

ParameterType
config| ClientConfig | Client

Returns

Client