Files
mintlify__docs/api/agent/create-agent-job.mdx
mintlify[bot] 2016c35157 Audit and improve SEO frontmatter across docs (#5649)
Generated-By: mintlify-agent

Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
2026-05-02 04:32:23 +00:00

24 lines
923 B
Plaintext

---
title: "Create agent job (v1)"
openapi: /admin-openapi.json POST /v1/agent/{projectId}/job
keywords: [ "agent job", "create", "automation", "automate" ]
tag: "deprecated"
---
<Warning>This endpoint is deprecated. Use the [v2 create agent job](/api/agent/v2/create-agent-job) endpoint instead.</Warning>
This endpoint creates an agent job based on provided messages and branch information. The job executes asynchronously and returns a streaming response with the execution details and results.
If a branch doesn't exist, the agent creates one. If files are edited successfully, a pull request is automatically created at the end of the job.
## Rate limits
The agent API has the following limits:
- 100 uses per Mintlify project per hour
## Suggested usage
For best results, use the [useChat hook from ai-sdk](https://ai-sdk.dev/docs/reference/ai-sdk-ui/use-chat#usechat) to send requests and handle responses.