Use scoped API Keys
Grant only the scopes required by the integration path.
Production integrations should protect API Keys, submit workloads idempotently, store execution references, handle asynchronous lifecycle states, and monitor credits and failures.
Grant only the scopes required by the integration path.
Protect retries from duplicate Jobs, duplicate Workflow Runs, and duplicate initial credit charges.
Do not expect the execution request to return a final AI result synchronously.
Treat insufficient credits, conflict responses, and throttling as normal production states.
Disable, revoke, or rotate API Keys immediately if they are exposed.
import { Tenzarch } from "@tenzarchsdk/sdk";
const tenzarch = new Tenzarch({
apiKey: process.env.TENZARCH_API_KEY!,
baseUrl: process.env.TENZARCH_API_URL!,
});The SDK improves ergonomics around service discovery, execution submission, Jobs, pagination, telemetry, usage, idempotency, retries, cancellation, and structured errors. It does not replace backend state.
Developer and user workloads can require Execution Credits before the backend accepts execution demand. Credits are usage accounting for workload execution. They are separate from Node Points, Node Rewards, and any future token-related program.
Read account credit state before presenting a production execution flow.
A credit charge belongs to accepted execution demand, not to every client-side retry attempt.
A repeated request with the same logical intent should reuse the same Idempotency-Key.
Do not mix Execution Credits with Node Points or Node Rewards copy.
Ask the user to reconnect their wallet or use a valid server-side API Key.
Route the user or operator toward credit purchase or balance management.
Do not reuse an idempotency key for materially different request bodies.
Treat capacity unavailability as a real execution-network state, not as a generic application crash.
The integration should preserve jobId, workflowRunId, requestId, error code, and timestamps where available so support and debugging can work from exact execution records.