<!-- Generated from the canonical OpenPost public page. Do not edit this build artifact. -->

Title: TypeScript SDK
Description: Build OpenPost scripts and services with @getopenpost/sdk.
Canonical: https://docs.openpo.st/automate/sdk
Source: [https://docs.openpo.st/automate/sdk](https://docs.openpo.st/automate/sdk)

# TypeScript SDK

Use `@getopenpost/sdk` for JavaScript or TypeScript services, scripts, and CI jobs. It runs on Node.js 20 or newer, Bun, and Cloudflare Workers. It has no runtime dependencies and uses the platform `fetch` implementation.

The SDK covers workspaces, accounts, Social Sets, Publications, Renditions, media, and jobs. Use the [HTTP API](https://docs.openpo.st/automate/api) when another language or an operation outside the SDK is a better fit.

## Start here

1. [Install and connect](https://docs.openpo.st/automate/sdk/setup)
2. [Create and publish content](https://docs.openpo.st/automate/sdk/publications)
3. [Upload media](https://docs.openpo.st/automate/sdk/media)
4. [Handle jobs, conflicts, and errors](https://docs.openpo.st/automate/sdk/reliability)

## Good uses

- Turn a product event into a draft from an application backend.
- Prepare account-specific Renditions before a release.
- Upload generated images or video and attach their media IDs.
- Schedule content from a CI job, then wait for the durable job result.

Publications created through this package store and return `creation_source: "sdk"`. This distinguishes SDK-created records from raw API, CLI, MCP, web, and automatic posting.
