Skip to main content

The TypeScript SDK

The official TypeScript SDK for accessing agentic markdown documentation data from The Prompting Company platform. Build powerful applications that leverage your organization’s documentation with full type safety and excellent developer experience.

Getting Started

Get up and running with the SDK in just a few minutes.

Start with the SDK

Install the SDK and configure your development environment.

Key Features

Everything you need to integrate your documentation data.

Simple Integration

Access your documentation data with just a few lines of code:
import tpc from "@promptingcompany/sdk";

const client = new tpc({
  productSlug: "your-product-slug",
  organizationSlug: "your-organization-slug",
});

const doc = await client.document.getByPath("en-us/contact");

if (doc.ok) {
  console.log(doc.data?.content);
}

Next Steps

View the Complete Guide

Learn about all SDK features and capabilities.