---
title: "Create Text Chat Session"
method: POST
path: "/api/v1/workflow/{workflow_id}/text-chat/sessions"
tags: ["main", "workflow-text-chat"]
---

# Create Text Chat Session

`POST /api/v1/workflow/{workflow_id}/text-chat/sessions`

## Request

- Base URL: `https://app.dograh.com`
- URL: `https://app.dograh.com/api/v1/workflow/{workflow_id}/text-chat/sessions`
- Auth: none declared

## Path parameters

- `workflow_id` integer, required

## Headers

- `authorization` string, nullable
- `X-API-Key` string, nullable

## Request body

- CreateTextChatSessionRequest
  - `request_id` string, uuid, nullable: Client correlation ID for recovery if the creation response is lost.
  - `name` string, nullable
  - `initial_context` object, nullable
  - `annotations` object, nullable

## Response `200`

Successful Response

- WorkflowRunTextSessionResponse
  - `workflow_run_id` integer, required
  - `workflow_id` integer, required
  - `name` string, required
  - `mode` string, required
  - `state` string, required
  - `is_completed` boolean, required
  - `revision` integer, required
  - `initial_context` object, nullable
  - `gathered_context` object, nullable
  - `annotations` object, nullable
  - `session_data` object, required
  - `checkpoint` object, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, nullable

## Other responses

- `404`: Not found
- `422`: Validation Error

## Changes

- **2026-11-03** `faa00cf76fcb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/dograh/apis/dograh-api/changes/api/v1/workflow/:workflow_id/text-chat/sessions/post.md)

---

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