Hoppa till innehåll
Menu and API reference

Guide

Tools and SDKs

Use the OpenAPI file, check service status, or generate a typed API client.

Generate a client from OpenAPI

The OpenAPI file comes from the same application that serves the API. Feed it to your usual generator to get types, methods and basic validation.

bash
# Python
openapi-python-client generate --url https://firmainfo.se/api/v1/openapi.json

# TypeScript
npx openapi-typescript https://firmainfo.se/api/v1/openapi.json -o firmainfo.d.ts

# Go, C#, Java m.fl.
openapi-generator-cli generate \
  -i https://firmainfo.se/api/v1/openapi.json \
  -g go -o ./firmainfo-client

Import into Postman or Insomnia

Import the OpenAPI URL directly into either tool. Store the key as a protected collection variable and set Authorization: Bearer {{firmainfo_api_key}} at collection level.