---
title: "List chat user prompts"
method: GET
path: "/api/experimental/chats/{chat}/prompts"
tags: ["Chats"]
---

# List chat user prompts

`GET /api/experimental/chats/{chat}/prompts`

Experimental: this endpoint is subject to change.

Returns the user-authored prompts in a chat, newest first,
with each prompt's text parts concatenated in the order they
were authored. Used by the composer to power the up/down
arrow prompt-history cycle without paging through every
message in the chat.

## Path parameters

- `chat` string, uuid, required

## Query parameters

- `limit` integer

## Response `200`

OK

- CodersdkChatPromptsResponse
  - `prompts` CodersdkChatPrompt[]
    - `id` integer
    - `text` string

---

[API](https://skmtc.net/coder/apis/coder-api.md) · [All operations](https://skmtc.net/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coder/coder-api/versions/56b6e9f08540/schema)
