All Kafinea API operations are described in a single reference: parameters, types,
accepted values, required permissions, and response examples. It is available in two formats, kept
up to date with every API update.
For developers: the interactive reference #
Operations are categorized by domain (records, queries, documents, accounting,
settings, etc.), with a search function. Each operation displays:
- its HTTP method and its parameters, whether mandatory or optional;
- a ready-to-copy call example, in
curland in the main languages (PHP, Python,
JavaScript, Java, C#, etc.); - a response example;
- the Administrator badge when it is restricted to instance administrators.
Select your instance name in the Server field: the call examples will use it
directly.
For your tools and AI agents: the OpenAPI specification #
Stable specification address: https://www.kafinea.com/fr/api/openapi.json
This file follows the OpenAPI 3.1 standard, supported by most tools on the market:
- client generators: produce a typed client library in your language;
- HTTP clients and testing tools: import the file to get a ready-to-use
request collection; - AI agents: provide this address to your agent, where it will find every operation, its parameters
and their rules.
The address does not change: it always points to the latest published version.
Reading the specification #
The API uses a single entry point, webservice.php. Each operation is described with a
path in the form /webservice.php?operation=<nom>, which is also the actual URL called.
| Element | Where to find it in the specification |
|---|---|
| Session | The security schema session: parameter sessionName, obtained with login |
| GET operation parameters | In the URL (in: query) |
| POST operation parameters | In the form body (application/x-www-form-urlencoded) |
| Object or list type parameter | Sent as JSON text (contentMediaType: application/json); its structure is in contentSchema |
| Restricted to administrators | Extension x-kafinea-access: admin |
| Read or write operation | Extension x-kafinea-scope: read, write or configure |
Module fields depend on the configuration of each instance (custom fields, enabled
fields): the specification describes the operations, and describe returns the exact fields for your
instance.