Référence API
L’API Pia Cloud est hébergée sur cloud.pia-ai.de et fournit des endpoints d’authentification, de synchronisation des conversations et de proxy IA.
URL de base
Section intitulée « URL de base »https://cloud.pia-ai.deAuthentification
Section intitulée « Authentification »Tous les endpoints authentifiés nécessitent un token Bearer dans l’en-tête Authorization :
Authorization: Bearer <jwt-token>POST /api/auth/register
Section intitulée « POST /api/auth/register »Créer un nouveau compte.
POST /api/auth/login
Section intitulée « POST /api/auth/login »S’authentifier et recevoir un token JWT.
Conversations
Section intitulée « Conversations »GET /api/conversations
Section intitulée « GET /api/conversations »Lister les conversations synchronisées.
POST /api/conversations/sync
Section intitulée « POST /api/conversations/sync »Envoyer des données de conversation chiffrées.
GET /health
Section intitulée « GET /health »Retourne 200 OK si le serveur est en cours d’exécution.