Zamen Intake

API

JSON over HTTPS. Admin calls need Authorization: Bearer zik_…, the key returned once when you create a workspace (only its SHA-256 hash is stored). Public endpoints are rate limited.

Create a workspace

curl -X POST https://app.zamen.tech/api/workspaces -H 'content-type: application/json' \
  -d '{"name":"Hill Law Office","kind":"legal"}'
# kind: legal | events | general  →  { slug, admin_key, intake_form, intake_api }

Add known parties

curl -X POST https://app.zamen.tech/api/w/$SLUG/parties -H "authorization: Bearer $KEY" -H 'content-type: application/json' \
  -d '{"parties":[{"name":"Acme Holdings, LLC","role":"adverse"},{"name":"Jane Roe","role":"client","email":"jane@example.com"}]}'
# role: client | adverse | related | guest | blocked

Public intake (from your own site or the hosted form)

curl -X POST https://app.zamen.tech/api/w/$SLUG/intake -H 'content-type: application/json' \
  -d '{"name":"John Doe","email":"john@example.com","related":["Acme Holdings"],"message":"Lease dispute"}'
# → { ok, reference }   (the submitter never sees the verdict)
# Hosted form: https://app.zamen.tech/f/$SLUG

Review

GET  /api/w/$SLUG                          workspace + counts
GET  /api/w/$SLUG/submissions?verdict=conflict
POST /api/w/$SLUG/submissions/$ID/accept | decline | checkin
POST /api/w/$SLUG/check                    screen a name without storing it
GET  /api/w/$SLUG/parties     DELETE /api/w/$SLUG/parties/$PARTY_ID
GET  /api/w/$SLUG/export.csv

Public demo and status

GET https://app.zamen.tech/api/demo/check?name=Acme%20Holdings&related=Maria%20Gonzalez
GET https://app.zamen.tech/api/health

Verdicts

conflict: an adverse or blocked name matched at ≥ 0.95, or exact email. review: any other match ≥ 0.86 (typos, existing clients, returning guests). clear: no match. Scores are Jaro-Winkler similarity over normalised and token-sorted names.