@synthetiq/platform-sdk is the official Node/TypeScript client for the Platform API. It’s the same library the CLI is built on, so anything the CLI does, you can script. Every REST resource in this section has a typed accessor on the client.
Install
The SDK ships from the same private registry as the CLI — see CLI installation for the registry/auth setup, then:Instantiate
| Option | Required | Description |
|---|---|---|
baseUrl | Yes | Platform API base, including /api |
getAccessToken | Yes | Sync or async function returning a bearer token before each request |
extraHeaders | No | Headers sent on every request |
fetch | No | Override fetch (tests, instrumentation) |
getAccessToken is a callback so the SDK never owns credentials: the CLI reads its credentials file, the desktop app its session, and CI does an OIDC token exchange.
Resource accessors
Each accessor maps to a resource in this section:| Accessor | Resource |
|---|---|
sdk.organizations | Organizations |
sdk.members, sdk.roles, sdk.scopes | Members & roles |
sdk.serviceAccounts, sdk.oidcTrusts | Service accounts & OIDC trusts |
sdk.awsConfig | Deployment infrastructure (BYOI) |
sdk.storageConfig | Organizations (storage config) |
sdk.entities | Entities & Versions |
sdk.shares, sdk.publishers, sdk.stores | Sharing |
sdk.productionApps | Production apps |
sdk.deploys | Deployments |
Example
Error handling
Failed requests throwSynthetiqApiError with the HTTP status and the API’s error field:

