Bienvenue sur l'API SyncSpace
Tout ce qu'il faut pour intégrer notre plateforme. Accédez aux conversations, fichiers, musiques et plus.
Démarrage
Cette section sera disponible bientôt.
Toutes les réponses sont au format JSON sauf indication contraire.
Authentification
Tous les endpoints nécessitent une authentification. Incluez cet en-tête avec chaque requête:
{
"Authorization": "Bearer VOTRE_CLE_API"
}
Points d'accès
Conversations
Create a new conversation.
{
"userIds": [1, 2, 3],
"name": "My Conversation",
"avatar": "https://example.com/avatar.png"
}
Show a conversation.
Show all conversations.
Remove a conversation.
Edit a conversation.
Envoyer un message.
{
"content": "Hello, world!",
"type": "text",
"attachment": ""
}
Send an audio message (multipart/form-data with 'audio' file).
Send an image message (multipart/form-data with 'media' file).
Envoyer un message GIF.
{
"gifUrl": "https://example.com/my.gif"
}
Remove a message.
Edit a message.
Rechercher un utilisateur.
{
"username": "john.doe"
}
Utilisateurs
Set user online.
Set user offline.
Contact
Formulaire de contact.
{
"name": "John Doe",
"email": "john.doe@example.com",
"message": "Hello, I have a question."
}
Événements
Get all events.
Créer un événement.
{
"title": "My Event",
"start": "2025-08-25T10:00:00",
"end": "2025-08-25T11:00:00",
"isAllDay": false,
"participantsIds": [1, 2, 3]
}
Remove an event.
Update an event.
Musique
List favorite tracks.
Add a track to favorites.
Remove a track from favorites.
Get the quantity of favorite tracks.
Vérifier si une piste est en favori.
{
"videoId": "your_video_id"
}
Show all playlists.
Créer une playlist.
{
"name": "My Playlist"
}
Ajouter une piste à une playlist.
{
"playlistId": 1,
"trackId": "your_track_id"
}
List all playlists.
Créer une nouvelle playlist.
{
"name": "My Playlist"
}
Get the quantity of playlists.
Get tracks from a playlist.
Remove a playlist.
Update a playlist.
List track history.
Add a track to history.
Search on YouTube.
Fichiers
Upload a file to a folder (multipart/form-data with 'file').
Upload a file (multipart/form-data with 'file').
Get all files from a user.
Download a file.
Delete a file.
Partager un fichier.
{
"userIds": [1, 2, 3]
}
Révoquer l'accès à un fichier.
{
"userIds": [1, 2, 3]
}
Get file data.
Get recent files.
List all folders.
List all documents.
List all images.
Créer un dossier.
{
"folderName": "My New Folder",
"parentId": 123
}
Get children of a folder.
Déplacer un fichier.
{
"newParentId": 456
}
Preview a file.
Connexion
Google login.
Google callback.
Login.
Logout.
Register.
Inscription via API.
{
"email": "user@example.com",
"password": "password",
"firstName": "John",
"lastName": "Doe"
}
Send verification code.
Envoyer un code de vérification.
{
"userId": 1,
"code": "123456"
}
Check login.
Send an email.
Notes
List all notes.
Update a note.
Enregistrer une nouvelle note.
{
"title": "My Note",
"content": "This is the content of my note."
}
Remove a note.
Notifications
Get all notifications.
Créer une nouvelle notification.
{
"title": "New Notification",
"content": "This is a new notification.",
"userId": 1
}
Mark a notification as read.
Mark all notifications as read.
Mots de passe
Ajouter un mot de passe.
{
"url": "https://example.com",
"name": "Example",
"email": "user@example.com",
"passwordEncrypted": "encrypted_password",
"iv": "initialization_vector",
"notes": "This is a note.",
"isFavorite": false
}
List all passwords.
Définir un mot de passe principal.
{
"masterPassword": "my_master_password"
}
Get the master password hash.
Get the number of passwords.
Mettre à jour un mot de passe.
{
"url": "https://new-example.com",
"name": "New Example"
}
Remove a password item.
Toggle a password item as favorite.
Recommandations
Get recommendations.
Discover new content.
Pistes
Search for a track.
Suggest a track.
Ajouter une piste.
{
"youtubeId": "your_youtube_id",
"title": "My Track",
"artist": "My Artist",
"genre": "My Genre"
}
Définir la piste actuelle de l'utilisateur.
{
"trackId": "your_track_id"
}
Aimer une piste.
{
"track": {
"title": "My Track",
"youtubeId": "your_youtube_id",
"artist": "My Artist",
"coverUrl": "https://example.com/cover.jpg"
}
}
Paramètres
Activer ou désactiver les notifications.
{
"notifications_enabled": true
}
Activer ou désactiver la géolocalisation.
{
"geolocation_enabled": true
}
Mettre à jour la préférence de thème.
{
"theme": "dark"
}
Mettre à jour la piste actuelle.
{
"youtubeId": "your_youtube_id",
"title": "My Track",
"artist": "My Artist",
"coverUrl": "https://example.com/cover.jpg"
}
Get the current track.