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. Create an Admin API Key here.
Path Parameters
Body
The name of the Git branch that the agent should work on, will be automatically created if it doesn't exist
A list of previous messages to provide to the agent.
Control whether the pull request is created in draft or non-draft mode. When true, creates a draft pull request. When false, creates a regular (non-draft) 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 (streaming response). X-Session-Id Header is sent back in the response
Streaming response containing the agent job execution details and results.