---
title: "Generate and run a workflow"
method: POST
path: "/generate/run"
---

# Generate and run a workflow

`POST /generate/run`

## Request

- Base URL: `https://api.drymerge.com`
- URL: `https://api.drymerge.com/generate/run`
- Auth: HTTP bearer

## Request body

- GenerateFromTemplateEndpointArgs
  - `prompt` string: The user's most recent message.
  - `agent` Identity: An identity is a unique identifier for an entity.
    - `type` string: Type of the identity.
    - `organization` string: Name of the organization that owns the entity.
    - `namespace` string: Namespace delineating logical grouping of entities.
    - `name` string: The name of the entity; must be unique within a namespace.
    - `isolation` string: The isolation level of the entity.
  - `history` ChatMsg[]: The history of the chat up to this point.
    - `text` string: The text of the chat message.
    - `sender` 'user' | 'system' | 'assistant': The sender of the message.

## Response `200`

Successful response

- object

---

[API](https://skmtc.dev/drymerge/apis/tenant-session-api.md) - [All operations](https://skmtc.dev/drymerge/apis/tenant-session-api/llms.txt) - [OpenAPI document](https://skmtc.dev/drymerge/apis/tenant-session-api/revisions/b161aa26c15a?raw)
