v1
API FeatIA
Génère des prompts de développement structurés par programme. Intégrable dans n8n, Make, Zapier, ou tout pipeline CI/CD.
Base URL : https://www.featia.fr/api/v1
Authentification
Passe ton token d'accès dans le header X-Access-Token. Le token se trouve dans ton espace abonné.
http
X-Access-Token: <ton_token_d_accès>
Endpoint
POST
/api/v1/generateGénère un prompt de développement complet à partir d'un brief.
Corps (JSON)
| Champ | Type | Requis | Description |
|---|---|---|---|
| projectName | string | oui | Nom du projet (max 100 car.) |
| brief | string | oui | Description libre du projet (10–5000 car.) |
Exemples
curl
bash
curl -X POST https://www.featia.fr/api/v1/generate \
-H "Content-Type: application/json" \
-H "X-Access-Token: <ton_token>" \
-d '{
"projectName": "NoteSync",
"brief": "App de prise de notes collaborative en temps réel avec export PDF et partage d\'équipe."
}'JavaScript (fetch)
javascript
const res = await fetch("https://www.featia.fr/api/v1/generate", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-Access-Token": process.env.FEATIA_TOKEN,
},
body: JSON.stringify({
projectName: "NoteSync",
brief: "App de prise de notes collaborative...",
}),
});
const { promptId, prompt, wordCount } = await res.json();Réponse
200 OK — JSON avec le prompt généré.
json
{
"promptId": "uuid-du-prompt-sauvegardé",
"projectName": "NoteSync",
"prompt": "# NoteSync — Prompt de développement Claude Code\n\n## Rôle\n...",
"wordCount": 1842
}Codes d'erreur
| Status | Code | Description |
|---|---|---|
| 401 | MISSING_TOKEN | Header X-Access-Token absent |
| 401 | INVALID_TOKEN | Token inconnu ou révoqué |
| 403 | INACTIVE | Abonnement expiré ou inactif |
| 400 | VALIDATION_ERROR | Corps JSON invalide ou champs manquants |
| 429 | RATE_LIMIT | Trop de requêtes — attends 1 minute |
| 429 | QUOTA_EXCEEDED | Quota mensuel de projets atteint |
| 502 | AI_ERROR | Erreur du modèle IA — réessaie |
Limites
- Les appels API consomment le même quota mensuel que l'interface web.
- Rate limit : 30 requêtes / minute par IP.
- La génération prend 10–30 secondes (pas de streaming — réponse complète).
- Le prompt généré est sauvegardé dans ton espace portail.
Questions ? Contactez-nous