Code Generation
Generate client libraries from the OpenAPI specification to accelerate your integration.
First, download the OpenAPI specification from the OpenAPI Specification page.
Generating Client Code
Use your preferred code generation tool with the downloaded spec. Below are examples for popular tools and languages.
C# / .NET (Microsoft Kiota)
Microsoft Kiota generates type-safe API clients with built-in authentication and serialization.
# Install Kiota
dotnet tool install --global Microsoft.OpenApi.Kiota
# Generate client
kiota generate \
--language CSharp \
--openapi thirdfort-api-v1alpha2.yaml \
--class-name ThirdfortClient \
--namespace-name Thirdfort.Api \
--output ./src/Thirdfort.Api
TypeScript (openapi-generator)
# Install openapi-generator
npm install @openapitools/openapi-generator-cli -g
# Generate TypeScript Fetch client
openapi-generator-cli generate \
-i thirdfort-api-v1alpha2.yaml \
-g typescript-fetch \
-o ./src/generated/thirdfort
Python (openapi-generator)
# Generate Python client
openapi-generator-cli generate \
-i thirdfort-api-v1alpha2.yaml \
-g python \
-o ./thirdfort_client \
--additional-properties=packageName=thirdfort
Using Generated Code
Generated clients typically require configuring:
- Base URL -
https://api.thirdfort.dev/client/api(nonproduction) orhttps://api.thirdfort.com/client/api(production) - Authentication - Bearer token in Authorization header
note
Thirdfort does not provide pre-built SDKs. Use the OpenAPI spec with your preferred code generation tool.