To get started, you'll first need to have access to your Kentico Kontent project where you need to enable Content management API and generate
access token that will be used to authenticate all requests made by this library.
This library has a peer dependency on
rxjswhich means you need to install it as well. You install it using
npm or use it directly in browser using one of the
npm i rxjs --save npm i @kentico/kontent-management --save
Using a standalone version in browsers
If you'd like to use this library directly in browser, place following script tags to your html page. You may of course download it and refer to local versions of scripts.
<script src=""></script><script src=""></script>
Making the first request
The following code example shows how to create new content item in your Kentico Kontent project.
;const client =projectId: 'xxx' // id of your Kentico Kontent projectapiKey: 'yyy' // Content management API token;client;
If you are using
UMD bundles directly in browsers, you can find this library under
KontentManagement global variable.
Kontent management | jsdelivr cdn
ManagementClient contains several configuration options:
const client =// configuration options;
||N/A||Required - Id of your Kentico Kontent project|
||N/A||Required - Content management API Token|
||https://manage.kontent.ai/v2/projects||Base URL of REST api. Can be useful if you are using custom proxy or for testing purposes|
||undefined||Retry strategy configuration. If not set, default strategy is used.|
||HttpService||Used to inject implementation of
If you want to mock http responses, it is possible to use external implementation of configurable Http Service as a part of the client configuration.
Troubleshooting & feedback
If you have any issues or want to share your feedback, please feel free to create an issue in this GitHub repository.
Contributions are welcomed. If you have an idea of what you would like to implement, let us know and lets discuss details of your PR.