List chat user prompts
GET
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.
CoderSessionTokenheader
Coder-Session-Token<token>chat*stringChat ID
Format
uuidlimit?integerPage size, 0 to 2000. 0 (the default) means the server-side default of 500.
OK
application/json- response
prompts?array<>The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X GET \ "$CODER_URL/api/v2/chats/{chat}/prompts" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN"Example Response200
{ "prompts": [ { "id": 0, "text": "string" } ]}