import Airstore from '@airstore/sdk'const airstore = new Airstore()const workspace = await airstore.workspaces.create({ name: 'my-workspace' })console.log(workspace.external_id) // "ws_abc123..."
The Airstore TypeScript SDK gives you programmatic control over workspaces, integrations, source views, and the virtual filesystem. Use it to provision Airstore from your backend, automate setup for new users, or build custom workflows on top of the filesystem.
The SDK reads your API key from the AIRSTORE_API_KEY environment variable automatically. You can also pass it directly:
const airstore = new Airstore({ apiKey: 'org_...' })
You’ll find your API key in the Airstore dashboard under Settings > API Keys.
Organization tokens (org_...) can manage multiple workspaces. Workspace tokens (tok_...) are scoped to a single workspace. For backend provisioning, use an organization token.