Install
Authentication
The SDK reads your API key from theAIRSTORE_API_KEY environment variable automatically. You can also pass it directly:
Organization tokens (
org_...) can manage multiple workspaces. Workspace tokens (tok_...) are scoped to a single workspace. For backend provisioning, use an organization token.Quick example
Here’s a typical provisioning flow — create a workspace, connect Gmail, set up a smart folder, and generate a mount token:Configuration
| Option | Env variable | Default | Description |
|---|---|---|---|
apiKey | AIRSTORE_API_KEY | — | Your API key (required) |
baseURL | AIRSTORE_BASE_URL | https://api.airstore.ai/api/v1 | API base URL |
timeout | — | 60000 | Request timeout in ms |
maxRetries | — | 2 | Retries for 429/5xx errors |
What’s next
Create and manage workspaces
Provision workspaces for your users.
Connect integrations
Wire up Gmail, GitHub, and more via OAuth.
Create smart folders
Define smart folders with natural language.
Read files
Browse and read from the virtual filesystem.
Tokens and mounting
Generate tokens for headless CLI mounting.
API Reference
Full method-by-method reference.