Prerequisites
- Node.js 18 or later
- An AiQL API key from the Dashboard
Install
Authenticate
Create a client with your API key. Read the key from an environment variable instead of hardcoding it.Workspaces
Ingestions
Queries
Tools
Error handling
The SDK throwsAiQLError for failed requests. Inspect statusCode and message to handle specific cases.