Create agent job (v1)
Deprecated: use v2 create agent job instead. Creates a new agent job that can generate and edit documentation based on provided messages and branch information.
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 to send requests and handle responses.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
A list of messages to provide to the agent. A default system prompt is always prepended automatically, so you typically only need to include user messages.
The name of the Git branch that the agent should work on. If omitted, the agent generates a branch name based on the message content.
Control whether the pull request is created in draft or non-draft mode. When true, creates a draft pull request. When false (default), creates a regular pull request ready for review.
The AI model to use for the agent job. Use sonnet for faster, cost-effective processing. Use opus for more capable, but slower processing.
sonnet, opus Response
Agent job created successfully. Returns a streaming response with Server-Sent Events.
Server-Sent Events stream containing the agent job execution details and results.