The SDKs are generated from the same openapi.json that powers this reference. They use Authorization: Bearer $TX_AGENT_KIT_TOKEN and default to https://api.tracelearn.app.

TypeScript

npm install @tx-agent-kit/sdk
import { TxAgentKitApiError, TxAgentKitClient } from "@tx-agent-kit/sdk"

const txagentkit = new TxAgentKitClient({
  token: process.env.TX_AGENT_KIT_TOKEN
})

try {
  const organizations = await txagentkit.organizations.listOrganizations({
    query: { limit: 1 }
  }) as { data: Array<{ id: string; name?: string }> }

  console.log(organizations.data[0])
} catch (error) {
  if (error instanceof TxAgentKitApiError) {
    console.error(error.status, error.body)
  } else {
    throw error
  }
}
The SDK defaults to https://api.tracelearn.app. Pass baseUrl to the client constructor to target a different Trace Learn API environment. See Authentication, Get started, the organizations API reference, or the OpenAPI document.

Python

The Python SDK is published to PyPI as tx-agent-kit-sdk and is currently in preview. The generated client uses the same bearer-token authentication model as the TypeScript SDK and defaults to https://api.tracelearn.app.
pip install tx-agent-kit-sdk
import os
from tx_agent_kit_sdk import TxAgentKitClient

txagentkit = TxAgentKitClient(token=os.environ["TX_AGENT_KIT_TOKEN"])

organizations = txagentkit.organizations.list_organizations(
    query={"limit": 1}
)

print(organizations["data"][0])
The SDK defaults to https://api.tracelearn.app. Pass base_url to the client constructor to target a different Trace Learn API environment.