Skip to main content
The Simple AI SDK (@simple-ai-lab/sdk) is a typed TypeScript client for the Simple AI API. It works in two places:
  • Inside code actions — preinstalled and authenticated automatically; just import it.
  • In your own applications — install it from npm and authenticate with an API key.

Inside a Code Action

No installation or keys needed. The handler’s client is ready to use:

In Your Own Application

Create an API key in the dashboard under Settings → API Keys, then:

Error Handling

Every non-2xx API response throws a SimpleAIError with the HTTP status, a machine-readable code when available, and the parsed response body:

What’s Included Today

The SDK will grow to cover more of the platform (agents, calls, contacts) — the same client object will gain new namespaces.