Skip to Content
Nouvelle documentation Applite - JS SDK, Dart SDK & REST API

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/list
ChampTypeRequisDescription
apiKeystringOuiClé 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/create
ChampTypeRequisDescription
apiKeystringOuiClé API
namestringOuiNom de l’agent
companyIdstringNonID entreprise (défaut: par défaut)
emailstringNonEmail
telephonestringNonTéléphone
avatarstringNonURL de l’avatar
avatarIdstringNonID du fichier avatar
rolestringNonRôle/poste
serviceIdsstring[]NonServices assignés
isActivebooleanNonAgent 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}
ChampTypeRequisDescription
apiKeystringOuiClé 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}/edit
ChampTypeRequisDescription
apiKeystringOuiClé API
namestringNonNouveau nom
emailstringNonNouvel email
telephonestringNonNouveau téléphone
avatarstringNonNouvel avatar
rolestringNonNouveau rôle
serviceIdsstring[]NonNouveaux services
isActivebooleanNonStatut 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}/delete
ChampTypeRequisDescription
apiKeystringOuiClé 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