Skip to content
Skip to Content
Coder Docs

Get chat system prompt

GET
/api/v2/chats/config/system-prompt

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Response Body

OK

application/json
  1. response
default_system_prompt?string
include_default_system_prompt?boolean
system_prompt?string

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/chats/config/system-prompt" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "default_system_prompt": "string",  "include_default_system_prompt": true,  "system_prompt": "string"}