Rate limits
The assistant API has the following limits:- 10,000 uses per key per month
- 10,000 requests per Mintlify organization per hour
- 10,000 requests per IP per day
Suggested usage
For best results, use the useChat hook from ai-sdk to send requests and handle responses. You can setfp
, threadId
, and filter
in the body
field of the options parameter passed to the hook.Authorizations
The Authorization header expects a Bearer token. See the Assistant API Key documentation for details on how to get your API key.
Path Parameters
The domain identifier from your domain.mintlify.app
URL. Can be found in the top left of your dashboard.
Body
application/json
Response
200 - application/json
Message generated successfully
Response object that streams formatted data stream parts with the specified status, headers, and content. This matches what is expected from the AI SDK as documented at ai-sdk.dev/docs/ai-sdk-ui/streaming-data. Instead of writing your own parser, it is recommended to use the useChat hook from ai-sdk as documented here.