Sync your OpenAPI Specification
Pull your latest OpenAPI Specification into your Fern Folder automatically.
If you host your OpenAPI Specification at a publicly available URL, you can have Fern programmatically fetch the latest spec on a preconfigured cadence through the sync-openapi GitHub Action. This ensures your committed OpenAPI spec stays up to date with your live API.
Setup
Configure the origin URL
Add the origin field to your generators.yml to specify where your OpenAPI spec is hosted:
generators.yml
Add a GitHub token
Generate a fine-grained personal access token with read/write access to your repository.
By default, this will create daily PRs with API spec updates to the repo containing your Fern folder. If you would like to adjust the frequency, learn more about GitHub’s schedule event.
For detailed configuration options and other use cases, see the sync-openapi GitHub Action README.