Anonymous Chat Interactions
Operations Summary
Core CRUD
List Anonymous Chat Interactions
Retrieve
Other Actions
Today's global tenant budget snapshot
Returns the site-wide token + request usage accumulated since 00:00 UTC today and the configured daily caps. Powers the budget gauges card on the staff analytics dashboard.
Full transcript for one anonymous session
Returns the ordered list of interactions belonging to the given session_id. Use this to read a conversation as a transcript.
HTTPie Python TypeScript Path Parameters Query Parameters Responses
http \
GET \
https://api.example.com/api/anonymous-chat-interactions/by-session/string-value/ \
Authorization:"Token YOUR_API_TOKEN"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.anonymous_chat_interaction_o_enum import AnonymousChatInteractionOEnum # (1)
from waldur_api_client.models.injection_severity_enum import InjectionSeverityEnum # (2)
from waldur_api_client.api.anonymous_chat_interactions import anonymous_chat_interactions_by_session_list # (3)
client = AuthenticatedClient (
base_url = "https://api.example.com" , token = "YOUR_API_TOKEN"
)
response = anonymous_chat_interactions_by_session_list . sync (
session_id = "string-value" ,
client = client
)
for item in response :
print ( item )
Model Source: AnonymousChatInteractionOEnum
Model Source: InjectionSeverityEnum
API Source: anonymous_chat_interactions_by_session_list
1
2
3
4
5
6
7
8
9
10
11
12
13 import { anonymousChatInteractionsBySessionList } from 'waldur-js-client' ;
try {
const response = await anonymousChatInteractionsBySessionList ({
auth : "Token YOUR_API_TOKEN" ,
path : {
"session_id" : "string-value"
}
});
console . log ( 'Success:' , response );
} catch ( error ) {
console . error ( 'Error:' , error );
}
Name
Type
Required
session_id
string
✓
Name
Type
Description
created_from
string (date)
created_to
string (date)
has_negative_feedback
boolean
is_flagged
boolean
o
array
Ordering
page
integer
A page number within the paginated result set.
page_size
integer
Number of results to return per page.
session_id
string
severity
string
Enum: none, low, medium, high, critical
user_slug
string
200 -
The response body is an array of objects, where each object has the following structure:
Field
Type
Description
uuid
string (uuid)
user_slug
string
user_input
string
assistant_blocks
object (free-form)
offering_uuids
object (free-form)
result_count
integer
is_flagged
boolean
severity
string
injection_categories
object (free-form)
pii_categories
object (free-form)
action_taken
string
warning
string
ip_address
any
An IPv4 or IPv6 address.
session_id
string
last_active_at
string (date-time)
created
string (date-time)
feedback
any
Aggregate user list (no slug)
Returns one row per user_slug with aggregate counters. Powers the staff Users page in the admin analytics.
All sessions for one pseudonymous user
Returns interactions sharing a user_slug (Scrypt of originating IP) — across however many sessions that anon user opened, ordered chronologically.
HTTPie Python TypeScript Path Parameters Query Parameters Responses
http \
GET \
https://api.example.com/api/anonymous-chat-interactions/by-user/string-value/ \
Authorization:"Token YOUR_API_TOKEN"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.anonymous_chat_interaction_o_enum import AnonymousChatInteractionOEnum # (1)
from waldur_api_client.models.injection_severity_enum import InjectionSeverityEnum # (2)
from waldur_api_client.api.anonymous_chat_interactions import anonymous_chat_interactions_by_user_list # (3)
client = AuthenticatedClient (
base_url = "https://api.example.com" , token = "YOUR_API_TOKEN"
)
response = anonymous_chat_interactions_by_user_list . sync (
user_slug = "string-value" ,
client = client
)
for item in response :
print ( item )
Model Source: AnonymousChatInteractionOEnum
Model Source: InjectionSeverityEnum
API Source: anonymous_chat_interactions_by_user_list
1
2
3
4
5
6
7
8
9
10
11
12
13 import { anonymousChatInteractionsByUserList } from 'waldur-js-client' ;
try {
const response = await anonymousChatInteractionsByUserList ({
auth : "Token YOUR_API_TOKEN" ,
path : {
"user_slug" : "string-value"
}
});
console . log ( 'Success:' , response );
} catch ( error ) {
console . error ( 'Error:' , error );
}
Name
Type
Required
user_slug
string
✓
Name
Type
Description
created_from
string (date)
created_to
string (date)
has_negative_feedback
boolean
is_flagged
boolean
o
array
Ordering
page
integer
A page number within the paginated result set.
page_size
integer
Number of results to return per page.
session_id
string
severity
string
Enum: none, low, medium, high, critical
user_slug
string
200 -
The response body is an array of objects, where each object has the following structure:
Field
Type
Description
uuid
string (uuid)
user_slug
string
user_input
string
assistant_blocks
object (free-form)
offering_uuids
object (free-form)
result_count
integer
is_flagged
boolean
severity
string
injection_categories
object (free-form)
pii_categories
object (free-form)
action_taken
string
warning
string
ip_address
any
An IPv4 or IPv6 address.
session_id
string
last_active_at
string (date-time)
created
string (date-time)
feedback
any
Aggregate KPI roll-up
Returns aggregate counters and rates for the anonymous chat flow. Filters are honoured (date range etc.) so the same parameters work as on the list endpoint.