---
title: "Get a conversation"
method: GET
path: "/api/conversations/{id}"
tags: ["Conversations"]
---

# Get a conversation

`GET /api/conversations/{id}`

Returns a single conversation including its full message history.

## Response `200`

The requested conversation.

- Conversation — A full conversation object including messages.
  - `connection` string, required — The database connection name.
  - `created_at` string, date-time, required — When the conversation was created.
  - `id` string, required — The unique conversation identifier.
  - `messages` ChatMessage[], required — The conversation messages.
    - `content` string, required — The text content of the message.
    - `role` string, required — The role of the message author (e.g., user, assistant, system).
  - `model` string, required — The LLM model used.
  - `provider` string, required — The LLM provider used.
  - `title` string, required — The conversation title.
  - `updated_at` string, date-time, required — When the conversation was last updated.
  - `username` string, required — The username that owns the conversation.

## Other responses

- `401` — Missing or invalid authentication token.
- `403` — Insufficient permissions.

---

[API](https://skmtc.dev/pgedge/apis/pgedge-postgres-mcp-server-api.md) · [All operations](https://skmtc.dev/pgedge/apis/pgedge-postgres-mcp-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pgedge/pgedge-postgres-mcp-server-api/revisions/6084bab46b1e/schema)
