API REST Hoshin Kanri

Bêta : les opérations et les champs peuvent encore changer.

Pour un agent IA, utilisez MCP sur https://hoshin.app/mcp : aucun fichier à importer, et la méthode vient avec. Cette API sert aux automatisations qui ne parlent pas MCP, comme un flux Power Automate ou un script.

Les tools MCP qu’utilise un agent, un par un

Les fichiers

Authentification

Un administrateur crée un jeton depuis le lien Jetons d'API, dans l'en-tête de l'application. Envoyez-le dans l'en-tête Authorization. Un jeton en lecture seule est refusé sur les opérations marquées écriture.

curl https://hoshin.app/api/matrices \
  -H "Authorization: Bearer hk_..."

Les opérations répondent à une erreur par un code stable, dans le champ error. Les messages restent en anglais : fiez-vous au code.

Power Automate et Logic Apps

  1. Dans Power Automate, ouvrez Solutions, puis Nouveau, Automatisation, Connecteur personnalisé, et choisissez Importer un fichier OpenAPI.
  2. Sélectionnez swagger.json. L'étape de sécurité demande déjà une clé d'API dans l'en-tête Authorization.
  3. À la création de la connexion, saisissez Bearer, une espace, puis votre jeton.

Ces étapes viennent de la documentation de Microsoft : nous n'avons pas encore fait cet import nous-mêmes. Vérifiez que votre licence Microsoft couvre les connecteurs personnalisés.

Opérations

Les opérations qu'utilise le serveur MCP de Hoshin. Leurs libellés restent en anglais, comme l'API. La suppression d'une matrice ou d'un élément en fait partie, comme dans l'application ; le tool MCP demande le nom exact d'une matrice avant de la supprimer.

Matrices

  • GET /api/matricesList matriceslecture
  • POST /api/matricesCreate a matrixécriture
  • GET /api/matrices/{id}Get a matrix with its elements and linkslecture
  • PUT /api/matrices/{id}Update a matrixécriture
  • DELETE /api/matrices/{id}Delete a matrixécriture
  • GET /api/matrices/{id}/contextRead the written frame of a matrix: purpose, vision, context, tradeoffslecture
  • PUT /api/matrices/{id}/contextPropose the vision, context or tradeoffs of a matrixécriture
  • PUT /api/purposePropose the purpose of the organizationécriture

Elements

  • POST /api/matrices/{id}/elementsAdd an element to a quadrantécriture
  • PUT /api/matrices/{id}/elements/{elementId}Update an elementécriture
  • DELETE /api/matrices/{id}/elements/{elementId}Delete an elementécriture
  • GET /api/matrices/{id}/elements/{elementId}/measurementsList a KPI's readingslecture
  • PUT /api/matrices/{id}/elements/{elementId}/measurementsRecord or correct the reading of a periodécriture
  • GET /api/matrices/{id}/elements/{elementId}/updatesList the progress updates of an elementlecture
  • POST /api/matrices/{id}/elements/{elementId}/updatesLog a progress update: a percentage, a comment, or bothécriture
  • PUT /api/matrices/{id}/elements/{elementId}/sheetFill or change an initiative's sheetécriture
  • PUT /api/matrices/{id}/elements/{elementId}/kpi-definitionDefine how a KPI is computed and where it is readécriture
  • PUT /api/matrices/{id}/correlationsSet or remove a link between two elementsécriture

Analysis

  • GET /api/matrices/{id}/completenessGet the completeness score of a matrixlecture
  • GET /api/matrices/{id}/imageDraw the X-Matrix as an SVG picturelecture
  • GET /api/matrices/{id}/cascadeGet the cascade below a matrixlecture
  • GET /api/matrices/{id}/kpi-boardGet the indicator board of a matrixlecture
  • GET /api/roadmapsThe excellence roadmaps of the organizationlecture
  • GET /api/roadmaps/{id}An excellence roadmap: grid, levels per site, targets, and what is missinglecture
  • POST /api/roadmaps/{id}/assessmentsOpen an assessment of a siteécriture
  • PATCH /api/roadmaps/{id}/assessments/{assessmentId}Write scores, evidence and remarks into a draft assessmentécriture
  • GET /api/roadmaps/{id}/translations/{locale}What is stored of a roadmap in one languagelecture
  • PUT /api/roadmaps/{id}/translations/{locale}Write the texts of a roadmap in one language (admins)écriture

Sharing

  • GET /api/matrices/{id}/sharesList the public links of a matrixécriture
  • POST /api/matrices/{id}/sharesPublish a matrix on a public read-only linkécriture
  • DELETE /api/matrices/{id}/shares/{shareId}Revoke a public linkécriture

Ideas

  • GET /api/ideasList or search ideaslecture
  • POST /api/ideasAdd an idea to the inboxécriture
  • PUT /api/ideas/{id}Update an ideaécriture

Exports

  • GET /api/exports/matricesExport all matriceslecture
  • GET /api/exports/summaryGet an overview of the organizationlecture

Themes

  • GET /api/themesList strategic themeslecture
  • GET /api/themes/{id}Get a strategic theme with its elementslecture

Cadences

  • GET /api/cadences/architectureGet the meeting cadences by levellecture
  • GET /api/agendaWhere the organization stands in its review cycle, and what is duelecture
  • POST /api/meetingsSchedule a review of a cadenceécriture
  • PATCH /api/meetings/{id}/completeRecord a review that was held: notes, decisions, elements discussedécriture
  • GET /api/meetings/{id}/snapshotA recorded review, with the state of the matrix it sawlecture
  • GET /api/cadencesList the review cadences of the organizationlecture
  • POST /api/cadencesCreate a review cadence (monthly committee, quarterly review…)écriture
  • PATCH /api/cadences/{id}Change a review cadenceécriture

Identity

  • GET /api/whoamiWho is calling, with what rights, under which planlecture
  • GET /api/membersThe directory of the organization: who can own an elementlecture
  • POST /api/capability-requestsTell us what you needed and did not findlecture