Skip to content
Mintlify
Mintlify
Agent

Créer une tâche d'agent

POST/v2/agent/{projectId}/job

Ce point de terminaison crée une tâche d’agent en arrière-plan. La tâche s’exécute de manière asynchrone. Utilisez le point de terminaison récupérer une tâche d’agent pour vérifier régulièrement les mises à jour de statut.

Si l’agent modifie les fichiers avec succès, Mintlify crée une pull request (demande de fusion) et renseigne le champ prLink dans la réponse de la tâche.

  • 100 utilisations par projet Mintlify et par heure
curl -X POST https://api.mintlify.com/v2/agent/{projectId}/job \
  -H "Authorization: Bearer mint_xxxxx" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "Add a quickstart guide for the Python SDK"}'
Was this page helpful?Suggest editsRaise issue