Sign in through the browser flow (/api/auth/login); the API uses the session cookie. Unauthenticated calls get 401 {"error":"sign_in_required","login_url":"…"}
AUTH_MODE=local
The session cookie (from POST /api/auth/local) or, without one, an x-user: <user id> header. An unknown user is treated as a platform admin with no governance rights
Shell
# local mode: act as the demo decision maker
curl -s http://localhost:8080/api/me/work -H 'x-user: m.hughes'
Caution
The x-user header is honoured only in local mode, which is a trusted-network convenience. Under Entra it is ignored.
Dashboard figures, pipeline, and the caller's awaiting count
GET
/me/work
The caller's work queue: positions, declare, resolve, sessions, conditions, confirm (conditions on boards the caller chairs whose work item in Azure DevOps is closed), requested (for authors: reviews a delivery team asked for by tag), circulations, assessments, resubmit, changed, no_decision, sign_offs ({subject, board, due, status, revision_needed}: the reaffirmations due soon or overdue on boards the caller chairs)
Applications with resources, provenance, verification and classification (the list: criticality, services, regulated, origin, verification; the detail adds method, evidence, what the tags say, reason, who set and verified it)
GET
/applications/:id/views
Generated ArchiMate views as JSON and XML, with annotations
POST
/applications/:id/verify-all
Verify an application and its members
PUT
/applications/:id/classification
Classify by hand: {criticality, services: [{name, kind}], reason} (authors; reason ≥ 10 characters; a regulated service with any criticality but critical is 400)
POST
/applications/:id/classification/reset
Hand the classification back to the tags (409 when already derived)
POST
/applications/:id/classification/verify
Verify the classification; {verified: false} withdraws
POST
/applications/:id/classification/suggest
AI classification suggestion; nothing stored (409 when off)
GET
/business-services
Each service with the applications, resources, regions and shared services behind it; unclassified applications; critical applications naming no service; counts by tier
The register: the lifecycle data in force (snapshot: source, licence, date, products), warn_days, assessment_months, counts by state, components worst first with the resources running each and how each was matched, unmatched (tracked resources with no version), applications with their legacy status, and due
GET
/lifecycle/products
The products and their version cycles, with state, for the correction form
POST
/lifecycle/refresh
Fetch the lifecycle data again from endoflife.date (platform admin); a product that fails keeps its previous data → {fetched_at, products, failed}
GET
/resources/:id/lifecycle
One resource's components, state and origin
PUT
/resources/:id/lifecycle
Set the components by hand: {components: [{product, cycle}], reason} (authors; at most five; reason ≥ 10 characters; an unknown product or cycle is 400)
POST
/resources/:id/lifecycle/reset
Hand the components back to the collected facts (409 when already derived)
GET
/applications/:id/legacy
The application's legacy standing, its assessment history, the template and the allowed results
POST
/applications/:id/legacy-assessments
Record a legacy assessment: {result, summary_md, reference?} (authors; result is satisfactory, satisfactory_with_remarks or unsatisfactory; summary ≥ 10 characters; reference an http(s) link only)
POST
/applications/:id/legacy-assessments/draft
AI draft of the assessment under the template; nothing stored (409 when Assessment Drafting is off)
The designations in force (ctp: regime, instrument, effective, entries of provider and entity), providers with the applications on each, their criticality, resources, regions, regulated services and share, concentration, exit_plans with each one's status and latest plan, counts, and the allowed substitutability values
The application's providers with each exit plan's standing, the template, the allowed results and the substitutability values
POST
/applications/:id/exit-plans
Record an exit plan: {provider, result, substitutability, summary_md, tested_at?, reference?} (authors; result is satisfactory, satisfactory_with_remarks or unsatisfactory; substitutability is not_substitutable, highly_complex, medium_complexity or easily_substitutable; summary ≥ 10 characters; tested_at a date not in the future; reference an http(s) link only; a provider the application does not rely on is 400)
POST
/applications/:id/exit-plans/draft
AI draft of the plan for {provider} under the template; nothing stored (409 when Assessment Drafting is off)
The risk register: {risks, counts, severities, statuses}, where counts has open, accepted, proposed, review_overdue, high_or_critical, from_exceptions and total. Each risk is {id, code, title, description, severity, status, stored_status, owner, review_by, review_overdue, source, origin, decision, applications, created_by, closed_by, closed_at, closure_note, editable}; source is decision, exception or manual. An active exception's risk has id exception:<id>, no code and editable: false. Read-only, for everyone who can read
POST
/risks
Log a risk: {title, description?, severity, owner?, review_by?, decision_id?, application_ids?, origin?} (authors; title ≥ 5 characters; severity is low, medium, high or critical; owner defaults to the caller; a decision's applications are added automatically; origin is human or ai_assisted). A short title, an unknown severity, owner or application is 400; an unknown decision is 404
PUT
/risks/:id
Change a risk: {status?, severity?, owner?, review_by?, note?} (its owner or whoever logged it; anyone else gets 403). status is open, accepted, mitigated or closed; moving to mitigated or closed needs a note ≥ 10 characters
GET
/debt[?application=]
Architecture debt, derived on read: {finding_days, items, by_application, counts, total}. Each item is {kind, application, title, detail, since, link}; kind is aged_finding, drift, condition_overdue, exception_expired, end_of_life, legacy_assessment_due or exit_plan_due. An unknown application is 404
POST
/decisions/:id/suggest-risks
AI Risk Extraction: up to five {title, description, severity} the decision's text supports → {risks, origin, provider, model}; nothing stored (authors; 409 when Risk Extraction is off)
List, read, kinds. An adopted item carries reaffirmation — on the list {due, status, revision_needed}, on the read the full record described under Reaffirmations; null otherwise
List and read, with links and the review in flight. An accepted decision carries reaffirmation — on the list {due, status, revision_needed}, on the read the full record described under Reaffirmations; null otherwise
POST
/decisions; PUT /decisions/:id
Create and edit (authors)
POST
/decisions/:id/status
Change status (chair); 409 while under review for accepted/rejected
One reaffirmation is a sign-off in the API, so the routes, the sign_offs work list and the signoff:* audit actions keep that word.
Method
Path
Purpose
GET
/sign-offs[?status=]
Every adopted catalogue item and accepted decision with its reaffirm-by date: {items, cadence_months: {artefact, decision}}. Each item is {subject: {kind, id, code, title, type, since}, board, due, status, revision_needed, last: {outcome, note, signed_by, signed_at}, can_sign}; last is null before the first reaffirmation. status filters by overdue, due_soon, current or revision_needed. Read-only, for everyone who can read
POST
/sign-offs
Reaffirm an item, or mark it for revision: {subject_kind, subject_id, outcome, note?}, where subject_kind is artefact or decision and outcome is reaffirmed or revision_needed → the item with its new date. The chair of the owning board only; everyone else gets 403. An item that is not adopted or accepted is 404; an unknown outcome, or a revision with a note under 10 characters, is 400
On GET /decisions/:id and GET /artefacts/:id, reaffirmation is {subject, board, due, status, revision_needed, last, can_sign, cadence_months, history}, where history is every reaffirmation of the item, newest first: {outcome, note, board_id, signed_by, signed_by_name, signed_at, next_due}.
The roadmap, computed on read: {generated_at, application, lanes: {now, next, later, done}, counts, kinds}, where counts has now, next, later, done and total, and kinds is [{kind, n}]. Each item is {id, kind, lane, title, code, status, due, progress, applications, link: {kind, id}, detail, changes}: kind is decision, change, condition, lifecycle or exception; progress is {done, total} for a measurable decision, otherwise null; changes (decisions only) lists the planned changes under it. With application, that application's items plus the decisions that apply to every application; an unknown application is 404. Read-only, for everyone who can read
List (filters by stage, type, board, session) and read, with progress and can. progress.fast_lane is the board's fast-lane assessment of a design (risk tier, patterns, checks; null when the board offers no lane), and progress.via_fast_lane is true when the lane, not positions, satisfies the policy. A design review also returns its claimed patterns
POST
/reviews
Submit a review; a design review may claim patterns: [id or code] (adopted patterns only, otherwise 400)
PUT
/reviews/:id/patterns
Change a design's claimed patterns: {patterns} (the submitter only; 409 once decided)
POST
/reviews/:id/pre-review, /comment, /resubmit
Pre-review, comment, resubmit
PUT
/reviews/:id/areas
Correct the touched areas
POST
/reviews/:id/positions
Record a position: {area?, areas?, position, text?}
POST
/reviews/:id/approvals
Count-mode alias: approve / request changes
POST
/positions/:id/resolve
Chair resolves a conditional
POST
/reviews/:id/dependencies
Link or create a dependent decision
POST
/reviews/:id/decide
Declare an outcome: {outcome, rationale?, conditions?, circulation_due?, board_id?}
POST
/conditions/:id/close
Mark a condition met
POST
/conditions/:id/raise
Raise the condition as a work item in Azure DevOps: {work_item_id?, title?} → 200 {ok, raised}; 202 {unconfirmed, raised} when Azure DevOps gave no answer (asking again finds the work item, never makes a second); 409 when the capability is off, the review covers no Azure DevOps work item, or it is already raised; 502 when Azure DevOps refused. The condition's owner, the review's submitter, or the chair or secretary of its board
POST
/review-events/:id/verify
Verify an AI or rules pre-review
GET
/assessments/types
Types and their templates
POST
/reviews/:id/assessments
Request an assessment (board seat)
POST
/reviews/:id/assessments/provide; PUT /assessments/:id/provided
Boards, detail, and which board a review would route to (?type=&kind=&category=&application=; repeat application for a decision's applications)
POST
/boards; PUT, DELETE /boards/:id
Create (platform admin), edit, remove
POST, PUT, DELETE
/boards/:id/members…, /routing…, /policies…
Seats and areas, routing (each rule review_type, kind, category, priority, and for design, decision and exception rules application_ids and owner), approval policies
PUT
/boards/:id/policies/design
The design policy may carry policy.fast_lane: {enabled, require_pattern} (require_pattern defaults to true; a fast lane on any other review type is 400)
GET
/boards/:id/fast-lane
The open design reviews the fast lane satisfies, each with can_declare for the caller
POST
/boards/:id/fast-lane/declare
Declare them approved: {review_ids?, rationale?} → {declared, skipped}; each item is checked again (chair)
Export and verify the signed pack; verify checks a board pack the same way: {found, hash_ok, signature_ok, key_is_current, chain_ok, chain_head, generated_at, scope}
The governance metrics, computed on read: {generated_at, period_days, from, reviews, decisions, conditions, exceptions, conformance, coverage, risks, debt, registers, roadmap}; conformance.trend is the last evaluation run of each day; coverage.sign_offs is the reaffirmation coverage, {current, total, overdue, due_soon}; risks carries the risk register's counts and debt the architecture debt's counts by kind. days defaults to 90 and is clamped to 7–730. A figure with no data is null, never 0. Read-only, for everyone who can read
GET
/board-packs
The signed board packs, newest first: hash, title, period, board, narrative origin, who prepared each and when (export_evidence)
POST
/board-packs
Prepare and sign a pack: {days?, title?, board_id?, narrative_md?, narrative_origin?} → {id, hash, title, signed_at}. days is 7–730 (default 90); narrative_origin is human or ai_assisted; the narrative is at most 20,000 characters. A board's chair or secretary only; everyone else gets 403
GET
/board-packs/:hash[?download=1]
One signed pack as signed; download=1 sends it as an attachment (export_evidence)
POST
/board-packs/draft-narrative
AI draft of the narrative from the figures for {days?} → {narrative_md, origin, provider, model}; nothing stored (409 when Board Pack Narrative is off; a board's chair or secretary only)
Write-back to Azure DevOps: the switches, the stage tags, and counts of work items in scope, shown, tagged and failing, and of those already carrying a tag under the prefix that archigov did not write (prefix_in_use)
POST
/sources/ado/writeback
Turn write-back on or off and choose what is written: {enabled?, link?, stage?, comment?, raise?, request?, tag_prefix?, raise_type?, remove_tags?}. Turning it on writes at once; turning it off takes the stage tags off unless remove_tags is false, and cleanup in the answer says how many were removed and how many could not be reached (already off, remove_tags: true tries again). 409 for "on" without a connected backlog; 400 for a bad prefix or for "on" with nothing to write (platform admin)
POST
/sources/ado/writeback/test
Whether the identity may edit a work item; nothing is saved (platform admin)
GET
/sources/ado/writeback/preview
What would be written now, with the saved switches or ?link=&stage=&comment=&tag_prefix=; nothing is sent
POST
/sources/ado/writeback/run
Write now what differs, failed writes included without waiting out their delay; 409 when write-back is off (platform admin)
POST
/sources/demo/load, /resync, /perturb
Demo tools
POST
/hooks/ado
Service hook receiver (own secret)
POST
/import/csv, /import/archimate; GET /import/templates/csv
Model imports
GET, POST
/work-items; PUT /work-items/:id
Planned changes, each with its lifecycle_stage, whether a review is being asked for from the backlog (review_requested) and, where write-back wrote to it, writeback ({tag, links, written_at, error}); manual ones by authors