API | |
Since Tiki24 an API has been available, leveraging swagger-api/swagger-ui See it in action here: https://doc.tiki.org/api/ First commit: https://gitlab.com/tikiwiki/tiki/-/merge_requests/1028 |
Tiki 27+ | |
Significant updates made in Tiki27, particularly to support Internet of Things (IoT) deployments, enhancing and adding support for:
More information on the use of the API for IoT deployment can be found here with:
|
Tiki 24+ | |
A self-documented REST API is available since Tiki 24. This new feature is exposing the most commonly used elements of the system, notably:
|
Requirements | |
|
Getting Started | |
Enable the preference Enable API access
|
Documentation | |
The Documentation is embedded in Tiki. See Documentation page For example, let's assume that your Tiki 24+ instance is installed on
Example: Let's
|
Authorization | |
API requests should be authenticated with a token created by Tiki admin (via Admin -> Security tab). Each token gives their owner access with one and only one Tiki user. Permissions configuration is then based on that Tiki user's groups. Authorization token Bearer token authorization header in format: Copy to clipboard
Tokens can be created in two ways:
|
OAuth 2.0 Server | |
OAuth 2 provides authorization flows for third-party applications. Tiki can act as an OAuth server. In the Control Panel, Admin -> Security tab has a link to manage authenticated clients. This section creates client IDs and secrets for web, desktop or mobile applications using Tiki API. Authorization flow can be:
Access tokens generated by Tiki OAuth server are JWT encoded.
|
Tiki Restful API Coverage | |
CRUD operations(Create, Read, Update and Delete) are available for Category, Comments, Groups, Trackers/Fields/Items, Users and Wiki pages.
Major items in wishlist for next versions of the API:
See all the references in the documentation.
|
Pre-Tiki 24 notes | |
[+] Tiki can support wiki page updates (or data for most features in Tiki) by setting up data channels at this time. Adding a web service call to do it more directly would not be very hard so you can join in and get your commit access! From tiki-admin.php, you can activate: "HTTP Basic Authentication: Check credentials from HTTP Basic Authentication, useful to allow webservices to use credentials." Related: Token Access |
Use of Tiki services | |
This works fine if called as ajax services from a page on the same Tiki.
|
Controller pages | |
Where you can find more specific information and samples for the different controllers
|
Aliases | |