OpenAPI Specification
The Wellhub Eligibility API is published as a machine-readable OpenAPI 3.0 contract. Use it to import every endpoint into an API client, scaffold a typed SDK, or hand it to an AI coding assistant to generate a working integration.
You can also reference it directly by URL: https://developer-hub.wellhub.com/openapi/eligibility-spec.json
The contract mirrors the endpoints documented in Eligibility via REST API, including authentication via the OAuth 2.0 client credentials flow described in Getting Started.
Import into an API client
Most API clients can import the contract directly from its URL or from the downloaded file.
- Postman — Import → Link and paste the contract URL, or drop the downloaded
eligibility-spec.jsonfile into the import dialog. Postman generates a collection with every request pre-filled. - Insomnia — Create → Import → URL/File and select the contract. You can also copy-paste the JSON content and use the Clipboard option.
- Bruno / Stoplight / Hoppscotch — use the Import collection option and upload the file.
After importing, set two values before sending requests: the server BASE_URL and a bearer token. You generate the token from your OAuth credentials (Client ID and Client Secret), which you create in the Wellhub for Companies portal — see Getting Started for details.
Generate a client with an AI tool
Because the contract is self-describing, you can ask an AI coding assistant to build an integration from it. A typical prompt:
Using this OpenAPI specification, generate a client in
<your language>that runs the full Wellhub eligibility process: request an access token, create a job, add job items, submit the job, and poll the job status until completion.
Provide the spec either by pasting the JSON or by sharing the contract URL, then iterate on the generated client as needed.
Generate a client with code generators
The contract works with standard OpenAPI tooling, such as openapi-generator to produce a typed SDK in your language of choice.
openapi-generator generate \
-i https://developer-hub.wellhub.com/openapi/eligibility-spec.json \
-g <language> \
-o ./wellhub-eligibility-client