Qovery OpenAPI TypeScript Axios Client

1.1.864 · active · verified Tue Apr 21

qovery-typescript-axios is an OpenAPI client library specifically generated for interacting with the Qovery API, leveraging the popular Axios HTTP client. The package provides a strongly-typed TypeScript interface, automatically resolving type definitions via `package.json` for TypeScript projects, while also being fully compatible with JavaScript environments. It supports modern module systems like ES6 modules and CommonJS, and is designed for use in Node.js, Webpack, and Browserify environments. The current stable version is 1.1.864, with recent minor releases indicating active development. Its core differentiation lies in being a pre-generated, opinionated client for the Qovery platform, saving developers the effort of manual API integration and schema management by providing ready-to-use API services and models based on the Qovery OpenAPI specification.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to configure the Qovery client with an API token and fetch a list of applications. It shows the basic setup for authentication and making an API call, including error handling.

import { Configuration, ApplicationsApi } from 'qovery-typescript-axios';

const API_TOKEN = process.env.QOVERY_API_TOKEN ?? 'YOUR_QOVERY_API_TOKEN';

if (!API_TOKEN || API_TOKEN === 'YOUR_QOVERY_API_TOKEN') {
  console.error('Please set the QOVERY_API_TOKEN environment variable or replace the placeholder.');
  process.exit(1);
}

const configuration = new Configuration({
  basePath: 'https://api.qovery.com',
  accessToken: API_TOKEN,
});

const applicationsApi = new ApplicationsApi(configuration);

async function listMyApplications() {
  try {
    // Assuming a method like 'listApplication' exists and takes optional parameters.
    // The actual method name and parameters depend on the Qovery OpenAPI spec.
    const response = await applicationsApi.listApplication(
      'organization_id_example',
      'project_id_example',
      'environment_id_example',
      0, // offset
      10 // limit
    );
    console.log('Successfully fetched applications:', response.data);
  } catch (error) {
    if (error.isAxiosError) {
      console.error('API Error:', error.response?.data || error.message);
    } else {
      console.error('An unexpected error occurred:', error);
    }
  }
}

listMyApplications();

view raw JSON →