The AgentRail TypeScript SDK (Documentation Index
Fetch the complete documentation index at: https://agentrail.app/docs/llms.txt
Use this file to discover all available pages before exploring further.
@agentrail-core/sdk) is a typed HTTP client for the Task Lifecycle API. It requires Node.js 18 or newer because it uses the native fetch API.
Install from npm
Install from the local repository
If you need to work against the SDK before a package release, install it directly from the repository source:You must run
npm run build in the SDK directory first. The install step points your project at the compiled output.Named exports
The package exposes the following named exports:| Export | Description |
|---|---|
AgentRailClient | The main HTTP client class |
parseWebhookEvent | Verifies and parses an inbound webhook payload |
verifyWebhookSignature | Lower-level signature verification |
AgentRailError | Base error class |
ConflictError | Thrown on 409 responses |
InsufficientScopeError | Thrown on 403 responses |
NotFoundError | Thrown on 404 responses |
RateLimitError | Thrown on 429 responses |
UnauthorizedError | Thrown on 401 responses |
ValidationError | Thrown on 422 responses |
Next steps
- Configure authentication — set up your API key and base URL
- Client methods — list tasks, submit work, and ship
- Stream events — subscribe to real-time task lifecycle events
- Verify webhooks — validate inbound webhook deliveries
.png?fit=max&auto=format&n=TNCV8lxzL1ij3U4N&q=85&s=7345b71aa1c450c74f35b67c2655fc43)