You’ll need an active API key. See Authentication to get one.
1. Create a generation
POST to a generation endpoint. A successful call returns 202 Accepted with a job_id.
Response
2. Poll until done
PollGET /jobs/{job_id} until status is done or failed.
Response
Next steps
Clone your docs locally
Clone your docs locally
During the onboarding process, you created a GitHub repository with your docs content if you didn’t already have one. You can find a link to this repository in your dashboard.To clone the repository locally so that you can make and preview changes to your docs, follow the Cloning a repository guide in the GitHub docs.
Start the preview server
Start the preview server
- Install the Mintlify CLI:
npm i -g mint - Navigate to your docs directory and run:
mint dev - Open
http://localhost:3000to see your docs live!
Install our GitHub app
Install our GitHub app
Install the Mintlify GitHub app from your dashboard.Our GitHub app automatically deploys your changes to your docs site, so you don’t need to manage deployments yourself.
Update your site name and colors
Update your site name and colors
For a first change, let’s update the name and colors of your docs site.
- Open
docs.jsonin your editor. - Change the
"name"field to your project name. - Update the
"colors"to match your brand. - Save and see your changes instantly at
http://localhost:3000.
Image-to-image
Transform existing images from URLs.
Webhooks
Get notified instead of polling.