Skip to main content
The Airstore class is the entry point for all SDK operations. It exposes resource namespaces (workspaces, connections, views, tokens, members, oauth, fs) that map to the Airstore REST API.

Constructor

Creates a new SDK client. Throws AirstoreError if no API key is provided.

ClientOptions

RequestOptions

Every resource method accepts RequestOptions as the last argument to override client-level settings for a single call:

ResponseMeta

Every response object has a non-enumerable lastResponse property with HTTP metadata:

rawRequest()

Escape hatch for endpoints not yet covered by the SDK:
Parameters Returns Promise<Response> — the raw Fetch API response.

Resource namespaces

Retry behavior

The client automatically retries on status codes 408, 409, 429, 500, 502, 503, and 504. Retries use exponential backoff starting at 500ms, capped at 8 seconds, with jitter. If the response includes a Retry-After or retry-after-ms header, the client respects that instead. Set maxRetries: 0 to disable retries entirely.