How to Enable the API
By default API is disabled. You can enable it in Settings -> Admin -> Enable API access.
The API is accessed from the URL where your KBPublisher installed, formatted like so: http://[your_domain]/[kb_dir]/api.php
The KBPublisher API requires that you authenticate every request by signing it. The process is described in Authorizing a Request.
KBPublisher version 7.0 supports API versions 1 and 2. By default and if not specified, the API uses version 1.
You can specify the API version you want to use by adding the "version" query string parameter to your API URL.
Two return types are currently supported:
You can specify the return type by adding the "format" query string parameter to your API URL. If you want to receive JSON then you do not need to specify the output as that is the default.
Limiting Returned Fields
By default, all available fields are returned when you make a query. You can choose the fields you want returned with the "fields" query parameter. This is really useful for making your API calls faster and more efficient.
Here is an example written in PHP
Article ID: 388
Last updated: 29 Apr, 2019
request.php.zip (2 kb)