API & Intégrations
Automatisez vos business plans
Connectez PitchCraft AI à vos workflows existants. Compatible Make, Zapier, n8n et tout outil supportant les API REST.
🔧
Make
Module HTTP > Make a Request
⚡
Zapier
Webhooks by Zapier
🔗
n8n
Nœud HTTP Request
1
Obtenez votre clé API
Souscrivez au plan Pro, puis générez votre clé API depuis votre dashboard.
X-API-Key: pk_aBcDeFgHiJkLmNoPqRsTuVwXyZ...2
Générez un business plan
POST /api/v1/generate
curl -X POST https://pitchcraftai.app/api/v1/generate \
-H "Content-Type: application/json" \
-H "X-API-Key: pk_votre_cle_api" \
-d '{
"business_idea": "Application mobile de livraison de repas bio",
"industry": "FoodTech",
"target_market": "Professionnels urbains 25-45 ans",
"include_viral_content": true
}'3
Recevez le résultat
Réponse JSON
{
"success": true,
"generation_id": "550e8400-e29b-41d4-a716-446655440000",
"share_url": "https://pitchcraftai.app/share/abc123...",
"business_plan": {
"executive_summary": "...",
"market_analysis": "...",
"business_model": "...",
"financial_projections": "...",
"go_to_market": "..."
},
"viral_content": {
"linkedin_post": "...",
"twitter_thread": "...",
"email_template": "..."
},
"usage": {
"generations_used": 5,
"generations_limit": 100,
"generations_remaining": 95
}
}Webhooks
Configurez un webhook pour recevoir automatiquement les résultats dans vos scénarios Make/Zapier/n8n.
POST /api/v1/webhooks/configure
curl -X POST https://pitchcraftai.app/api/v1/webhooks/configure \
-H "Content-Type: application/json" \
-H "X-API-Key: pk_votre_cle_api" \
-d '{
"webhook_url": "https://hook.eu1.make.com/your-scenario"
}'Sécurité : Un secret HMAC-SHA256 est retourné lors de la configuration. Vérifiez le header
X-Webhook-Signature dans chaque requête reçue.Référence des endpoints
POST
/api/v1/generateGET
/api/v1/generationsGET
/api/v1/generations/{id}GET
/api/v1/usagePOST
/api/v1/webhooks/configureDELETE
/api/v1/webhooksPOST
/api/v1/keys/generateGET
/api/v1/openapi-specGuides d'intégration
Make (Integromat)
- 1.Créez un nouveau scénario
- 2.Ajoutez un module HTTP > Make a Request
- 3.Méthode : POST
- 4.URL : /api/v1/generate
- 5.Ajoutez le header X-API-Key
- 6.Configurez le body JSON
- 7.Connectez au module suivant
Zapier
- 1.Créez un nouveau Zap
- 2.Choisissez votre trigger
- 3.Action : Webhooks by Zapier
- 4.Type : Custom Request
- 5.Méthode : POST
- 6.URL : /api/v1/generate
- 7.Ajoutez le header X-API-Key
n8n
- 1.Ajoutez un nœud HTTP Request
- 2.Méthode : POST
- 3.URL : /api/v1/generate
- 4.Authentication : Header Auth
- 5.Nom : X-API-Key
- 6.Valeur : votre clé API
- 7.Body : JSON avec business_idea
Prêt à automatiser ?
Passez au plan Pro pour accéder à l'API et connecter vos workflows.
Voir les tarifs