Référence REST
REST · Plateforme
Amorçage, santé, statistiques, statut, assistance, centre d’aide, modération et administration.
Gateway : amorçage, santé et statut
| Route | Accès | Rôle |
|---|---|---|
GET /api/bootstrap/me | Connecté | Tout l’état initial en une requête : user, servers, conversations, friends, friendRequests, blocked, notifications, notificationSettings, preferences, fetchedAt. Les conversations contiennent déjà le nom, l’avatar et la présence de l’interlocuteur. |
GET /api/bootstrap/dm/{recipientId}?limit=50 | Connecté | Ouverture d’un MP en une requête : recipient, blockStatus, keyBundle (consomme une prékey), messages (1 à 100). limit est borné à 100. |
GET /health | Public | { status, service, uptime, connections, timestamp }. |
GET /api/stats | Public | { totalUsers, onlineUsers, totalServers, totalMembers, connectedWS, generatedAt }, mis en cache 60 s. |
GET /api/status | Public | État de chaque service et incidents en cours, pour la page de statut. |
GET /api/socket/status | Public | Nombre de connexions temps réel. |
GET /uploads/* | Public | Fichiers publics. |
Gateway : administration (rôle admin)
| Route | Rôle |
|---|---|
GET /api/admin/gateway/stats | Compteurs du gateway (connexions, rooms, limites atteintes). |
POST /api/admin/gateway/ban-ip | Bloque une adresse IP. |
DELETE /api/admin/gateway/ban-ip/{ip} | Débloque une adresse IP. |
DELETE /api/admin/gateway/rate-limit/{ip} | Remet à zéro le compteur de débit d’une IP. |
GET /api/admin/monitoring, …/monitoring/service/{name}, …/monitoring/users/chart | Surveillance : état des services, détail, courbe d’utilisateurs. |
GET/POST/PATCH/DELETE /api/admin/status/incidents | Incidents affichés sur la page de statut. |
GET/POST/PATCH/DELETE /api/admin/services… | Registre des services : lister, ajouter, modifier un point d’accès, restaurer, faire tourner la clé. |
GET/POST/PATCH/DELETE /api/admin/lb/gateways…, …/lb/services…, POST …/lb/reload-keys | Répartiteur de charge : gateways et services déclarés. |
Assistance et centre d’aide
Le centre d’aide public se lit sans compte. Un utilisateur ouvre et suit ses tickets ; l’équipe les traite.
Ouvre un ticket d'assistance (compte ou invité).
POST https://gateway.alfychat.app/api/helpdesk/public/tickets
Corps JSON
| subject | texte · longueur 3–255 | obligatoire |
| description | texte · longueur 10–4000 | obligatoire |
| priority | — | facultatif |
| category | texte | facultatif |
| facultatif | ||
| turnstileToken | — | facultatif |
Succès : 201
curl -X POST "https://gateway.alfychat.app/api/helpdesk/public/tickets" \
-H "Content-Type: application/json" \
-d '{"subject":"…","description":"…"}'Liste ses propres tickets.
GET https://gateway.alfychat.app/api/helpdesk/public/tickets
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/helpdesk/public/tickets" \
-H "Authorization: Bearer $ACCESS_TOKEN"Détail d'un de ses tickets.
GET https://gateway.alfychat.app/api/helpdesk/public/tickets/{number}
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/helpdesk/public/tickets/<number>" \
-H "Authorization: Bearer $ACCESS_TOKEN"Messages d'un de ses tickets.
GET https://gateway.alfychat.app/api/helpdesk/public/tickets/{number}/messages
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/helpdesk/public/tickets/<number>/messages" \
-H "Authorization: Bearer $ACCESS_TOKEN"Répond à un de ses tickets.
POST https://gateway.alfychat.app/api/helpdesk/public/tickets/{number}/messages
Corps JSON
| content | texte · longueur 1–5000 | obligatoire |
Succès : 201
curl -X POST "https://gateway.alfychat.app/api/helpdesk/public/tickets/<number>/messages" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"content":"…"}'Catégories du centre d'aide.
GET https://gateway.alfychat.app/api/users/support/categories
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/users/support/categories"Articles d'une catégorie du centre d'aide.
GET https://gateway.alfychat.app/api/users/support/categories/{slug}
Succès : 200, 404
curl -X GET "https://gateway.alfychat.app/api/users/support/categories/<slug>"Articles d'aide les plus consultés.
GET https://gateway.alfychat.app/api/users/support/articles/popular
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/users/support/articles/popular"Contenu d'un article d'aide.
GET https://gateway.alfychat.app/api/users/support/articles/{slug}
Succès : 200, 404
curl -X GET "https://gateway.alfychat.app/api/users/support/articles/<slug>"Annonces du centre d'aide.
GET https://gateway.alfychat.app/api/users/support/announcements
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/users/support/announcements"Problèmes connus en cours de traitement.
GET https://gateway.alfychat.app/api/users/support/known-issues
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/users/support/known-issues"Côté équipe
Statistiques de l'assistance (équipe).
GET https://gateway.alfychat.app/api/helpdesk/stats
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/helpdesk/stats" \
-H "Authorization: Bearer $ACCESS_TOKEN"Agents de l'assistance (équipe).
GET https://gateway.alfychat.app/api/helpdesk/agents
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/helpdesk/agents" \
-H "Authorization: Bearer $ACCESS_TOKEN"Liste tous les tickets (équipe).
GET https://gateway.alfychat.app/api/helpdesk/tickets
Paramètres de requête
| status | — | facultatif |
| priority | — | facultatif |
| category | — | facultatif |
| assignedTo | texte | facultatif |
| search | texte · longueur 0–100 | facultatif |
| limit | MinMax | facultatif |
| offset | Min | facultatif |
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/helpdesk/tickets" \
-H "Authorization: Bearer $ACCESS_TOKEN"Crée un ticket pour un utilisateur (équipe).
POST https://gateway.alfychat.app/api/helpdesk/tickets
Corps JSON
| subject | texte · longueur 3–255 | obligatoire |
| description | texte · longueur ≥ 10 | obligatoire |
| priority | — | facultatif |
| category | — | facultatif |
| requesterId | texte | facultatif |
Succès : 201
curl -X POST "https://gateway.alfychat.app/api/helpdesk/tickets" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"subject":"…","description":"…"}'Détail d'un ticket (équipe).
GET https://gateway.alfychat.app/api/helpdesk/tickets/{id}
Erreurs
- 404Ticket non trouvé
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/helpdesk/tickets/<id>" \
-H "Authorization: Bearer $ACCESS_TOKEN"Met à jour statut, priorité ou assignation d'un ticket (équipe).
PATCH https://gateway.alfychat.app/api/helpdesk/tickets/{id}
Corps JSON
| status | — | facultatif |
| priority | — | facultatif |
| category | — | facultatif |
| assignedTo | nullable | facultatif |
| subject | texte · longueur 3–255 | facultatif |
Succès : 200
curl -X PATCH "https://gateway.alfychat.app/api/helpdesk/tickets/<id>" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'Supprime un ticket (équipe).
DELETE https://gateway.alfychat.app/api/helpdesk/tickets/{id}
Erreurs
- 403Réservé aux administrateurs
Succès : 200
curl -X DELETE "https://gateway.alfychat.app/api/helpdesk/tickets/<id>" \
-H "Authorization: Bearer $ACCESS_TOKEN"Messages d'un ticket (équipe).
GET https://gateway.alfychat.app/api/helpdesk/tickets/{id}/messages
Erreurs
- 404Ticket non trouvé
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/helpdesk/tickets/<id>/messages" \
-H "Authorization: Bearer $ACCESS_TOKEN"Répond à un ticket (équipe).
POST https://gateway.alfychat.app/api/helpdesk/tickets/{id}/messages
Corps JSON
| content | texte · longueur 1–5000 | obligatoire |
| isInternal | booléen | facultatif |
Erreurs
- 404Ticket non trouvé
Succès : 201
curl -X POST "https://gateway.alfychat.app/api/helpdesk/tickets/<id>/messages" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"content":"…","isInternal":"…"}'Modération
Sanctions (avertissement, mute, bannissement), dossier d’un utilisateur, filtre de termes. Réservé à l’équipe de modération.
Statistiques de modération.
GET https://gateway.alfychat.app/api/admin/moderation/stats
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/admin/moderation/stats" \
-H "Authorization: Bearer $ACCESS_TOKEN"Liste les sanctions (avertissements, mutes, bannissements).
GET https://gateway.alfychat.app/api/admin/moderation/sanctions
Paramètres de requête
| userId | texte | facultatif |
| type | — | facultatif |
| activeOnly | booléen | facultatif |
| limit | MinMax | facultatif |
| offset | Min | facultatif |
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/admin/moderation/sanctions" \
-H "Authorization: Bearer $ACCESS_TOKEN"Dossier de modération d'un utilisateur.
GET https://gateway.alfychat.app/api/admin/moderation/users/{userId}
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/admin/moderation/users/<userId>" \
-H "Authorization: Bearer $ACCESS_TOKEN"Applique une sanction à un utilisateur.
POST https://gateway.alfychat.app/api/admin/moderation/users/{userId}/sanctions
Corps JSON
| type | — | obligatoire |
| reason | texte · longueur 3–1000 | obligatoire |
| durationMinutes | nullable · MinMax | facultatif |
Succès : 201
curl -X POST "https://gateway.alfychat.app/api/admin/moderation/users/<userId>/sanctions" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"type":"…","reason":"…","durationMinutes":"…"}'Révoque une sanction.
DELETE https://gateway.alfychat.app/api/admin/moderation/sanctions/{sanctionId}
Corps JSON
| reason | texte · longueur 0–1000 | facultatif |
Succès : 200
curl -X DELETE "https://gateway.alfychat.app/api/admin/moderation/sanctions/<sanctionId>" \
-H "Authorization: Bearer $ACCESS_TOKEN"Lève un bannissement.
POST https://gateway.alfychat.app/api/admin/moderation/users/{userId}/unban
Corps JSON
| reason | texte · longueur 0–1000 | facultatif |
Succès : 200
curl -X POST "https://gateway.alfychat.app/api/admin/moderation/users/<userId>/unban" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"reason":"…"}'Lève un mute.
POST https://gateway.alfychat.app/api/admin/moderation/users/{userId}/unmute
Corps JSON
| reason | texte · longueur 0–1000 | facultatif |
Succès : 200
curl -X POST "https://gateway.alfychat.app/api/admin/moderation/users/<userId>/unmute" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"reason":"…"}'Termes filtrés par la modération automatique.
GET https://gateway.alfychat.app/api/admin/moderation/terms
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/admin/moderation/terms" \
-H "Authorization: Bearer $ACCESS_TOKEN"Ajoute un terme filtré.
POST https://gateway.alfychat.app/api/admin/moderation/terms
Corps JSON
| term | texte · longueur 2–100 | obligatoire |
| matchType | ∈ {substring, word, exact} | facultatif |
Erreurs
- 400Ce terme est déjà dans la liste
- 400Terme vide
Succès : 201
curl -X POST "https://gateway.alfychat.app/api/admin/moderation/terms" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"term":"…","matchType":"…"}'Supprime un terme filtré.
DELETE https://gateway.alfychat.app/api/admin/moderation/terms/{termId}
Succès : 200
curl -X DELETE "https://gateway.alfychat.app/api/admin/moderation/terms/<termId>" \
-H "Authorization: Bearer $ACCESS_TOKEN"Administration de la plateforme
Modèles d'e-mails disponibles (outil de développement).
GET https://gateway.alfychat.app/api/admin/dev/emails/types
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/admin/dev/emails/types" \
-H "Authorization: Bearer $ACCESS_TOKEN"Aperçu d'un modèle d'e-mail.
GET https://gateway.alfychat.app/api/admin/dev/emails/{type}/preview
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/admin/dev/emails/<type>/preview" \
-H "Authorization: Bearer $ACCESS_TOKEN"Envoie un e-mail de test.
POST https://gateway.alfychat.app/api/admin/dev/emails/{type}/send
Corps JSON
| to | obligatoire |
Succès : 200, 502
curl -X POST "https://gateway.alfychat.app/api/admin/dev/emails/<type>/send" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"to":"…"}'Statistiques globales de la plateforme.
GET https://gateway.alfychat.app/api/admin/stats
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/admin/stats" \
-H "Authorization: Bearer $ACCESS_TOKEN"Liste les badges.
GET https://gateway.alfychat.app/api/admin/badges
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/admin/badges" \
-H "Authorization: Bearer $ACCESS_TOKEN"Crée un badge.
POST https://gateway.alfychat.app/api/admin/badges
Corps JSON
| name | texte · longueur 1–100 | obligatoire |
| description | texte | facultatif |
| iconType | ∈ {bootstrap, svg, flaticon} | obligatoire |
| iconValue | texte · longueur ≥ 1 | obligatoire |
| color | texte · format imposé | obligatoire |
| displayOrder | entier | facultatif |
Erreurs
- 400Données manquantes
Succès : 200
curl -X POST "https://gateway.alfychat.app/api/admin/badges" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"…","iconType":"…","iconValue":"…","color":"…"}'Modifie un badge.
PATCH https://gateway.alfychat.app/api/admin/badges/{badgeId}
Corps JSON
| name | texte · longueur 1–100 | facultatif |
| description | texte | facultatif |
| iconType | ∈ {bootstrap, svg, flaticon} | facultatif |
| iconValue | texte · longueur ≥ 1 | facultatif |
| color | texte · format imposé | facultatif |
| displayOrder | entier | facultatif |
Succès : 200
curl -X PATCH "https://gateway.alfychat.app/api/admin/badges/<badgeId>" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'Active ou désactive un badge.
PATCH https://gateway.alfychat.app/api/admin/badges/{badgeId}/status
Corps JSON
| isActive | booléen | obligatoire |
Succès : 200
curl -X PATCH "https://gateway.alfychat.app/api/admin/badges/<badgeId>/status" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"isActive":"…"}'Supprime un badge.
DELETE https://gateway.alfychat.app/api/admin/badges/{badgeId}
Succès : 200
curl -X DELETE "https://gateway.alfychat.app/api/admin/badges/<badgeId>" \
-H "Authorization: Bearer $ACCESS_TOKEN"Attribue un badge à un utilisateur.
POST https://gateway.alfychat.app/api/admin/users/{userId}/badges/{badgeId}
Succès : 200
curl -X POST "https://gateway.alfychat.app/api/admin/users/<userId>/badges/<badgeId>" \
-H "Authorization: Bearer $ACCESS_TOKEN"Retire un badge à un utilisateur.
DELETE https://gateway.alfychat.app/api/admin/users/{userId}/badges/{badgeId}
Succès : 200
curl -X DELETE "https://gateway.alfychat.app/api/admin/users/<userId>/badges/<badgeId>" \
-H "Authorization: Bearer $ACCESS_TOKEN"Liste paginée des utilisateurs.
GET https://gateway.alfychat.app/api/admin/users
Paramètres de requête
| limit | MinMax | facultatif |
| offset | Min | facultatif |
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/admin/users" \
-H "Authorization: Bearer $ACCESS_TOKEN"Recherche d'utilisateurs (administration).
GET https://gateway.alfychat.app/api/admin/users/search
Paramètres de requête
| q | texte · longueur ≥ 1 | obligatoire |
Erreurs
- 400Requête de recherche requise
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/admin/users/search" \
-H "Authorization: Bearer $ACCESS_TOKEN"Change le rôle d'un utilisateur (user, moderator, admin…).
PATCH https://gateway.alfychat.app/api/admin/users/{userId}/role
Corps JSON
| role | — | obligatoire |
Erreurs
- 400Impossible de modifier votre propre rôle
- 400Rôle invalide
Succès : 200
curl -X PATCH "https://gateway.alfychat.app/api/admin/users/<userId>/role" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"role":"…"}'Réglages de la plateforme.
GET https://gateway.alfychat.app/api/admin/settings
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/admin/settings" \
-H "Authorization: Bearer $ACCESS_TOKEN"Modifie un réglage de la plateforme.
PUT https://gateway.alfychat.app/api/admin/settings
Corps JSON
| key | texte · longueur ≥ 1 | obligatoire |
| value | texte | obligatoire |
Erreurs
- 400Paramètre non autorisé
Succès : 200
curl -X PUT "https://gateway.alfychat.app/api/admin/settings" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"key":"…","value":"…"}'Crée un lien d'invitation à la plateforme.
POST https://gateway.alfychat.app/api/admin/invite-links
Corps JSON
| obligatoire | ||
| expiresInHours | MinMax | facultatif |
Succès : 200
curl -X POST "https://gateway.alfychat.app/api/admin/invite-links" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"email":"…","expiresInHours":"…"}'Liste les liens d'invitation à la plateforme.
GET https://gateway.alfychat.app/api/admin/invite-links
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/admin/invite-links" \
-H "Authorization: Bearer $ACCESS_TOKEN"Supprime un lien d'invitation à la plateforme.
DELETE https://gateway.alfychat.app/api/admin/invite-links/{linkId}
Succès : 200
curl -X DELETE "https://gateway.alfychat.app/api/admin/invite-links/<linkId>" \
-H "Authorization: Bearer $ACCESS_TOKEN"Liste les notes de version.
GET https://gateway.alfychat.app/api/admin/changelogs
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/admin/changelogs" \
-H "Authorization: Bearer $ACCESS_TOKEN"Publie une note de version.
POST https://gateway.alfychat.app/api/admin/changelogs
Corps JSON
| version | nullable · texte · longueur 0–50 | facultatif |
| title | texte · longueur 1–255 | obligatoire |
| content | texte · longueur ≥ 1 | obligatoire |
| type | — | facultatif |
| bannerUrl | — | facultatif |
Erreurs
- 400title et content requis
Succès : 201
curl -X POST "https://gateway.alfychat.app/api/admin/changelogs" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"title":"…","content":"…"}'Modifie une note de version.
PATCH https://gateway.alfychat.app/api/admin/changelogs/{changelogId}
Corps JSON
| version | nullable · texte · longueur 0–50 | facultatif |
| title | texte · longueur 1–255 | facultatif |
| content | texte · longueur ≥ 1 | facultatif |
| type | — | facultatif |
| bannerUrl | nullable | facultatif |
Succès : 200
curl -X PATCH "https://gateway.alfychat.app/api/admin/changelogs/<changelogId>" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'Supprime une note de version.
DELETE https://gateway.alfychat.app/api/admin/changelogs/{changelogId}
Succès : 200
curl -X DELETE "https://gateway.alfychat.app/api/admin/changelogs/<changelogId>" \
-H "Authorization: Bearer $ACCESS_TOKEN"Liste les liens courts.
GET https://gateway.alfychat.app/api/admin/short-links
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/admin/short-links" \
-H "Authorization: Bearer $ACCESS_TOKEN"Crée un lien court.
POST https://gateway.alfychat.app/api/admin/short-links
Corps JSON
| slug | texte · format imposé | obligatoire |
| targetUrl | texte · longueur 0–2048 · URL | obligatoire |
Erreurs
- 400«
- 409Le lien «
Succès : 201
curl -X POST "https://gateway.alfychat.app/api/admin/short-links" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"slug":"…","targetUrl":"…"}'Modifie un lien court.
PATCH https://gateway.alfychat.app/api/admin/short-links/{slug}
Corps JSON
| targetUrl | texte · longueur 0–2048 · URL | obligatoire |
Erreurs
- 404Lien introuvable
Succès : 200
curl -X PATCH "https://gateway.alfychat.app/api/admin/short-links/<slug>" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"targetUrl":"…"}'Supprime un lien court.
DELETE https://gateway.alfychat.app/api/admin/short-links/{slug}
Succès : 200
curl -X DELETE "https://gateway.alfychat.app/api/admin/short-links/<slug>" \
-H "Authorization: Bearer $ACCESS_TOKEN"Liste les catégories du centre d'aide.
GET https://gateway.alfychat.app/api/admin/support/categories
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/admin/support/categories" \
-H "Authorization: Bearer $ACCESS_TOKEN"Crée une catégorie d'aide.
POST https://gateway.alfychat.app/api/admin/support/categories
Corps JSON
| slug | texte · longueur 1–100 | obligatoire |
| title | texte · longueur 1–255 | obligatoire |
| description | texte | facultatif |
| iconName | texte | facultatif |
| color | texte · format imposé | facultatif |
| sortOrder | Min | facultatif |
Succès : 201
curl -X POST "https://gateway.alfychat.app/api/admin/support/categories" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"slug":"…","title":"…"}'Modifie une catégorie d'aide.
PATCH https://gateway.alfychat.app/api/admin/support/categories/{id}
Succès : 200
curl -X PATCH "https://gateway.alfychat.app/api/admin/support/categories/<id>" \
-H "Authorization: Bearer $ACCESS_TOKEN"Supprime une catégorie d'aide.
DELETE https://gateway.alfychat.app/api/admin/support/categories/{id}
Succès : 200
curl -X DELETE "https://gateway.alfychat.app/api/admin/support/categories/<id>" \
-H "Authorization: Bearer $ACCESS_TOKEN"Liste les articles d'aide.
GET https://gateway.alfychat.app/api/admin/support/articles
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/admin/support/articles" \
-H "Authorization: Bearer $ACCESS_TOKEN"Crée un article d'aide.
POST https://gateway.alfychat.app/api/admin/support/articles
Corps JSON
| slug | texte · longueur 1–255 | obligatoire |
| title | texte · longueur 1–255 | obligatoire |
| summary | texte | facultatif |
| content | texte | facultatif |
| categoryId | texte | facultatif |
| tags | tableau | facultatif |
| isPinned | booléen | facultatif |
| sortOrder | Min | facultatif |
Succès : 201
curl -X POST "https://gateway.alfychat.app/api/admin/support/articles" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"slug":"…","title":"…"}'Modifie un article d'aide.
PATCH https://gateway.alfychat.app/api/admin/support/articles/{id}
Succès : 200
curl -X PATCH "https://gateway.alfychat.app/api/admin/support/articles/<id>" \
-H "Authorization: Bearer $ACCESS_TOKEN"Supprime un article d'aide.
DELETE https://gateway.alfychat.app/api/admin/support/articles/{id}
Succès : 200
curl -X DELETE "https://gateway.alfychat.app/api/admin/support/articles/<id>" \
-H "Authorization: Bearer $ACCESS_TOKEN"Liste les annonces d'aide.
GET https://gateway.alfychat.app/api/admin/support/announcements
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/admin/support/announcements" \
-H "Authorization: Bearer $ACCESS_TOKEN"Crée une annonce d'aide.
POST https://gateway.alfychat.app/api/admin/support/announcements
Corps JSON
| type | ∈ {incident, maintenance, news} | obligatoire |
| title | texte · longueur 1–255 | obligatoire |
| summary | texte | facultatif |
| content | texte | facultatif |
| isResolved | booléen | facultatif |
Succès : 201
curl -X POST "https://gateway.alfychat.app/api/admin/support/announcements" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"type":"…","title":"…"}'Modifie une annonce d'aide.
PATCH https://gateway.alfychat.app/api/admin/support/announcements/{id}
Succès : 200
curl -X PATCH "https://gateway.alfychat.app/api/admin/support/announcements/<id>" \
-H "Authorization: Bearer $ACCESS_TOKEN"Supprime une annonce d'aide.
DELETE https://gateway.alfychat.app/api/admin/support/announcements/{id}
Succès : 200
curl -X DELETE "https://gateway.alfychat.app/api/admin/support/announcements/<id>" \
-H "Authorization: Bearer $ACCESS_TOKEN"Liste les problèmes connus.
GET https://gateway.alfychat.app/api/admin/support/known-issues
Succès : 200
curl -X GET "https://gateway.alfychat.app/api/admin/support/known-issues" \
-H "Authorization: Bearer $ACCESS_TOKEN"Déclare un problème connu.
POST https://gateway.alfychat.app/api/admin/support/known-issues
Corps JSON
| title | texte · longueur 1–255 | obligatoire |
| description | texte | facultatif |
| status | ∈ {investigating, in_progress, resolved} | facultatif |
| categoryLabel | texte · longueur 0–100 | facultatif |
Succès : 201
curl -X POST "https://gateway.alfychat.app/api/admin/support/known-issues" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"title":"…","description":"…","status":"…","categoryLabel":"…"}'Met à jour un problème connu.
PATCH https://gateway.alfychat.app/api/admin/support/known-issues/{id}
Succès : 200
curl -X PATCH "https://gateway.alfychat.app/api/admin/support/known-issues/<id>" \
-H "Authorization: Bearer $ACCESS_TOKEN"Supprime un problème connu.
DELETE https://gateway.alfychat.app/api/admin/support/known-issues/{id}
Succès : 200
curl -X DELETE "https://gateway.alfychat.app/api/admin/support/known-issues/<id>" \
-H "Authorization: Bearer $ACCESS_TOKEN"