···3636- generates TypeScript interfaces and SDKs
3737- Fetch API, Axios, Nuxt, Angular, Node.js, and XHR clients available
3838- plugin ecosystem to reduce third-party boilerplate
3939+- [platform](https://heyapi.dev/openapi-ts/integrations) for automating codegen builds
4040+4141+## Platform
4242+4343+Our platform for OpenAPI specifications is now available. Automatically update your code when the APIs it depends on change. [Find out more](https://heyapi.dev/openapi-ts/integrations).
39444045## Sponsors
4146···4651 <img alt="Stainless logo" height="50" src="https://heyapi.dev/images/stainless-logo-wordmark-480w.jpeg" />
4752 </a>
4853</p>
4949-5050-## GitHub Integration (coming 2025)
5151-5252-Automatically update your code when the APIs it depends on change. [Find out more](https://heyapi.dev/openapi-ts/integrations.html).
53545455## Quick Start
5556
···2929- generates TypeScript interfaces and SDKs
3030- Fetch API, Axios, Nuxt, Angular, Node.js, and XHR clients available
3131- plugin ecosystem to reduce third-party boilerplate
3232+- [platform](https://heyapi.dev/openapi-ts/integrations) for automating codegen builds
32333334## Quick Start
3435
+166-13
docs/openapi-ts/integrations.md
···11---
22-title: Integrations
33-description: Automate your client generation.
22+title: Hey API Platform
33+description: Automate your client generation with our OpenAPI specifications storage.
44---
5566-# Integrations <span data-soon>Soon</span>
66+# Hey API Platform
7788::: warning
99-GitHub integration is not publicly available yet. We are gathering feedback from beta testers to ensure the final product meets our quality standards. To express your interest in joining the beta test, please open an issue on [GitHub](https://github.com/hey-api/upload-openapi-spec/issues).
99+This feature is in development! :tada: Try it out and provide feedback on [GitHub](https://github.com/orgs/hey-api/discussions/1773).
1010:::
11111212-Integrations allow you to automate your client generation workflow. Create dependency links between your clients and APIs, and watch the magic unfold. While we prefer to use `@hey-api/openapi-ts` for generating clients, you can use any codegen.
1212+You can automate your client generation with our platform thanks to reproducible builds. Create dependency links between your clients and APIs, and watch the magic unfold. It's completely language and codegen agnostic.
1313+1414+## Features
1515+1616+- API version history
1717+- real-time updates
1818+- reproducible builds
1919+- language and codegen agnostic (TypeScript/Python/Go/Java/etc codegens are welcome)
2020+2121+## Upload Specifications
2222+2323+Before you can generate clients, you must publish your OpenAPI specifications to Hey API.
2424+2525+### Prerequisites
2626+2727+1. Create a **free account** with [Hey API](https://app.heyapi.dev/).
2828+1. Create a new **organization** and **project** for your API provider. We recommend your naming matches your GitHub structure as it will be referenced by API clients. For example, we are using **hey-api/backend** for the platform.
2929+1. Inside your project, go to _Integrations_ > _APIs_ and generate an **API key**. Keep this value secret, it will be used to upload files.
3030+3131+### Add GitHub CI workflow
13321414-## Upload OpenAPI Spec
3333+Once you have your API key, you can start uploading OpenAPI specifications on every API build. We'll use our [GitHub Action](https://github.com/marketplace/actions/upload-openapi-spec-by-hey-api), but you can also make the API call manually if you're not using GitHub.
15341616-First, you need to configure your API build workflow to send us OpenAPI specifications. This can be done by adding our [hey-api/upload-openapi-spec](https://github.com/marketplace/actions/upload-openapi-spec-by-hey-api) GitHub Action into your CI workflow.
3535+Create a new GitHub workflow or add an upload step to an existing workflow inside your API codebase. The example below will upload your OpenAPI specification to Hey API on every pull request and push to the `main` branch.
17361837```yaml
1938name: Upload OpenAPI Specification
···2241 push:
2342 branches:
2443 - main
4444+ pull_request:
25452646jobs:
2747 upload-openapi-spec:
···3151 uses: actions/checkout@v4
32523353 - name: Upload OpenAPI spec
3434- uses: hey-api/upload-openapi-spec@v1
5454+ uses: hey-api/upload-openapi-spec@v1.3.0
3555 with:
3636- hey-api-token: ${{ secrets.HEY_API_TOKEN }}
3737- path-to-openapi: path/to/openapi.json
5656+ path-to-file: path/to/openapi.json
5757+ tags: optional,custom,tags
5858+ env:
5959+ API_KEY: ${{ secrets.HEY_API_TOKEN }}
6060+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6161+```
6262+6363+### Inputs
6464+6565+To successfully upload an OpenAPI specification, you need to provide the following inputs (see `with` in the example above)
6666+6767+#### `path-to-file`
6868+6969+A relative path to your OpenAPI file within the repository. Note that you might need an additional step in your GitHub workflow to generate this file (see [FastAPI example](https://fastapi.tiangolo.com/how-to/extending-openapi/#generate-the-openapi-schema)).
7070+7171+#### `tags` (optional)
7272+7373+A comma-separated string value representing any custom tags you wish to add to your OpenAPI specification.
7474+7575+### Environment Variables
7676+7777+In addition to the required `path-to-file` input, you must provide the following environment variables.
7878+7979+#### `API_KEY`
8080+8181+This is the project API key you obtained from [Hey API](https://app.heyapi.dev/).
8282+8383+::: warning
8484+Personal API keys can't be used to upload specifications.
8585+:::
8686+8787+#### `GITHUB_TOKEN`
8888+8989+This variable will be available inside your workflow by default. It's used to
9090+fetch information about your repository, i.e. default branch.
9191+9292+## Generate Clients
9393+9494+You can generate clients from public projects or any private projects you can access. The setup is largely the same, you want to configure the input path used by your codegen.
9595+9696+::: code-group
9797+9898+```sh [Hey API]
9999+npx @hey-api/openapi-ts \
100100+ -i https://get.heyapi.dev/hey-api/backend \
101101+ -o src/client \
102102+ -c @hey-api/client-fetch
103103+```
104104+105105+```sh [OpenAPI TypeScript]
106106+npx openapi-typescript \
107107+ https://get.heyapi.dev/hey-api/backend \
108108+ -o schema.ts
109109+```
110110+111111+```sh [Orval]
112112+npx orval \
113113+ --input https://get.heyapi.dev/hey-api/backend \
114114+ --output ./src/client.ts
115115+```
116116+117117+```sh [Other]
118118+other-cli \
119119+ --input https://get.heyapi.dev/hey-api/backend \ # [!code ++]
120120+ --output refer/to/other/tools/docs
121121+```
122122+123123+:::
124124+125125+By default, we preserve the current behavior and return the latest specification. Let's have a closer look at the input path and change that.
126126+127127+## Get API
128128+129129+As you can deduce from the examples above, the default command for fetching OpenAPI specifications looks like this.
130130+131131+```
132132+https://get.heyapi.dev/<organization>/<project>
133133+```
134134+135135+If you created an organization `foo` with project `bar` earlier, your URL would look like this.
136136+137137+```
138138+https://get.heyapi.dev/foo/bar
139139+```
140140+141141+### Auth
142142+143143+Projects are private by default, you will need to be authenticated to download OpenAPI specifications. We recommend using [project API keys](#prerequisites) in CI workflows and [personal API keys](https://app.heyapi.dev/settings/user/apis) for local development.
144144+145145+Once you have your API key, you can authenticate the request using the `Authorization` header or `api_key` query parameter.
146146+147147+```
148148+https://get.heyapi.dev/foo/bar?api_key=<my_api_key>
149149+```
150150+151151+Congratulations on fetching your first OpenAPI specification! 🎉
152152+153153+### Filters
154154+155155+The default behavior returns the last uploaded specification. This might not be what you want. You can use a range of filters to narrow down the possible specifications, or pin your builds to an exact version.
156156+157157+#### `branch`
158158+159159+You can fetch the last build from branch by providing the `branch` query parameter.
160160+161161+```
162162+https://get.heyapi.dev/foo/bar?branch=production
38163```
391644040-This step requires you to register with us in order to obtain a Hey API token. Please follow the instructions in our [GitHub Action](https://github.com/marketplace/actions/upload-openapi-spec-by-hey-api) to complete the setup. Once you have your APIs configured, you're ready to connect your clients.
165165+#### `commit_sha`
411664242-## Configure Clients
167167+You can fetch an exact specification by providing the `commit_sha` query parameter. This will always return the same file.
168168+169169+```
170170+https://get.heyapi.dev/foo/bar?commit_sha=0eb34c2024841ce95620f3ec02a2fea164ea4e9d
171171+```
172172+173173+#### `tags`
431744444-More information will be provided as we finalize the tooling.
175175+If you're tagging your specifications with [custom tags](#tags-optional), you can use them to filter the results. When you provide multiple tags, only the first match will be returned.
176176+177177+```
178178+https://get.heyapi.dev/foo/bar?tags=optional,custom,tags
179179+```
180180+181181+#### `version`
182182+183183+Every OpenAPI document contains a required version field. You can use this value to fetch the last uploaded specification matching the value.
184184+185185+```
186186+https://get.heyapi.dev/foo/bar?version=1.0.0
187187+```
188188+189189+## Feedback
190190+191191+We'd love your feedback! You can contact us on social media (search Hey API), [email](mailto:lubos@heyapi.dev), or [GitHub](https://github.com/orgs/hey-api/discussions/1773).
192192+193193+## Pricing
194194+195195+The platform is currently in beta with our focus being on delivering a great experience. We plan to announce pricing once we have gathered enough data around usage patterns. However, we can guarantee there will always be a free plan available. Our mission to bring the finest tooling for working with APIs remains unchanged.
196196+197197+<!--@include: ../sponsors.md-->
+6-5
packages/client-axios/README.md
···1515- granular request and response customization options
1616- minimal learning curve thanks to extending the underlying technology
1717- support bundling inside the generated output
1818+- [platform](https://heyapi.dev/openapi-ts/integrations) for automating codegen builds
1919+2020+## Platform
2121+2222+Our platform for OpenAPI specifications is now available. Automatically update your code when the APIs it depends on change. [Find out more](https://heyapi.dev/openapi-ts/integrations).
18231924## Documentation
2025···3035 </a>
3136</p>
32373333-## GitHub Integration (coming soon)
3434-3535-Automatically update your code when the APIs it depends on change. [Find out more](https://heyapi.dev/openapi-ts/integrations.html).
3636-3738## Migration Guides
38393939-[OpenAPI Typescript Codegen](https://heyapi.dev/openapi-ts/migrating.html#openapi-typescript-codegen)
4040+[OpenAPI Typescript Codegen](https://heyapi.dev/openapi-ts/migrating#openapi-typescript-codegen)
+6-5
packages/client-fetch/README.md
···1515- granular request and response customization options
1616- minimal learning curve thanks to extending the underlying technology
1717- support bundling inside the generated output
1818+- [platform](https://heyapi.dev/openapi-ts/integrations) for automating codegen builds
1919+2020+## Platform
2121+2222+Our platform for OpenAPI specifications is now available. Automatically update your code when the APIs it depends on change. [Find out more](https://heyapi.dev/openapi-ts/integrations).
18231924## Documentation
2025···3035 </a>
3136</p>
32373333-## GitHub Integration (coming soon)
3434-3535-Automatically update your code when the APIs it depends on change. [Find out more](https://heyapi.dev/openapi-ts/integrations.html).
3636-3738## Migration Guides
38393939-[OpenAPI Typescript Codegen](https://heyapi.dev/openapi-ts/migrating.html#openapi-typescript-codegen)
4040+[OpenAPI Typescript Codegen](https://heyapi.dev/openapi-ts/migrating#openapi-typescript-codegen)
+6-5
packages/client-next/README.md
···1616- granular request and response customization options
1717- minimal learning curve thanks to extending the underlying technology
1818- support bundling inside the generated output
1919+- [platform](https://heyapi.dev/openapi-ts/integrations) for automating codegen builds
2020+2121+## Platform
2222+2323+Our platform for OpenAPI specifications is now available. Automatically update your code when the APIs it depends on change. [Find out more](https://heyapi.dev/openapi-ts/integrations).
19242025## Documentation
2126···3136 </a>
3237</p>
33383434-## GitHub Integration (coming soon)
3535-3636-Automatically update your code when the APIs it depends on change. [Find out more](https://heyapi.dev/openapi-ts/integrations.html).
3737-3839## Migration Guides
39404040-[OpenAPI Typescript Codegen](https://heyapi.dev/openapi-ts/migrating.html#openapi-typescript-codegen)
4141+[OpenAPI Typescript Codegen](https://heyapi.dev/openapi-ts/migrating#openapi-typescript-codegen)
+6-5
packages/client-nuxt/README.md
···1616- granular request and response customization options
1717- minimal learning curve thanks to extending the underlying technology
1818- support bundling inside the generated output
1919+- [platform](https://heyapi.dev/openapi-ts/integrations) for automating codegen builds
2020+2121+## Platform
2222+2323+Our platform for OpenAPI specifications is now available. Automatically update your code when the APIs it depends on change. [Find out more](https://heyapi.dev/openapi-ts/integrations).
19242025## Documentation
2126···3136 </a>
3237</p>
33383434-## GitHub Integration (coming soon)
3535-3636-Automatically update your code when the APIs it depends on change. [Find out more](https://heyapi.dev/openapi-ts/integrations.html).
3737-3839## Migration Guides
39404040-[OpenAPI Typescript Codegen](https://heyapi.dev/openapi-ts/migrating.html#openapi-typescript-codegen)
4141+[OpenAPI Typescript Codegen](https://heyapi.dev/openapi-ts/migrating#openapi-typescript-codegen)
+5-4
packages/openapi-ts/README.md
···3636- generates TypeScript interfaces and SDKs
3737- Fetch API, Axios, Nuxt, Angular, Node.js, and XHR clients available
3838- plugin ecosystem to reduce third-party boilerplate
3939+- [platform](https://heyapi.dev/openapi-ts/integrations) for automating codegen builds
4040+4141+## Platform
4242+4343+Our platform for OpenAPI specifications is now available. Automatically update your code when the APIs it depends on change. [Find out more](https://heyapi.dev/openapi-ts/integrations).
39444045## Sponsors
4146···4651 <img alt="Stainless logo" height="50" src="https://heyapi.dev/images/stainless-logo-wordmark-480w.jpeg" />
4752 </a>
4853</p>
4949-5050-## GitHub Integration (coming 2025)
5151-5252-Automatically update your code when the APIs it depends on change. [Find out more](https://heyapi.dev/openapi-ts/integrations.html).
53545455## Quick Start
5556