← Stakeholder Map
Your token

Stakeholder Map API

Reading the list, placing everyone on the power/interest grid, the engagement plan, the checks and the downloads all run free in the browser and are not part of this API. The API runs the one metered step: writing the stakeholder summary for one project.

Base URL: https://api.skillsafe.ai/v1/app-api. Every response is an envelope {"data": ..., "error": null} or {"data": null, "error": {"code", "message"}}.

The task field

This app has one task. Always send "task": "summary".

taskWhat it doesReply
summaryReads a stakeholder map against a project description and writes each stakeholder's likely needs, concerns and key message, how they relate, the risks (one for every resistant stakeholder with influence 3 or more), next actions and open questions.One JSON object

The input

All values are strings. task, project and people are required; send "" for anything else you do not have.

FieldWhat to send
task"summary"
projectWhat the project or change is, in your own words (at most 1,200 characters). The only source of facts about the project.
peopleOne line per stakeholder (at most 40): id | name | role | influence word (n) | interest word (n) | stance | quadrant, optionally followed by | note: .... Levels are 1 to 5 (3 or more counts as high); stance is supportive, neutral, resistant or not known; quadrant is Manage closely, Keep satisfied, Keep informed or Monitor.
checksThe page's checks, one per line: fix | ..., improve | ... or note | ....
clip_noteEmpty, or a sentence saying how many stakeholders were left out.

The reply

job.output.output is text holding one JSON object: summary (2 to 4 sentences), people (one {id, needs, concerns, message, evidence} per stakeholder; evidence is words copied from project, or empty when the notes come from the role alone), relationships ({a, b, kind, note}, kind one of approval, resources, information, alliance, conflict), risks ({id, risk, mitigation}), actions and questions. Before using it, check that every id is one you sent, that evidence is an exact run of your description, and that no sentence names a person, number, product or time frame your input does not have. The page does exactly that, and shows what it refused.

Worked examples

The three examples on the page, each with the exact input the page sends and a model reply.

CRM rollout

Input:

{
  "task": "summary",
  "project": "We are replacing the sales team's shared spreadsheets with a CRM before the next financial year. Finance wants a cleaner revenue forecast, but the sales reps worry the CRM means more data entry and less time selling. IT has to connect it to the billing system, and Legal must approve how customer data is stored.",
  "people": "p2 | Marcus Lee | CFO | influence high (4) | interest medium (3) | neutral | Manage closely\np4 | Priya Shah | IT lead | influence medium (3) | interest high (4) | neutral | Manage closely\np1 | Dana Ortiz | VP Sales (sponsor) | influence high (4) | interest high (4) | supportive | Manage closely\np5 | Legal | data privacy review | influence high (4) | interest low (2) | not known | Keep satisfied\np3 | Sales reps | daily users | influence low (2) | interest high (4) | resistant | Keep informed\np6 | Customer support | sees customer history | influence low (2) | interest medium (3) | supportive | Keep informed\np7 | Marketing ops | role not given | influence low (2) | interest low (2) | neutral | Monitor",
  "checks": "improve | 1 stakeholder has no stance yet (Legal). Find out where they stand.",
  "clip_note": ""
}

Reply:

{
  "summary": "Your sponsor, Dana, backs the move, while the sales reps who would use the CRM every day are resistant because they expect more data entry and less time selling. Legal has no stance yet and must approve how customer data is stored, so talk to them first, then settle with IT how the billing connection will work.",
  "people": [
    {
      "id": "p2",
      "needs": [
        "A cleaner revenue forecast from the CRM than the shared spreadsheets give",
        "Confidence that the sales data going in is complete and consistent"
      ],
      "concerns": [
        "A forecast that stays unreliable if reps skip data entry",
        "Cost or disruption to the billing connection"
      ],
      "message": "The CRM should give you a cleaner revenue forecast, and your view on what data it must capture will shape the setup.",
      "evidence": "Finance wants a cleaner revenue forecast"
    },
    {
      "id": "p4",
      "needs": [
        "A clear scope for connecting the CRM to the billing system",
        "Early notice of what the CRM needs from billing"
      ],
      "concerns": [
        "Being left to absorb the integration work with little warning",
        "Billing data going wrong if the connection is rushed"
      ],
      "message": "You decide how the CRM connects to the billing system, so we need your view on what is realistic before the next financial year.",
      "evidence": "IT has to connect it to the billing system"
    },
    {
      "id": "p1",
      "needs": [
        "Reps who actually use the CRM instead of the spreadsheets",
        "A smooth route through the Legal approval and the billing connection"
      ],
      "concerns": [
        "Reps feeling the CRM costs them selling time",
        "The project stalling on a decision they do not control"
      ],
      "message": "You are the visible sponsor, so your backing and your call on the trade-offs with the reps will decide whether this lands.",
      "evidence": "replacing the sales team's shared spreadsheets with a CRM before the next financial year"
    },
    {
      "id": "p5",
      "needs": [
        "A clear account of how customer data will be stored",
        "Enough time to review before the CRM goes live"
      ],
      "concerns": [
        "Customer data being stored in a way that creates privacy exposure",
        "Being asked to approve late, with little room to push back"
      ],
      "message": "You hold the approval on how customer data is stored, so here is the plan in short and what we need from you.",
      "evidence": "Legal must approve how customer data is stored"
    },
    {
      "id": "p3",
      "needs": [
        "Data entry that is short and does not eat into selling time",
        "Training and support before the spreadsheets are retired"
      ],
      "concerns": [
        "More data entry and less time selling",
        "Losing a spreadsheet way of working that they know"
      ],
      "message": "Here is what changes in your day, what the CRM takes off your plate, and when the shared spreadsheets go away.",
      "evidence": "the sales reps worry the CRM means more data entry and less time selling"
    },
    {
      "id": "p6",
      "needs": [
        "Easy access to the customer history they rely on",
        "To know when and how their view of customers changes"
      ],
      "concerns": [
        "Customer history being incomplete or hard to find in the new system",
        "Being told about the change only after it happens"
      ],
      "message": "You will see customer history in the CRM, and we will tell you what changes for you and when.",
      "evidence": ""
    },
    {
      "id": "p7",
      "needs": [
        "To know whether the CRM changes anything for them",
        "A short heads-up if they are asked to give input"
      ],
      "concerns": [
        "Being surprised by a change they were not told about"
      ],
      "message": "Here is a short note on the CRM project, so you know where to ask if it affects you.",
      "evidence": ""
    }
  ],
  "relationships": [
    {
      "a": "p1",
      "b": "p5",
      "kind": "approval",
      "note": "The project needs Legal to approve how customer data is stored."
    },
    {
      "a": "p1",
      "b": "p4",
      "kind": "resources",
      "note": "The CRM only works with billing if IT builds the connection."
    },
    {
      "a": "p2",
      "b": "p3",
      "kind": "conflict",
      "note": "Finance wants the data that the reps fear will cost them selling time."
    },
    {
      "a": "p3",
      "b": "p1",
      "kind": "information",
      "note": "The reps are likely to take their cue on the change from their sponsor."
    },
    {
      "a": "p6",
      "b": "p1",
      "kind": "alliance",
      "note": "Customer support is supportive, like the sponsor, and may side with the move."
    }
  ],
  "risks": [
    {
      "id": "p5",
      "risk": "Legal's stance is not known, so a late objection about how customer data is stored could hold up the whole project.",
      "mitigation": "Ask Legal early where they stand and what they need to see before they approve."
    },
    {
      "id": "p3",
      "risk": "The reps are resistant and may keep using the spreadsheets or enter poor data, which would undermine the forecast.",
      "mitigation": "Show the reps how the CRM keeps data entry short, and involve them before the switch."
    }
  ],
  "actions": [
    "Ask Legal where they stand and what they need to approve how customer data is stored.",
    "Walk Dana through the reps' worry about data entry and agree how to answer it before the switch.",
    "Meet Priya Shah in IT to scope the billing system connection and agree what is realistic.",
    "Ask Marcus Lee what the forecast must show so the data reps enter is worth the effort.",
    "Tell Customer support and Marketing ops what changes for them and when."
  ],
  "questions": [
    "Where does Legal stand on how customer data will be stored in the CRM?",
    "Which forecast figures does Marcus Lee need the CRM to produce?",
    "What does Marketing ops do that the CRM could touch?"
  ]
}

On the page, every id is matched against the map, every evidence quote against the project description, and every sentence for numbers, names and time frames the input does not have.

Office move

Input:

{
  "task": "summary",
  "project": "Our company of about 120 people is moving to a new office across town in spring, because the lease on the current building ends in May. The new office is open-plan with fewer desks, so we are introducing hot-desking three days a week. Staff are split: some like the newer building, others dread the longer commute and losing their own desk.",
  "people": "p3 | Employee council | represents staff | influence high (4) | interest very high (5) | resistant | Manage closely\np6 | IT | moves the network and phones | influence medium (3) | interest high (4) | neutral | Manage closely\np1 | Rachel Kim | CEO | influence very high (5) | interest medium (3) | supportive | Manage closely\np2 | Tom Becker | Facilities manager | influence medium (3) | interest very high (5) | supportive | Manage closely\np7 | HR | writes the hot-desking policy | influence medium (3) | interest medium (3) | supportive | Manage closely\np5 | Finance | pays for the fit-out | influence high (4) | interest low (2) | neutral | Keep satisfied\np8 | New landlord | role not given | influence high (4) | interest very low (1) | supportive | Keep satisfied\np4 | All staff | moving to hot-desking | influence low (2) | interest very high (5) | neutral | Keep informed",
  "checks": "fix | Employee council is resistant and has high influence. Plan a 1:1 before the next decision.\nimprove | 5 stakeholders of 8 are in Manage closely. That is more than you can meet often; move some to Keep satisfied or Keep informed.",
  "clip_note": ""
}

Reply:

{
  "summary": "Your sponsor, Rachel, and Tom in Facilities back the move, but the Employee council, which speaks for a split staff, is resistant and holds high influence. Start with the council on the commute and the loss of personal desks, since hot-desking is the change staff will feel most. Five of the eight stakeholders are in Manage closely, so decide which of them you can meet most often.",
  "people": [
    {
      "id": "p3",
      "needs": [
        "A say in how hot-desking is set up before it is decided",
        "Answers for staff who dread the longer commute and losing their own desk"
      ],
      "concerns": [
        "Staff being handed fewer desks without a real voice in the choice",
        "A policy that treats the commute as someone else's problem"
      ],
      "message": "You will see the hot-desking trade-offs before the next decision, and your view on the commute and desks can still change the plan.",
      "evidence": "Staff are split: some like the newer building"
    },
    {
      "id": "p6",
      "needs": [
        "A clear moving plan for the network and phones",
        "Early notice of the layout so the setup fits the open-plan space"
      ],
      "concerns": [
        "Phones or network not working for staff on the first day in the new office",
        "Fixed deadlines because the lease on the current building ends"
      ],
      "message": "You decide with us how the network and phones move, and we will share the layout and the order of the move with you as soon as they are known.",
      "evidence": ""
    },
    {
      "id": "p1",
      "needs": [
        "A move that keeps the company running through the change",
        "A clear read on how staff feel so the choice on hot-desking holds"
      ],
      "concerns": [
        "A split staff turning the move into a morale problem",
        "The lease deadline leaving little room to change course"
      ],
      "message": "You are being asked to back hot-desking and to make that backing visible to a staff group that is split on the move.",
      "evidence": "Staff are split: some like the newer building, others dread the longer commute"
    },
    {
      "id": "p2",
      "needs": [
        "A workable plan for the open-plan space with fewer desks",
        "Timing for the move that fits the end of the current lease"
      ],
      "concerns": [
        "Staff directing their frustration about desks and the commute at Facilities",
        "Dependence on others' decisions, such as the policy and the fit-out budget"
      ],
      "message": "You are central to the move, so we need your input on the desk layout and the order of the move before the next decision.",
      "evidence": "moving to a new office across town in spring"
    },
    {
      "id": "p7",
      "needs": [
        "Clear direction on how hot-desking should work so the policy can be written",
        "Input from staff representatives so the policy is accepted"
      ],
      "concerns": [
        "A policy staff see as unfair to people who lose their own desk",
        "Being asked to write rules before the key decisions are made"
      ],
      "message": "You write the policy that staff will judge the move by, so we want your view on the trade-offs before it is finalised.",
      "evidence": "we are introducing hot-desking three days a week"
    },
    {
      "id": "p5",
      "needs": [
        "A clear view of what the fit-out will cost",
        "Confidence that the open-plan design is the intended spend"
      ],
      "concerns": [
        "Costs growing once the move is under way",
        "Being asked to approve spending at short notice"
      ],
      "message": "The bottom line for you is the fit-out cost, and we will bring it to you before it is committed.",
      "evidence": ""
    },
    {
      "id": "p8",
      "needs": [
        "Clear information on how the project reaches them and when",
        "A single point of contact for questions about the move"
      ],
      "concerns": [
        "Surprises that change what they were told",
        "Being pulled into matters that are not theirs"
      ],
      "message": "You will hear from us if anything about the move needs your attention, and you can expect little else.",
      "evidence": ""
    },
    {
      "id": "p4",
      "needs": [
        "Early and plain information about what hot-desking means day to day",
        "A way to raise worries about the commute and the loss of their own desk"
      ],
      "concerns": [
        "Losing their own desk with little notice",
        "A longer commute with no flexibility to offset it"
      ],
      "message": "Here is what changes for you and when, including how the desks will work, so you can plan your own days.",
      "evidence": "others dread the longer commute and losing their own desk"
    }
  ],
  "relationships": [
    {
      "a": "p7",
      "b": "p1",
      "kind": "approval",
      "note": "The hot-desking policy likely needs the CEO's sign-off before it reaches staff."
    },
    {
      "a": "p2",
      "b": "p5",
      "kind": "resources",
      "note": "Facilities relies on Finance to pay for the fit-out of the new office."
    },
    {
      "a": "p6",
      "b": "p2",
      "kind": "information",
      "note": "IT likely relies on Facilities for the layout and timing it needs to move the network and phones."
    },
    {
      "a": "p3",
      "b": "p7",
      "kind": "conflict",
      "note": "The council's resistance to losing personal desks pulls against a hot-desking policy."
    },
    {
      "a": "p4",
      "b": "p3",
      "kind": "information",
      "note": "Staff are likely to learn what is happening, and have their worries carried forward, through the council that represents them."
    }
  ],
  "risks": [
    {
      "id": "p3",
      "risk": "The council, which is resistant and influential, could turn the split among staff into organised opposition to hot-desking.",
      "mitigation": "Meet the council before the next decision and bring concrete options on the commute and desks rather than a finished plan."
    },
    {
      "id": "p1",
      "risk": "With very high influence and only medium interest, the CEO may not see the staff resistance until it has grown.",
      "mitigation": "Give the CEO a short summary of where staff stand and ask for visible support alongside the council conversation."
    }
  ],
  "actions": [
    "Meet the Employee council before the next decision to hear their worries about the commute and losing personal desks, and to test options for hot-desking.",
    "Brief Rachel Kim on the staff split and ask her to back hot-desking visibly once the council has been heard.",
    "Ask HR to draft the hot-desking policy with input from the council so staff see their concerns in it.",
    "Work with Tom Becker on the desk layout and the order of the move, and share it with IT for the network and phones.",
    "Give Finance a short update on fit-out costs so they stay satisfied without extra meetings."
  ],
  "questions": [
    "Which of the five Manage closely stakeholders can realistically be moved to Keep satisfied or Keep informed?",
    "What could be offered to staff who face the longer commute?",
    "Who signs off on the hot-desking policy?"
  ]
}

On the page, every id is matched against the map, every evidence quote against the project description, and every sentence for numbers, names and time frames the input does not have.

Price increase

Input:

{
  "task": "summary",
  "project": "We are raising the price of our Pro plan by 20% for new customers in January and for existing customers at their next renewal. Support expects more cancellation requests. Our two largest resellers have contracts that lock their price until renewal, and they are unhappy that their own customers will see the new price first.",
  "people": "p5 | Top customers | pay for Pro | influence medium (3) | interest very high (5) | resistant | Manage closely\np6 | Resellers | sell our plans | influence high (4) | interest medium (3) | resistant | Manage closely\np1 | Sam Patel | CEO | influence very high (5) | interest high (4) | supportive | Manage closely\np2 | Head of Product | owns pricing | influence high (4) | interest very high (5) | supportive | Manage closely\np7 | Finance | revenue forecast | influence high (4) | interest medium (3) | supportive | Manage closely\np4 | Support team | handles cancellations | influence low (2) | interest very high (5) | resistant | Keep informed\np3 | Sales team | quotes new deals | influence low (2) | interest high (4) | neutral | Keep informed\np8 | Marketing | announces the change | influence low (2) | interest medium (3) | neutral | Keep informed",
  "checks": "fix | Top customers is resistant and has medium (counted as high) influence. Plan a 1:1 before the next decision.\nfix | Resellers is resistant and has high influence. Plan a 1:1 before the next decision.\nimprove | 5 stakeholders of 8 are in Manage closely. That is more than you can meet often; move some to Keep satisfied or Keep informed.",
  "clip_note": ""
}

Reply:

{
  "summary": "Your sponsor, Sam, and the Head of Product back the increase, and Finance supports it, but the top customers and the resellers are resistant and both carry real influence. The resellers are unhappy that their own customers will see the new price first, so meet them and the top customers one-on-one before the next decision. Support will likely feel the cancellations first.",
  "people": [
    {
      "id": "p5",
      "needs": [
        "Notice of the new price well before their renewal, with a reason for it",
        "Confidence that Pro is still worth the higher cost"
      ],
      "concerns": [
        "A 20% higher bill at renewal",
        "Little say in a change that hits them directly"
      ],
      "message": "Before we decide, tell us what would make the new price at your renewal workable for you.",
      "evidence": "for existing customers at their next renewal"
    },
    {
      "id": "p6",
      "needs": [
        "Clarity on when their own customers see the new price compared with when their contract price changes",
        "A plan so they are not caught out in front of their own customers"
      ],
      "concerns": [
        "Their customers seeing the new price before they do",
        "Their contract price lock being undercut"
      ],
      "message": "We want to agree with you how the timing works, given that your contracts lock your price until renewal.",
      "evidence": "they are unhappy that their own customers will see the new price first"
    },
    {
      "id": "p1",
      "needs": [
        "A price rise that lifts revenue without a wave of cancellations",
        "A clear view of the trade-off with reseller relationships"
      ],
      "concerns": [
        "Pushback from the resellers and top customers",
        "Cancellations outweighing the gain from the higher price"
      ],
      "message": "The decision in front of you is how to keep the price rise while handling the reseller timing and the customer reaction.",
      "evidence": "raising the price of our Pro plan by 20% for new customers in January"
    },
    {
      "id": "p2",
      "needs": [
        "Evidence that Pro still delivers value at the new price",
        "Agreement on the timing for new customers, existing customers and resellers"
      ],
      "concerns": [
        "Customers questioning the value of Pro",
        "The resellers contesting the timing"
      ],
      "message": "As owner of pricing, you have a trade-off to settle between the reseller timing and the plan for new and existing customers.",
      "evidence": "raising the price of our Pro plan by 20% for new customers in January"
    },
    {
      "id": "p7",
      "needs": [
        "A revenue forecast that allows for likely cancellations",
        "Clear timing for when the new price applies to each customer group"
      ],
      "concerns": [
        "Forecast gains eroded by cancellations",
        "Reseller contracts keeping the old price until renewal"
      ],
      "message": "Here is when the new price applies to each group, so you can build the forecast with an allowance for cancellations.",
      "evidence": "Support expects more cancellation requests."
    },
    {
      "id": "p4",
      "needs": [
        "Advance notice and guidance on handling cancellation requests",
        "A clear answer to give customers who ask about the price"
      ],
      "concerns": [
        "More cancellation requests landing on them",
        "Upset customers with no good answer from them"
      ],
      "message": "You will likely see more cancellation requests, so here is what changes, when it changes, and what to say.",
      "evidence": "Support expects more cancellation requests."
    },
    {
      "id": "p3",
      "needs": [
        "The new price to quote on new deals, with talking points",
        "Guidance for prospects already in discussion"
      ],
      "concerns": [
        "Prospects balking at the higher price",
        "Deals stalling while buyers compare options"
      ],
      "message": "From January, new deals are quoted at the new Pro price, and here is how to explain it to buyers.",
      "evidence": "for new customers in January"
    },
    {
      "id": "p8",
      "needs": [
        "The agreed message and timing for the announcement",
        "Separate wording for new customers and existing customers"
      ],
      "concerns": [
        "Announcing before the resellers and top customers have been spoken to",
        "Wording that fuels cancellations"
      ],
      "message": "You will announce the change, so we will share the final wording and timing as soon as they are set.",
      "evidence": ""
    }
  ],
  "relationships": [
    {
      "a": "p6",
      "b": "p2",
      "kind": "conflict",
      "note": "The resellers want their own customers protected from the new price first, while the pricing owner wants the change to land."
    },
    {
      "a": "p5",
      "b": "p6",
      "kind": "alliance",
      "note": "Both are resistant and may side together against the price change."
    },
    {
      "a": "p2",
      "b": "p1",
      "kind": "approval",
      "note": "The pricing owner likely needs the CEO's sign-off on the increase and its timing."
    },
    {
      "a": "p7",
      "b": "p2",
      "kind": "information",
      "note": "Finance relies on the pricing owner for the timing needed in the forecast."
    },
    {
      "a": "p4",
      "b": "p2",
      "kind": "information",
      "note": "Support relies on Product to know what changes and what to tell customers."
    },
    {
      "a": "p8",
      "b": "p2",
      "kind": "information",
      "note": "Marketing relies on the pricing owner for the final announcement details."
    }
  ],
  "risks": [
    {
      "id": "p5",
      "risk": "The top customers may cancel or push back hard at renewal, taking revenue the increase was meant to add.",
      "mitigation": "Hold a one-on-one with them before the next decision and listen for what would make the price acceptable."
    },
    {
      "id": "p6",
      "risk": "The resellers may protest or hold back selling because their own customers see the new price before they do.",
      "mitigation": "Meet them one-on-one before the next decision and agree how the timing works with their locked contracts."
    }
  ],
  "actions": [
    "Meet the Resellers one-on-one before the next decision to agree how the timing works for their locked contracts.",
    "Plan a one-on-one with the Top customers before the next decision to hear what they need at renewal.",
    "Ask Sam and the Head of Product to decide whether the timing for the resellers' customers can change.",
    "Ask Finance to include likely cancellations in the revenue forecast.",
    "Brief the Support team before the change on what to say when customers ask to cancel.",
    "Give Sales and Marketing the final wording and timing once the reseller question is settled."
  ],
  "questions": [
    "Can the new price for the resellers' customers wait until the reseller contracts renew?",
    "Which customers count as top customers, and who owns the relationship with each?",
    "What level of cancellations would make you reconsider the increase?"
  ]
}

On the page, every id is matched against the map, every evidence quote against the project description, and every sentence for numbers, names and time frames the input does not have.

Errors

HTTPWhat to do
401The token is missing, expired or a guest token on a run. Get a personal token on the token page.
402The balance is below what the run reserves. Top up at skillsafe.ai/account/billing.
400The body is not a JSON object of the fields above, or a required field is missing.
429Wait and retry with the same Idempotency-Key.

Step 1 — a tiny client helper

One function that sends JSON and unwraps the {data, error} envelope.

BASE="https://api.skillsafe.ai/v1/app-api"
TOKEN="paste-your-token-here"   # from https://stakeholder-map.skillsafe.ai/tokens.html
api() { # api METHOD PATH [JSON-BODY]
  curl -s -X "$1" "$BASE$2" -H "Content-Type: application/json" \
    ${TOKEN:+-H "Authorization: Bearer $TOKEN"} ${3:+--data "$3"}
}

Step 2 — a token

A guest token is enough for /me and /estimate. A run is metered, so it needs your personal token: sign in on the token page and copy it.

# a guest token (enough for /me and /estimate); a run needs your personal token from /tokens.html
TOKEN=$(curl -s -X POST "$BASE/guest" -H "Content-Type: application/json" -d '{"slug":"stakeholder-map"}' | jq -r '.data.token')

Step 3 — who am I, and my balance

subject_type is guest or user; credits is the balance (1 credit = $0.0001).

api GET /me | jq '.data | {subject_type, credits}' 

Step 4 — price a run for free

/estimate charges nothing and starts no job. hold_credits is the amount reserved while a run is in flight, not the price; the run is charged what it uses.

# input.json: the run input object - {"task": "summary", "project": "We are replacing the sales team's shared spreadsheets with a CRM before the next financial year. Finance wants a cleaner revenue forecast, but the sales reps worry the CRM means more data entry and less time selling. IT has to connect it to the billing system, and Legal must approve how customer data is stored.", "people": "p2 | Marcus Lee | CFO | influence high (4) | interest medium (3) | neutral | Manage closely\np4 | Priya Shah | IT lead | influence medium (3) | interest high (4) | neutral | Manage closely\np1 | Dana Ortiz | VP Sales (sponsor) | influence high (4) | interest high (4) | supportive | Manage closely\np5 | Legal | data privacy review | influence high (4) | interest low (2) | not known | Keep satisfied\np3 | Sales reps | daily users | influence low (2) | interest high (4) | resistant | Keep informed\np6 | Customer support | sees customer history | influence low (2) | interest medium (3) | supportive | Keep informed\np7 | Marketing ops | role not given | influence low (2) | interest low (2) | neutral | Monitor", "checks": "improve | 1 stakeholder has no stance yet (Legal). Find out where they stand.", "clip_note": ""}
api POST /estimate "$(cat input.json)" | jq '.data | {hold_credits, min_credits, model, model_alias, markup_bps, warnings}' 

Step 5 — run it and wait for the job

Send an Idempotency-Key derived from the input: a retry with the same key is never billed twice.

KEY="stakeholder-map:summary:$(shasum -a 256 input.json | cut -c1-16):a1"
JOB=$(curl -s -X POST "$BASE/run" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: $KEY" --data @input.json | jq -r '.data.job_id')
while :; do
  J=$(api GET "/jobs/$JOB"); S=$(echo "$J" | jq -r '.data.status')
  case "$S" in succeeded|failed|cancelled) break;; esac; sleep 2
done
echo "$J" | jq -r '.data.output.output' > reply.json   # one JSON object: summary, people, relationships, risks, actions, questions
echo "$J" | jq '.data | {charged_credits, truncated}' 

Step 6 — or stream it

/run-stream sends Server-Sent Events while the job runs and the finished job at the end.

# Server-Sent Events: tick/delta events while the job runs, then a final event with the job
curl -N -s -X POST "$BASE/run-stream" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: stakeholder-map:summary:$(shasum -a 256 input.json | cut -c1-16):a1" --data @input.json