Workspace API
Scores
List, read, replace, preview and seed the workspace's ICP Score, Atlas Score and Prospect Score with /workspace/scores.
These routes read and change the workspace’s three scores. Every route costs 0 credits and answers { data, metadata: { credits: 0 } }.
Reads need workspace:read. Writes need workspace:write; a member token must belong to an owner or admin (403 forbidden otherwise), and an API key writes as the workspace.
List scores
GET https://api.parcelengineering.com/api/v1/workspace/scores{ "data": [ { "id": "5c0e9b0a-0001-4a7e-8d2c-000000000001", "entity": "account", "key": "icp", "name": "ICP Score", "buckets": [ { "key": "tier_1", "label": "Tier 1" }, { "key": "tier_2", "label": "Tier 2" }, { "key": "tier_3", "label": "Tier 3" }, { "key": "disqualified", "label": "Not a fit" } ], "criteria": [ { "id": "stakeholder", "label": "A firm type you sell to", "impact": "very_important", "where": { "combinator": "and", "rules": [{ "field": "type", "operator": "in", "value": ["developer"] }] } } ], "version": 4, "is_template": true, "updated_at": "2026-10-28T12:00:00.000Z" } ], "metadata": { "credits": 0 }}Read one score
GET https://api.parcelengineering.com/api/v1/workspace/scores/{key}key is icp, atlas or prospect. An unknown key answers 404 score_not_found.
Replace a score
PUT https://api.parcelengineering.com/api/v1/workspace/scores/{key}{ "bucket_labels": ["Priority", "Secondary", "Watch", "Pass"], "criteria": [ { "id": "market", "impact": "very_important", "where": { "combinator": "and", "rules": [{ "field": "city", "operator": "in", "value": ["Boston", "Cambridge"] }] } }, { "id": "size", "impact": "important", "where": { "combinator": "and", "rules": [{ "field": "units", "operator": ">", "value": 150 }] } }, { "id": "developer", "label": "A Tier 1 developer on the team", "impact": "important", "where": { "combinator": "and", "rules": [ { "field": "firm.role", "operator": "in", "value": ["developer"] }, { "field": "firm.score", "operator": "between", "value": [75, 100] } ] } }, { "id": "recent", "impact": "somewhat_important", "where": { "combinator": "and", "rules": [{ "field": "last_signal", "operator": "withinLast", "value": { "amount": 90, "unit": "days" } }] } }, { "id": "done", "impact": "disqualify", "where": { "combinator": "and", "rules": [{ "field": "stage", "operator": "in", "value": ["completed"] }] } } ]}The body replaces the score’s bucket labels and criteria; the version goes up by one and the score recomputes, with every score after it (accounts, then projects, then contacts). name is optional; the three template scores keep theirs (400 template_rename). Send the version you read as expected_version to refuse a save over someone else’s: a score that moved since answers 409 version_conflict and stays as it was. A save whose recompute fails changes nothing. A rule on a field the dataset does not have, an operator or value the field refuses, an empty condition, a read of this score or a later one, or a View that is missing, holds another dataset or reads a score this one feeds all answer 400 with the reason. A criterion saved without a label gets one written from its rules. The response is the saved score.
Preview a candidate criteria set
POST https://api.parcelengineering.com/api/v1/workspace/scores/{key}/previewBody: { "criteria": [ ... ] }, validated like a save. Nothing is stored.
{ "data": { "total": 4056, "buckets": [ { "key": "priority", "label": "Priority", "count": 34, "samples": [{ "id": "p1e2f3a4-0001-4b7c-9e5d-000000000001", "name": "12 Harbor St", "score": 100 }] }, { "key": "secondary", "label": "Secondary", "count": 2414, "samples": [] }, { "key": "watch", "label": "Watch", "count": 1592, "samples": [] }, { "key": "pass", "label": "Pass", "count": 16, "samples": [] } ], "criteria": [ { "id": "market", "matches": 812 }, { "id": "size", "matches": 1204 }, { "id": "developer", "matches": 96 }, { "id": "recent", "matches": 2210 }, { "id": "done", "matches": 16 } ] }, "metadata": { "credits": 0 }}Each bucket carries up to 20 of its highest-scoring records. criteria counts the records each criterion matches; with no weighted criterion, only the disqualified records are counted.
Seed the three scores
POST https://api.parcelengineering.com/api/v1/workspace/scores/seed{ "markets": ["Boston", "Cambridge"], "sectors": ["multifamily", "mixed_use"], "stages": ["filed", "under_review", "approved"], "stakeholders": ["developer", "architect"], "size_floor": { "kind": "units", "min": 150 }}The answers replace the criteria of all three scores, then everything recomputes. stakeholders are account types the workspace sells to (not agency, law_firm or other); size_floor is optional, by units, sqft or cost. The seeded criteria:
| Score | Criteria (impact) |
|---|---|
| ICP | account type in the stakeholders (very important); works on a project in a market (important); works on a project in a sector, above the floor when it is in units (important); a signal in 180 days (somewhat important) |
| Atlas | city in the markets (very important); use in the sectors (very important); stage in the stages (important); greater than the size floor (important); status active (important); a Tier 1 developer on the team, one firm (important); last signal less than 90 days ago (somewhat important) |
| Prospect | persona of the stakeholder types (very important); firm ICP Score between 75 and 100 (important); between 50 and 74 (somewhat important); has an email (somewhat important) |
The response is the three scores.