mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
693dbc361f
* Fix Vale style warnings across docs from past week of merges Generated-By: mintlify-agent * Apply suggestion from @ethanpalm * Apply suggestion from @ethanpalm * Apply suggestion from @ethanpalm * Apply suggestion from @ethanpalm * Apply suggestion from @ethanpalm * Apply suggestions from code review Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com> --------- Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
24 lines
741 B
Plaintext
24 lines
741 B
Plaintext
---
|
|
title: "Create agent job"
|
|
openapi: /admin-openapi.json POST /v2/agent/{projectId}/job
|
|
keywords: ["agent job", "create", "automation", "automate"]
|
|
|
|
---
|
|
|
|
This endpoint creates a background agent job. The job runs asynchronously — use the [get agent job](/api/agent/v2/get-agent-job) endpoint to poll for status updates.
|
|
|
|
If the agent edits files successfully, Mintlify creates a pull request and populates the `prLink` field in the job response.
|
|
|
|
## Rate limits
|
|
|
|
- 100 uses per Mintlify project per hour
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
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"}'
|
|
```
|