Developers
  • Try “rate limits”, “merge contacts” or “search_conversations”.
Browse the docs
Get started
.md

Working the review queue

What Krans cannot settle on its own waits in the review queue for a person: who is speaking on a call, which company a call is with, which deal a call belongs to, contacts that may be one person, and imported recordings held before processing. The API and MCP can work the whole queue, so an agent can prepare each answer and a person approves it.

  1. List the queue.

    GET /review (list_review_items, review:read) returns items newest first, up to 100 per kind, in a compact view with the ids you need. Narrow it with kind, mine (items about you), quick (items one confident yes answers) or unseen; counts_only returns just the numbers. Each item's id is <kind>:<id>, e.g. speaker:<slot id>.

    curl "https://api.krans.ai/v1/review?venture_id=<venture_id>&kind=speaker&quick=true" \
      -H "Authorization: Bearer $KRANS_API_KEY"
  2. Read one item.

    GET /review/items/{item_id} (get_review_item) returns everything needed to decide, plus next_steps: the exact calls that answer it, with arguments filled in. Pick one and replace its <placeholders>. An item answered in the meantime reads as not_found.

  3. Answer it (review:write) with the call for its kind.
KindAnswer withChoices
speakerPOST /review/speakers/answer
answer_review_speaker
confirm the suggestion, link to contact_id, or not_a_person (noise, music, a bot, a duplicate voice).
accountPOST /review/accounts/answer
answer_review_account
Exactly one of account_id, new_account (name, optional domain) or none: true for a call with no outside company.
threadPOST /review/conversations/{id}/thread
answer_review_thread
confirm it belongs in from_thread_id, move it to thread_id (a thread of the same account), or start a new deal.
recordingapprove_review / dismiss_reviewProcess the held recording, or delete it before processing. Only its creator or a venture admin.
duplicatemerge_contacts / dismiss_duplicate_contactMerge the records (contacts:write plus destructive) or record that they are different people.
curl -X POST https://api.krans.ai/v1/review/speakers/answer \
  -H "Authorization: Bearer $KRANS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"item_id": "speaker:<slot id>", "answer": "link", "contact_id": "<contact_id>"}'
  • One answer covers every copy of a meeting. When the same meeting was recorded more than once, speaker and account answers apply to each copy. A speaker answer also settles other calls where the same person is suggested (twin_slots).
  • Answers have effects. Summaries and learnings refresh when a speaker changes; an account answer recomputes signals and re-threads the call.
  • Partial failures. Copies are answered one by one. If one fails you get the error: answered speaker slots leave the queue and an unanswered copy comes back as its own item; an account item stays in the queue. A new_account is created first, so on a retry send its account_id.
  • Avoid duplicates. Before creating an account, check search_accounts and the item's evidence. GET /review/conversations/{id}/account-evidence (get_review_account_evidence) shows what the call says about who the outside people work for; get_review_item already includes it for account items. A taken domain fails with domain_taken: use that account instead.
  • Seen state is per person: POST /review/seen (mark_review_seen) changes only yours. Held recordings are listed only to their creator and venture admins.