contextassembles source-cited content within a token budget.searchreturns ranked documentation and web results.contentsretrieves content for selected Mintlify result IDs or result URLs.
The REST API requires an API key for your organization. The public Index MCP server does not require an API key.
Base URL
Send REST API requests to:/context, /search, or /contents.
Authentication
Authenticate each request with an Index API key in theAuthorization header:
mint_us_.
1
Create an Index API key
Open the API keys page in your dashboard and create an Index API key.If this key type is unavailable, your organization does not have access to the Index REST API.
2
Store the key securely
Save the key in a server-side environment variable. Mintlify only displays the complete key when you first create it. Store it securely.
3
Build context
Send your first request to the A successful response includes assembled context with source URLs, the number of results used, and the output token count.
context endpoint:Rate limits
REST API limits apply per Mintlify organization. All API keys in an organization share the same limit:
Requests exceeding either limit return
429 Too Many Requests. Use exponential backoff before retrying.