---
title: "Run an agent in your workflow"
method: POST
path: "/agent-session-manager/sessions/run-agent"
tags: ["Agent Session Manager"]
---

# Run an agent in your workflow

`POST /agent-session-manager/sessions/run-agent`

## Request

- Base URL: `https://example.itential.io`
- URL: `https://example.itential.io/agent-session-manager/sessions/run-agent`
- Auth: none declared

Runs an agent and returns the agent session output to this workflow.

## Request body

- object
  - `terminationCallbackSignature` AgentSessionManagerSessionsRunAgentPostRequestBodyContentApplicationJsonSchemaTerminationCallbackSignature: IAP cog hook to invoke when the session reaches a terminal state. The IAP task stays running until the session completes, fails, or is canceled.
    - `location` string, required
    - `serviceName` string, required
    - `methodName` string, required
    - `identifier` string, required
  - `agent` string: An agent to be executed
  - `inputs` AgentSessionManagerSessionsRunAgentPostRequestBodyContentApplicationJsonSchemaInputs: Key-value pairs to pass as inputs to the agent session. Must match the agent's input schema.

## Response `200`

result

- AgentSessionManagerRunAgentResponse200
  - `sessionId` string: The session ID assigned by AEE
  - `status` string, required: Current session status
  - `lastMessage` string: Last message from the session

## Other responses

- `500`: Error response from API

## Changes

- **2026-10-31** `2095cc90e583`: 2 info
  - api tag `Agent Session Manager` added
  - api tag `agentSessionManager` removed

[Operation history](https://skmtc.dev/itential/apis/itential-2/changes/agent-session-manager/sessions/run-agent/post.md)

---

[API](https://skmtc.dev/itential/apis/itential-2.md) - [All operations](https://skmtc.dev/itential/apis/itential-2/llms.txt) - [OpenAPI document](https://skmtc.dev/itential/apis/itential-2/revisions/2095cc90e583?raw)
