The response body is an array of objects, where each object has the following structure:
Field
Type
Description
uuid
string (uuid)
name
string
description
string
custom_instructions
string
Additional instructions injected into the system prompt. Use this for organisation-specific context, terminology, FAQ content, or behavioural guidelines. Supports {assistant_name} and {organization} placeholders.
is_active
boolean
Whether this prompt is currently used by the AI Assistant. Only one prompt can be active.
Additional instructions injected into the system prompt. Use this for organisation-specific context, terminology, FAQ content, or behavioural guidelines. Supports {assistant_name} and {organization} placeholders.
is_active
boolean
Whether this prompt is currently used by the AI Assistant. Only one prompt can be active.
The response body is an array of objects, where each object has the following structure:
Field
Type
Description
uuid
string (uuid)
name
string
chat_session
string (uuid)
flags
object (free-form)
is_archived
boolean
message_count
integer
input_tokens
integer
output_tokens
integer
total_tokens
integer
title_gen_input_tokens
integer
title_gen_output_tokens
integer
models_used
string
Comma-separated distinct LLM models across the thread's messages. More than one when an admin switched AI_ASSISTANT_MODEL mid-thread; blank for threads written before model tracking existed.
Comma-separated distinct LLM models across the thread's messages. More than one when an admin switched AI_ASSISTANT_MODEL mid-thread; blank for threads written before model tracking existed.
is_flagged
boolean
max_severity
any
has_feedback
boolean
user_username
string
user_full_name
string
created
string (date-time)
modified
string (date-time)
Get statistics for visible chat threads
Summary statistics for the visible chat threads.
Filters run against the annotated list queryset, then the matched
threads are re-read as a plain queryset. Both halves are load-bearing:
has_feedback and the token ranges resolve against annotations that
exist only on get_queryset, while the per-row annotations there
would collide with the aggregates below. Visibility comes from
get_queryset — staff/support see all, other users only their own.
Additional instructions injected into the system prompt. Use this for organisation-specific context, terminology, FAQ content, or behavioural guidelines. Supports {assistant_name} and {organization} placeholders.
200 -
Field
Type
Description
uuid
string (uuid)
name
string
description
string
custom_instructions
string
Additional instructions injected into the system prompt. Use this for organisation-specific context, terminology, FAQ content, or behavioural guidelines. Supports {assistant_name} and {organization} placeholders.
is_active
boolean
Whether this prompt is currently used by the AI Assistant. Only one prompt can be active.
Additional instructions injected into the system prompt. Use this for organisation-specific context, terminology, FAQ content, or behavioural guidelines. Supports {assistant_name} and {organization} placeholders.
201 -
Field
Type
Description
uuid
string (uuid)
name
string
description
string
custom_instructions
string
Additional instructions injected into the system prompt. Use this for organisation-specific context, terminology, FAQ content, or behavioural guidelines. Supports {assistant_name} and {organization} placeholders.
is_active
boolean
Whether this prompt is currently used by the AI Assistant. Only one prompt can be active.
created
string (date-time)
modified
string (date-time)
Deactivate the active system prompt
Deactivate this prompt. The system will fall back to Constance overrides or built-in defaults.
Additional instructions injected into the system prompt. Use this for organisation-specific context, terminology, FAQ content, or behavioural guidelines. Supports {assistant_name} and {organization} placeholders.
200 -
Field
Type
Description
uuid
string (uuid)
name
string
description
string
custom_instructions
string
Additional instructions injected into the system prompt. Use this for organisation-specific context, terminology, FAQ content, or behavioural guidelines. Supports {assistant_name} and {organization} placeholders.
is_active
boolean
Whether this prompt is currently used by the AI Assistant. Only one prompt can be active.
Additional instructions injected into the system prompt. Use this for organisation-specific context, terminology, FAQ content, or behavioural guidelines. Supports {assistant_name} and {organization} placeholders.
200 -
Field
Type
Description
uuid
string (uuid)
name
string
description
string
custom_instructions
string
Additional instructions injected into the system prompt. Use this for organisation-specific context, terminology, FAQ content, or behavioural guidelines. Supports {assistant_name} and {organization} placeholders.
is_active
boolean
Whether this prompt is currently used by the AI Assistant. Only one prompt can be active.
Additional instructions injected into the system prompt. Use this for organisation-specific context, terminology, FAQ content, or behavioural guidelines. Supports {assistant_name} and {organization} placeholders.
200 -
Field
Type
Description
uuid
string (uuid)
name
string
description
string
custom_instructions
string
Additional instructions injected into the system prompt. Use this for organisation-specific context, terminology, FAQ content, or behavioural guidelines. Supports {assistant_name} and {organization} placeholders.
is_active
boolean
Whether this prompt is currently used by the AI Assistant. Only one prompt can be active.