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

Quickstart

  1. Create a key.

    In Krans, open your avatar menu → Profile → Developer → Create API key, and confirm it is you. Pick a preset (Read only is fine to start), the ventures it may use and an expiry. Copy the key: it is shown once.

  2. Check which ventures it can read.
    export KRANS_API_KEY="krs_live_…"
    curl https://api.krans.ai/v1/ventures -H "Authorization: Bearer $KRANS_API_KEY"
  3. List recent calls.
    curl "https://api.krans.ai/v1/conversations?venture_id=<venture_id>&limit=5" \
      -H "Authorization: Bearer $KRANS_API_KEY"
  4. Make a change (needs a key with conversations:write).
    curl -X PATCH "https://api.krans.ai/v1/conversations/<id>/title" \
      -H "Authorization: Bearer $KRANS_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"title": "Pilot kickoff with Northwind"}'