Developers · SDKs
Typed clients for the scoring API.
First party SDKs for Python and TypeScript, generated from the same schema as the API reference, plus a documented REST surface. Each verifies evidence receipts locally.
Python
For data and compliance teams. Typed models and a receipt verification helper.
TypeScript
For application and platform teams. Works in Node and edge runtimes.
REST
For any other language. Call the scoring API directly over HTTPS with an X-API-Key header.
Quickstart
Score an interaction in Python.
Install, authenticate with an environment key, and score. The client returns a typed result and verifies the envelope signature for you.
Pythonfrom cohesion import Client
client = Client(api_key=env("COHESION_API_KEY"))
result = client.score(interaction=interaction)
# typed, signature verified
print(result.jis) # 82.4
print(result.band) # "proficient"
print(result.article_14) # "7/7"