HumanizeRUAPI key

Documentation API

API HumanizeRU pour humanisation, détection et workflows de style.

Créez une clé API dans le Dashboard.

Agent API

Donnez aux agents une couche d'écriture stable : humanisation, bases de style, styles privés et extraction de profil.

Authentification

Passez une clé API avec Authorization: Bearer hru_votre_key. Les styles privés exigent une clé API ou une session active.

Utiliser une base de style

curl -X POST https://humanizeru.com/api/humanize \
  -H "Authorization: Bearer hru_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Your text with at least 50 characters...",
    "tone": "conversational",
    "style_preset": "technical_programmer",
    "style_strength": "balanced",
    "style_adjustments": {
      "technicality": "high",
      "warmth": "medium"
    }
  }'

Extraire un profil de style

curl -X POST https://humanizeru.com/api/styles/extract \
  -H "Authorization: Bearer hru_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "sample": "A style sample with at least 120 characters..."
  }'

Bases de style prêtes

curl https://humanizeru.com/api/style-presets

Utiliser un style privé

curl -X POST https://humanizeru.com/api/humanize \
  -H "Authorization: Bearer hru_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Your text with at least 50 characters...",
    "style_id": "saved-style-id",
    "style_strength": "balanced"
  }'

Détection de texte IA

curl -X POST https://humanizeru.com/api/detect \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Text to check..."
  }'

Erreurs

L'API renvoie des codes stables comme INVALID_API_KEY, TEXT_TOO_SHORT, STYLE_SAMPLE_TOO_SHORT et STYLE_NOT_FOUND.

Documentation complète