---
title: "Execute the planned steps with user-provided parameter values"
method: POST
path: "/api/agent/execute"
tags: ["AI Agent"]
---

# Execute the planned steps with user-provided parameter values

`POST /api/agent/execute`

## Request

- Base URL: `https://api.cernion.de`
- URL: `https://api.cernion.de/api/agent/execute`
- Auth: none declared

Runs the execution plan produced by /agent/analyze, substituting user inputs into step params and calling each microservice in sequence. Optionally accepts a free-text refinement which triggers a re-plan.

## Query parameters

- `token` string

## Request body

- object
  - `sessionId` string, required: Session ID returned by /agent/analyze
  - `userInputs` object: Key-value map of required input values
  - `refinement` string: Optional free-text refinement or follow-up question
  - `token` string: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.

## Response `200`

Execution results or re-plan if refinement provided

---

[API](https://skmtc.dev/cernion/apis/cernion-energy-tools-api.md) · [All operations](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/revisions/cdb94473b538?raw)
