Documentation des endpoints pour la gestion des agents IA.
Base URL : https://api.devana.ai
Toutes les requêtes nécessitent une clé API dans le header Authorization.
Authorization: Bearer YOUR_API_KEY
Plus d'informations : OAuth 2.0
| Méthode | Endpoint | Description |
|---|---|---|
GET | /v1/agents | Liste tous les agents |
GET | /v1/agents/:id | Récupère un agent spécifique (informations basiques) |
GET | /v1/agent/:id | Récupère un agent spécifique (informations détaillées) |
POST | /v1/agents | Crée un nouvel agent |
PUT | /v1/agents/:id | Met à jour un agent |
DELETE | /v1/agents/:id | Supprime un agent |
GET | /v1/agents/:id/conversations | Liste les conversations d'un agent |
POST | /v1/agents/:id/files | Ajoute des fichiers à un agent |
GET | /v1/agents/:id/tools |
GET /v1/agents{
"success": true,
"data": [
{
"id": "string",
"name": "string",
"description": "string",
"chatVersion": "string",
"folderBaseId": "string",
"model": "string",
"publicChat": "boolean",
"createdAt": "timestamp",
"updatedAt": "timestamp",
"folderIds"
GET /v1/agents/:idid : Identifiant unique de l'agent.{
"success": true,
"data": {
"id": "string",
"name": "string",
"description": "string",
"chatVersion": "string",
"folderBaseId": "string",
"model": "string",
"publicChat": "boolean",
"createdAt": "timestamp",
"updatedAt"
GET /v1/agent/:idid : Identifiant unique de l'agent (CUID)./v1/agents/:id en retournant l'ensemble des propriétés de l'agent, y compris les paramètres avancés de configuration.{
"success": true,
"data": {
"id": "string",
"name": "string",
"description": "string",
"chatVersion": "string",
"model": "string",
"publicChat": "boolean",
"createdAt"
POST /v1/agents{
"name": "string",
"description": "string" | null,
"model": "string" | null,
"publicChat": "boolean" | null,
"iaIdentity": "string" | null,
"welcomeMessage": "string" | null,
"target": "string" | null,
"customModelId": "string" | null,
"embedModel": |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PUT /v1/agents/:idid : Identifiant unique de l'agent.{
"name": "string" | null,
"description": "string" | null,
"model": "string" | null,
"publicChat": "boolean" | null,
"iaIdentity": "string" | null,
"welcomeMessage": "string" | null,
"target": "string" | null,
"customModelId": |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DELETE /v1/agents/:idid : Identifiant unique de l'agent.{
"success": true,
"data": {
"message": "string"
}
}
GET /v1/agents/:id/conversationsid : Identifiant unique de l'agent.{
"success": true,
"data": [
{
"id": "string",
"date": "timestamp",
"message": "string",
"model": "string"
}
]
}
POST /v1/agents/:id/filesid : Identifiant unique de l'agent.{
"filesIds": ["string"]
}
{
"success": true,
"data": ["string"]
}
GET /v1/agents/:id/toolsid : Identifiant unique de l'agent.{
"success": true,
"data": [
{
"id": "string",
"name": "string",
"description": "string",
"url": "string",
"method": "string",
"advanced": "boolean",
"authorization": "string",
"authorizationKeyParams": "string",
"authorizationType"
| Liste les tools actifs |
backgroundColor : Couleur de fond pour l'interfacetextColor : Couleur du texte pour l'interfaceiaType : Type d'IA (standard, custom, etc.)connectWeb : Autorisation de connexion webfreeLevel : Niveau gratuit de l'agentshowSources : Affichage des sources dans les réponsessuggestions : Suggestions prédéfinieschappieMode : Mode Chappie activé/désactivéminimumTools : Nombre minimum d'outilsmaxTokensMonth : Limite mensuelle de tokensmaxContextTokens : Limite de tokens de contextealertTokensMonth : Seuil d'alerte pour les tokensoverrideUrl : URL de surchargeiaIdentity : Identité/personnalité de l'IAwelcomeMessage : Message de bienvenuetarget : Cible/objectif de l'agentcustomModelId : ID du modèle personnaliséembedModel : Modèle d'embedding utiliséattachedAgents : Agents attachéstemperature : Température du modèle (créativité)fullTextMode : Mode texte complet activé/désactivé{
"success": true,
"data": {
"id": "string",
"name": "string",
"description": "string",
"chatVersion": "string",
"folderBaseId": "string",
"model": "string",
"publicChat": "boolean",
"createdAt": "timestamp",
"updatedAt": "timestamp",
"folderIds": ["string"],
"maxFiles": "number"
}
}
{
"success": true,
"data": {
"id": "string",
"name": "string",
"description": "string",
"chatVersion": "string",
"folderBaseId": "string",
"model": "string",
"publicChat": "boolean",
"createdAt": "timestamp",
"updatedAt": "timestamp",
"folderIds": ["string"],
"maxFiles": "number"
}
}