Installation
Quick Start
Constructor
| Parameter | Type | Required | Description |
|---|---|---|---|
baseUrl | string | Yes | Server URL (e.g., https://api.9dlabs.xyz) |
apiKey | string | No | API key for X-API-Key header |
Methods
ingest(payload)
Store an artifact. Accepts the same fields as POST /v1/ingest.
contextPack(payload)
Retrieve a context pack. Accepts the same fields as POST /v1/context-pack.
feedback(payload)
Submit a correction event. Accepts the same fields as POST /v1/feedback.
receipt(receiptId)
Get a decision receipt by ID.
Error Handling
The client throws standardError objects with the HTTP status code and response body: