API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Reference

Generate your own clients

Reading time · 4 minUpdated · 1 May 2026

We do not currently publish official SDKs. Instead, we maintain an OpenAPI 3.1 specification from which you can generate type-safe clients in your preferred language.

OpenAPI specification

The OpenAPI 3.1 spec is provided in the Developer Center as a static download:

The state is the spec versioned with the respective Developer Center build — it reflects the API deployed at build time.

Language Generator Note
TypeScript openapi-typescript Type definitions only, no runtime SDK
TypeScript openapi-fetch Lean fetch wrapper with types
Python openapi-python-client Pydantic models + httpx
Go oapi-codegen net/http or echo
Java openapi-generator Caution: sometimes produces a lot of code
Ruby openapi-generator (ruby template) Production-ready

Example: TypeScript

npm install --save-dev openapi-typescript openapi-fetch
npx openapi-typescript https://developers.codemeta-os.de/openapi.json -o api-types.ts
import createClient from 'openapi-fetch';
import type { paths } from './api-types';

const client = createClient<paths>({
  baseUrl: 'https://os.codemeta.de',
  headers: {
    'X-Tenant-Id': process.env.CODEMETA_TENANT_ID!,
  },
  // Cookie handling via fetch options
  credentials: 'include',
});

const { data, error } = await client.GET('/api/v1/tickets', {
  params: { query: { limit: 10 } },
});

Authentication in generated clients

Whichever generator you use: Codemeta OS uses cookie-based sessions. Your client must keep cookies persistent and send them along.

  • Browser: credentials: 'include'.
  • Node: a cookie jar (e.g. tough-cookie or the --cookie-jar of the fetch implementation in your stack).
  • CI / servers: Store the cookie file encrypted and use a technical account; rotate regularly.

Search