Chat

Delete Chat Session

Delete a chat session. This is a soft delete — the session and its messages are no longer returned by list or get endpoints.


DELETE /chat-v1/sessions/{session_id}

Path Parameters

ParameterTypeDescription
session_idintegerThe session identifier

NOTE

  • Returns 404 if the session does not exist or does not belong to the user.

Request

DELETE https://premium.aiera.com/api/chat-v1/sessions/2229

Response

{
  "success": true
}

Code Samples

Bash

curl --request DELETE \
  --url 'https://premium.aiera.com/api/chat-v1/sessions/2229' \
  --header 'X-API-Key: your-rest-api-key'

Python

import requests
requests.delete(
    "https://premium.aiera.com/api/chat-v1/sessions/2229",
    headers={"X-API-Key": "your-rest-api-key"},
)
Previous
Update Session