decision control
Integrate

Client SDKs

TypeScript, Python, Java, .NET and webhook signature verification.

Applications can call the execution API through an SDK instead of raw HTTP. Every SDK reuses the same types generated from the OpenAPI document, so the request and response shapes stay in step.

TypeScript / JavaScript

@decision-control/client is hand-written over types generated from the OpenAPI document (bun run sdk:generate; a test fails when they fall behind). It ships typed errors, retries on 429 only, and webhook signature verification.

Python

decision-control is the Python SDK, hand-written over the same generated types, with the same guarantees.

Java / .NET

Java and .NET clients are generated with openapi-generator from the trimmed execution document (the management surface uses session cookies and is not on the SDKs).

Webhook signatures

Webhooks are signed with the webhook's own secret in x-decision-control-signature: t=<unix>,v1=<HMAC-SHA256("t.body")>. Verify the signature exactly the way you would verify any HMAC:

  1. Read t and v1 from the header.
  2. Compute HMAC-SHA256(secret, "<t>.<raw body>").
  3. Compare it to v1 in constant time.

The generated SDKs ship a helper for that. Reject any request older than a few minutes — t is the defense against replay.

On this page