Messages Reçus
0 messages
Aucun message
Les messages apparaîtront ici en temps réel
Webhook n8n
URL de destination pour les messages
Format Protocol Niger appliqué automatiquement
Envoyer un Message
Test d'envoi manuel
Human Touch Labo
Simulation de présence & lecture
API Endpoints & CURL
Cliquez pour copier la commande
GET
/api/status
POST
/api/toggle
POST
/api/send
POST
/api/send-media
POST
/api/presence
POST
/api/mark-read
POST
/api/webhook
POST
/api/ask
Media Endpoints
GET
/media/:filename
Tools
GET
/api/history
FLUX API Cheat Sheet
Commandes CURL pour n8n • Cliquez pour copier
1. Authentification
POST /api/v1/auth/login
curl -X POST https://flux.nordikforge.com/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{
"username": "{{EMAIL}}",
"password": "{{PASSWORD}}",
"device_name": "n8n-orchestrator"
}'
2. Créer Client
POST /api/v1/customers
curl -X POST https://flux.nordikforge.com/api/v1/customers \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {{TOKEN}}" \
-d '{
"name": "{{NOM_CLIENT}}",
"email": "{{EMAIL_CLIENT}}",
"phone": "{{TELEPHONE}}",
"billing": {
"name": "{{NOM_CLIENT}}",
"address_street_1": "{{ADRESSE}}",
"city": "Niamey",
"country_id": 160
},
"currency_id": 1
}'
3. Créer Facture
POST /api/v1/invoices
curl -X POST https://flux.nordikforge.com/api/v1/invoices \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {{TOKEN}}" \
-d '{
"invoice_date": "{{DATE_YYYY-MM-DD}}",
"due_date": "{{DATE_ECHEANCE}}",
"invoice_number": "{{NUMERO_FACTURE}}",
"customer_id": {{CUSTOMER_ID}},
"template_name": "invoice1",
"items": [
{
"name": "{{NOM_PRODUIT}}",
"quantity": {{QUANTITE}},
"price": {{PRIX_UNITAIRE}},
"total": {{TOTAL_PRODUIT}},
"tax": 0,
"discount_val": 0
}
],
"sub_total": {{SOUS_TOTAL}},
"total": {{TOTAL}},
"tax": 0,
"discount": 0,
"discount_type": "fixed",
"discount_val": 0
}'
4. Récupérer Media
GET /media/:filename
Le champ attachment.url contient déjà l'URL complète.
Ne rajoutez pas de préfixe.
# Exemple avec l'URL directe :
curl {{URL_COMPLETE_DU_FICHIER}} --output fichier.jpg
Placeholders
{{EMAIL}} Email admin Flux
{{TOKEN}} Bearer token
{{CUSTOMER_ID}} ID client
créé{{NUMERO_FACTURE}} Ex:
INV-000001