TypeScript SDK
The official AgentGate SDK for TypeScript and Node.js.Installation
Requirements
- Node.js 18 or higher
- TypeScript 4.7+ (for TypeScript projects)
Quick Start
Configuration
Basic Configuration
Full Configuration
Environment Variables
The SDK automatically reads from environment variables:Work Orders
Create Work Order
Get Work Order
Runs
List Runs
Get Run
Cancel Run
Credits
Get Balance
Get Usage
Webhooks
Create Webhook
List Webhooks
Update Webhook
Delete Webhook
Test Webhook
Templates
List Templates
Create Template
Error Handling
The SDK provides typed error classes:TypeScript Types
All types are exported:Related
API Reference
REST API documentation
Error Handling
Error handling patterns