Delete ai session history
Permanent - removes a session's entire record, including usage history a refund would otherwise preserve. Only for freeing storage on old, no-longer-relevant sessions.
POST
/++delete_ai_session_history
AI Tutor Sessions
Authentication
Restricted to site administrators. Also requires a registered Integrator subscription.
This endpoint requires the calling application to be registered as an Integrator. Every call must identify the registration via a registration_id parameter (or an X-Client-Id header), and authenticate using one of the following methods, selected with the subscription_method parameter:
-
referer— The request's HTTP Referer header must match one of the domains authorized for this Integrator registration. -
ip— The request's source IP address must match one of the IP addresses authorized for this Integrator registration. -
client_token— A client token issued at registration time is supplied with the request.
Register as an Integrator and configure authorized domains, IP addresses, or a client token.
Request
Content type: application/json
| Name | In | Type | Required | Description |
|---|---|---|---|---|
BODY | body | string | No | — |
token | body | string | No | — |
Example request body
{
"BODY": "example_value",
"token": "REDACTED"
}
Responses
| Status | Meaning |
|---|---|
200 | Successful response. |
400 | Invalid JSON body. |
403 | Manager access required. |
404 | Session not found. |
401 | Unauthorized - missing or invalid Integrator authentication (registration_id/X-Client-Id, plus referer/IP/client_token). |
Example response (illustrative - field names only, values are placeholders)
{
"deleted": "example_value"
}
