Create agent job
Creates a new agent job that runs in the background. The job processes the prompt asynchronously — poll the get job endpoint to track progress. If the agent edits files successfully, a pull request is automatically created.
This endpoint creates a background agent job. The job runs asynchronously — use the get agent job endpoint to poll for status updates. If the agent edits files successfully, Mintlify creates a pull request and populates theDocumentation Index
Fetch the complete documentation index at: https://mintlify-mintlify-a840f9ae.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
prLink field in the job response.
Rate limits
- 100 uses per Mintlify project per hour
Usage
Authorizations
The Authorization header expects a Bearer token. Use an admin API key (prefixed with mint_). This is a server-side secret key. Generate one on the API keys page in your dashboard.
Path Parameters
Body
The instruction for the agent to execute.
1Response
Agent job created successfully
Unique identifier for the agent job.
Current status of the job. active — the agent is currently processing the prompt. completed — the agent finished successfully and a PR may have been created (check prLink). archived — the job has been archived. failed — the agent encountered an unrecoverable error. Poll until status is completed, archived, or failed.
active, completed, archived, failed Source repository information.
The AI model used for this job.
GitHub pull request URL created by the agent. null while the job is still active or if no files were changed. Populated once the agent successfully creates a PR.
"https://github.com/org/repo/pull/123"
Timestamp when the job was created.
Timestamp when the job was archived.