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.Endpoint
Request Body
string
required
The name of the Git branch that the agent should work on. Will be automatically created if it doesn’t exist.
array
required
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.
boolean
default:"false"
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.
string
default:"sonnet"
The AI model to use for the agent job. Use
sonnet for faster, cost-effective processing. Use opus for more capable, but slower processing.Response
The endpoint returns a streaming text response containing the agent job execution details and results. The response includes anX-Message-Id header containing the message identifier for the created job.
Authentication
This endpoint requires an admin API key (prefixed withmint_). Generate one on the API keys page in your dashboard.