Authentification
L’API utilise une authentification par clé API via le header : Authorization: Bearer VOTRE_CLE
curl -X GET "https://peachie.io/api/products" \
-H "Authorization: Bearer VOTRE_CLE_API"fetch("https://peachie.io/api/products", {
headers: { "Authorization": "Bearer VOTRE_CLE_API" }
}).then(r => r.json()).then(console.log);$response = file_get_contents(
"https://peachie.io/api/products",
false,
stream_context_create([
"http" => ["header" => "Authorization: Bearer VOTRE_CLE_API"]
])
);
$data = json_decode($response, true);Endpoint : Produits
/products
Retourne la liste de vos produits (formations, communautés…).
GET https://peachie.io/api/products
Réponse exemple
[
{
"id": 1,
"title": "Formation Instagram",
"slug": "formation-instagram",
"price": "47",
"online": 1
}
]Endpoint : Tags
/tags
Retourne la liste de tous vos tags marketing.
GET https://peachie.io/api/tags
Réponse exemple
[
{ "id": 12, "title": “Prospect” }
]Endpoint : Contacts
/contacts
Retourne vos contacts : leads, prospects, clients.
GET https://peachie.io/api/contacts
Réponse exemple
[
{
"id": 58,
"email": "julie@mail.com",
"first_name": "Julie",
"last_name": "Martin",
"is_marketing": true,
"country": "France"
}
]Utilisation avec Make
Configurer Peachie sur Make
- Ouvrez votre scénario Make
- Ajoutez un module HTTP ou l'application Peachie sur Make
- Choisissez :
- GET
/products - GET
/tags - GET
/contacts
- GET
- Ajoutez le header :
Authorization: Bearer VOTRE_CLE_API
Exemples d'utilisation
Quelques exemples d'utilisation de l'API de Peachie avec Make.
Récupérer vos produits chaque jour
1️⃣ Trigger : Scheduler → Every day 2️⃣ Module : Peachie → Get Products 3️⃣ Filtrer (optionnel) : price > 0 4️⃣ Enregistrement dans Google Sheets / Notion
Synchroniser vos contacts dans Notion
1️⃣ Peachie → Get Contacts 2️⃣ Notion → Create Page 3️⃣ Mapper : email, prénom, nom, pays, tags
Notifier en Slack les nouveaux leads
1️⃣ Scheduler every hour 2️⃣ Peachie → Get Contacts 3️⃣ Filtrer : created_at > now - 1h 4️⃣ Slack → Send Message