JavaScript SDK (private beta)
Node.js client with TypeScript declarations, run helpers, and guarded authoring.
Available as a reviewed beta tarball; public npm publication is pending.
Direct REST quickstart
Use HTTP directly from any language, without installing the SDK.
- Create a scoped API key in Erstan.
- List the agents that key can access.
- Start an agent run.
- Poll the run until it completes.
Base URL
Authentication
Public API requests use a workspace API key as a bearer token.Endpoints
See Quickstart for a copy-paste flow.
The API Reference also includes workspace context, Agent/Skill authoring and
history, guarded previews, explicit publication, and durable run traces.
Authoring requires the matching workspace capabilities and scopes; publishing
the docs does not enable it. See the SDK reference
for the JavaScript methods and optional samples for
private-repository usage without a required development workflow.
Build agents over MCP
Install the official Erstan plugin and authorize the Build profile for the recommended browser-based OAuth flow. Advanced automation clients can connect directly toPOST /v1/mcp with an API key holding agents:read plus agents:write. In either case, Erstan rechecks the connection owner’s live access on every call. See Connect a Coding Agent for installation and Build agents over MCP for the complete authoring workflow.
For a complete NetSuite scheduled-script example with email body plus optional file attachment, see NetSuite OCR Quote Intake.