API Agents
Endpoints pour la gestion des agents/employés.
SDK: client.app.multiService.agent
Endpoints
Lister les agents
POST /app/{appId}/multi-service/agents/listRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
curl -X POST https://api.applite.ai/app/{appId}/multi-service/agents/list \
-H "Content-Type: application/json" \
-d '{"apiKey": "your_api_key"}'Créer un agent
POST /app/{appId}/multi-service/agents/createRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
name | string | Oui | Nom de l’agent |
companyId | string | Non | ID entreprise (défaut: par défaut) |
email | string | Non | |
telephone | string | Non | Téléphone |
avatar | string | Non | URL de l’avatar |
avatarId | string | Non | ID du fichier avatar |
role | string | Non | Rôle/poste |
serviceIds | string[] | Non | Services assignés |
isActive | boolean | Non | Agent actif |
curl -X POST https://api.applite.ai/app/{appId}/multi-service/agents/create \
-H "Content-Type: application/json" \
-d '{
"apiKey": "your_api_key",
"name": "Jean Koffi",
"email": "jean@salon.com",
"telephone": "+225071111111",
"role": "Barbier",
"serviceIds": ["serv_123", "serv_124"]
}'Obtenir un agent
POST /app/{appId}/multi-service/agents/{id}Requête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
curl -X POST https://api.applite.ai/app/{appId}/multi-service/agents/{agentId} \
-H "Content-Type: application/json" \
-d '{"apiKey": "your_api_key"}'Mettre à jour un agent
POST /app/{appId}/multi-service/agents/{id}/editRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
name | string | Non | Nouveau nom |
email | string | Non | Nouvel email |
telephone | string | Non | Nouveau téléphone |
avatar | string | Non | Nouvel avatar |
role | string | Non | Nouveau rôle |
serviceIds | string[] | Non | Nouveaux services |
isActive | boolean | Non | Statut actif |
curl -X POST https://api.applite.ai/app/{appId}/multi-service/agents/{agentId}/edit \
-H "Content-Type: application/json" \
-d '{
"apiKey": "your_api_key",
"role": "Coiffeuse Chef",
"serviceIds": ["serv_123", "serv_125", "serv_126"]
}'Supprimer un agent
POST /app/{appId}/multi-service/agents/{id}/deleteRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
curl -X POST https://api.applite.ai/app/{appId}/multi-service/agents/{agentId}/delete \
-H "Content-Type: application/json" \
-d '{"apiKey": "your_api_key"}'Les rendez-vous existants de l’agent sont conservés pour l’historique mais l’agent ne peut plus recevoir de nouveaux rendez-vous.
Last updated on