Use the Data Scoring API to score companies and deals with deterministic outputs.
POST /v1/score endpoint and its interactive playground.Use POST /v1/score to score a company or deal and get a deterministic response with structured reasons.Scoring is idempotent for the same normalized input and algorithm version.Authorization: Bearer <access_token>companies:read for company scoringcases:read for deal scoringX-Workspace-Codeobject_type=company and object_type=dealdimensions, reasons, and explanationscore: integer from 0 to 100band: low, medium, good, or very_gooddimensions: weighted scoring dimensionsreasons: structured supporting reasonsexplanation: compact natural-language summaryalgorithm_version, input_hash, and output_hash for deterministic snapshotscurl -X POST "https://api.sanka.com/v1/score" \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json" \
-d '{
"object_type": "company",
"record_id": "11111111-2222-3333-4444-555555555555"
}'
Company scoring combines firmographic fit and record quality signals.curl -X POST "https://api.sanka.com/v1/score" \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json" \
-d '{
"object_type": "deal",
"record_id": "66666666-7777-8888-9999-000000000000"
}'
Deal scoring combines qualification hygiene, engagement recency, pipeline progression, and associated company quality.{
"data": {
"object_type": "deal",
"record_id": "<record_uuid>",
"snapshot_id": "<snapshot_uuid>",
"algorithm_key": "deal_score_v1",
"algorithm_version": "v1",
"input_hash": "<sha256>",
"output_hash": "<sha256>",
"score": 78,
"band": "good",
"dimensions": [],
"reasons": [],
"explanation": "Strong qualification hygiene with room to improve activity freshness."
},
"message": "ok",
"ctx_id": "<ctx_id>"
}
Use the interactive playground in the OpenAPI reference on this page to test both company and deal requests.