繁體中文
cURL
curl --request DELETE \ --url https://api.pathors.com/project/{projectId}/session \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "session_id": "<string>" } '
{ "success": true, "sessionId": "<string>", "message": "<string>" }
結束現有會話以清理資源並終止對話上下文。
https://api.pathors.com
DELETE /project/{projectId}/session
curl -X DELETE https://api.pathors.com/project/{projectId}/session \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "session_id": "user-123-session-456" }'
{ "success": true, "sessionId": "user-123-session-456", "message": "Session ended successfully" }
{ "error": "session_id is required" }
{ "error": { "message": "Invalid authentication" } }