---
title: REST API – Introduction
description: "Take advantage of REST APIs exposed over HTTP(s) to push or pull data from Kafinea and integrate it with third-party applications. You are free to choose the library of your choice to work with these APIs. --- ## General Principles…"
url: "https://www.kafinea.com/en/help/api/rest-api-introduction/"
updated: "2026-04-02"
category: API
---

# REST API – Introduction

Take advantage of REST APIs exposed over HTTP(s) to push or pull data from Kafinea and integrate it with third-party applications. You are free to choose the library of your choice to work with these APIs.

---

## General Principles

The Kafinea API is a REST API: you communicate directly with your Kafinea instance and each request is unique and independent. Nothing is cached.

- **Protocol:** HTTP(s)
- **Methods:** GET and POST
- **Response format:** JSON
- **Base URL:** `https://apps.kafinea.com/{VotreInstance}/webservice.php`

---

## Response Format

### Positive Response

```json
{
  "success": true,
  "result": {
    // ...
  }
}
```

### Negative Response

```json
{
  "success": false,
  "error": {
    "message": "[STRING]",
    "code": "[STRING]"
  }
}
```

---

## Operations Summary

| Operation | Method | Description |
| --- | --- | --- |
| `getchallenge` | GET | Get a connection token |
| `login` | POST | Log in |
| `logout` | POST | Log out |
| `extendsession` | GET | Extend the session |
| `listtypes` | GET | List available modules |
| `describe` | GET | Describe the fields of a module |
| `create` | POST | Create an entity |
| `retrieve` | GET | Retrieve an entity |
| `update` | POST | Update an entity |
| `delete` | POST | Delete an entity |
| `query` | GET | Query the database |
| `query_related` | GET | Query related lists |
| `add_related` | POST | Add a relationship between entities |
| `getPicklistValues` | GET | Retrieve the values of a dropdown list |
| `setPicklistValues` | POST | Modify the values of a dropdown list |
| `FileUpload` | POST | Upload a file |
| `files_retrieve` | GET | Retrieve a file |

---

## Related References 🔗

- [Authentication](https://www.kafinea.com/en/documentation/api/rest-api-authentication/)
- [CRUD Operations](https://www.kafinea.com/en/documentation/api/rest-api-crud-operations/)
- [Related Operations](https://www.kafinea.com/en/documentation/api/rest-api-entity-relationships/)
- [Requests and Queries](https://www.kafinea.com/en/documentation/api/rest-api-requests-and-querying/)
