English
cURL
curl --request DELETE \ --url https://app.pathors.com/api/project/{projectId}/integration/api/session \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data '{ "session_id": "<string>" }'
{ "message": "<string>", "sessionId": "<string>" }
End an existing session to cleanup resources and terminate conversation context.
DELETE /api/project/{projectId}/integration/api/session
curl -X DELETE https://app.pathors.com/api/project/{projectId}/integration/api/session \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "session_id": "user-123-session-456" }'
{ "message": "Session ended successfully", "sessionId": "user-123-session-456" }
{ "error": "Session not found" }