---
title: "End Call"
method: POST
path: "/sessions/{session_id}/end-call"
tags: ["sessions"]
---

# End Call

`POST /sessions/{session_id}/end-call`

## Request

- Base URL: `https://dev.whispa.net` (the document declares no server; this is the origin it was published from)
- URL: `https://dev.whispa.net/sessions/{session_id}/end-call`
- Auth: one of:
  - OAuth 2
    - Password
    - Token URL: `auth/bearer/login`
  - API key in cookie `access_token`

End a call and trigger finalization.

Finalizes the CallSession by persisting transcript and generating
summary/coaching feedback in the background.

Publishes SSE events to match the 3CX production flow:
1. Immediately: call_ended (finalized: false) - triggers coaching modal
2. After finalization: call_ended (finalized: true) - triggers data refresh

Args:
    session_id: Session ID

## Path parameters

- `session_id` string, uuid, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/whispa/apis/whispa-api.md) - [All operations](https://skmtc.dev/whispa/apis/whispa-api/llms.txt) - [OpenAPI document](https://skmtc.dev/whispa/apis/whispa-api/revisions/12c2e4aca43c?raw)
