All constructor parameters for configuration are optional. If no configuration is provided, the SDK will use environment variables to configure itself. See CamundaSDKConfiguration for the complete list of configuration parameters. Values can be passed in explicitly in code, or set via environment variables (recommended: separate configuration and application logic). Explicitly set values will override environment variables, which are merged into the configuration.
Optional explicit overrides. With no configuration, the SDK will use environment variables to configure itself.
OptionaloAuthProvider?: IHeadersProvider<AuthHeader>An optional IHeadersProvider implementation. This can be used to add headers to REST requests made by the SDK.
In most cases, you will not need to supply this. You can use CAMUNDA_AUTH_STRATEGY and appropriate config values to configure
a preconfigured auth strategy. This configuration parameter is provided for advanced use-cases.
Optional global configuration for the Camunda8 instance.
Closes all created API clients and clears all caches
Returns a client for the Administration REST API See: https://docs.camunda.io/docs/apis-tools/administration-api/administration-api-reference/
Returns a client for the Camunda 8 REST API See: https://docs.camunda.io/docs/apis-tools/camunda-api-rest/camunda-api-rest-overview/
Returns a client for the Web Modeler REST API See: https://docs.camunda.io/docs/apis-tools/web-modeler-api/overview/
Returns a client for the "Operate REST API" See: https://docs.camunda.io/docs/apis-tools/operate-api/overview/
Returns a client for the Optimize REST API See: https://docs.camunda.io/docs/apis-tools/optimize-api/overview/
Returns a strongly-typed Orchestration Cluster API client, of type CamundaClient.
See here for full API documentation of the CamundaClient.
This client exposes branded identifier types (e.g. OrchestrationLifters.ProcessInstanceKey) to provide additional compile-time safety when interacting with the Orchestration Cluster API.
The configuration passed here is merged with environment variables (see CamundaSDKConfiguration).
When options.cached (default) is true, a client instance keyed by its effective configuration is reused.
Optional explicit SDK configuration overrides.
Client creation options (e.g. caching control).
CamundaClient A branded Orchestration Cluster API client instance.
Returns a loosely-typed Orchestration Cluster API client.
This variant widens branded identifier types to plain strings to make incremental adoption easier in existing codebases that already use raw string IDs. Use this when you prefer flexibility over the additional type safety provided by getOrchestrationClusterApiClient.
Optional explicit SDK configuration overrides.
Client creation options (e.g. caching control).
CamundaClientLoose A loose Orchestration Cluster API client instance.
Returns a client for the Tasklist REST API See: https://docs.camunda.io/docs/apis-tools/tasklist-api-rest/tasklist-api-rest-overview/
Returns a client for the Zeebe gRPC API See: https://docs.camunda.io/docs/apis-tools/zeebe-api/overview/
A single point of configuration for all Camunda Platform 8 clients.
This class is a factory for all the clients in the Camunda Platform 8 SDK. It allows a single point of configuration for all clients.
Example