> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Calltransfer Completed

> The calltransfer-completed webhook

Emitted when "toEndpoint" ended the call.
For a sip-refer transfer, emitted once when the SIP REFER finishes, with the result of the transfer.

## Webhook Events

There are five common fields all events share:

## Calltransfer requested without sip-refer

```json theme={null}
{
  "version": "1.0.0",
  "type": "calltransfer.completed",
  "id": "3602-call-transfer-completed-07efe77a-74e8-4e69-81b0-41ca454c06e01770005095",
  "payload": {
    "domain_id": "04b89420-cf8b-4ea5-a428-02c40b0e2a59",
    "room": "sip-test",
    "timestamp": "1770005095",
    "session_id": "07efe77a-74e8-4e69-81b0-41ca454c06e0",
    "mtg_session_id": "34888835-dadc-4874-a2a8-be38da1f8296",
    "to_endpoint": "sip:user-b@user-a.my-domain.com",
    "from_endpoint": "sip:user-a@user-a.my-domain.com"
  },
  "event_ts": 1770005095.25
}
```

## Calltransfer requested with sip-refer

A sip-refer transfer emits `calltransfer.triggered`, `calltransfer.initiated` and then `calltransfer.completed`. `calltransfer.answered` is not emitted.

The payload of `calltransfer.completed` carries the result of the REFER:

| Field | Description |
| - | - |
| `completeStatus` | How the transfer ended: `completed` when the REFER succeeded, otherwise the result reported by the provider, e.g. `failed`. |
| `refer_sip_response_code` | The SIP response code the remote endpoint returned to the REFER. `202` means the REFER was accepted; e.g. `408` means the remote endpoint did not respond. |
| `notify_sip_response_code` | The last SIP response code reported in the NOTIFY messages for the REFER, when the remote endpoint sends them. |

### Transfer accepted

```json theme={null}
{
  "version": "1.0.0",
  "type": "calltransfer.completed",
  "id": "3602-call-transfer-completed-88de2f10-4458-4a69-9f7a-a5ca4df528c11790262420",
  "payload": {
    "domain_id": "04b89420-cf8b-4ea5-a428-02c40b0e2a59",
    "room": "sip-test",
    "timestamp": "1790262420",
    "session_id": "88de2f10-4458-4a69-9f7a-a5ca4df528c1",
    "mtg_session_id": "be45162f-b2b3-4390-a213-5b2e24850cc1",
    "to_endpoint": "sip:user-b@user-a.my-domain.com",
    "from_endpoint": "sip:user-a@user-a.my-domain.com",
    "completeStatus": "completed",
    "is_sip_refer": true,
    "refer_sip_response_code": "202"
  },
  "event_ts": 1790262420.912
}
```

### Transfer failed

```json theme={null}
{
  "version": "1.0.0",
  "type": "calltransfer.completed",
  "id": "3602-call-transfer-completed-cd645a9c-d1e4-495a-b5b4-5aad7929e78e1790257236",
  "payload": {
    "domain_id": "04b89420-cf8b-4ea5-a428-02c40b0e2a59",
    "room": "sip-test",
    "timestamp": "1790257236",
    "session_id": "cd645a9c-d1e4-495a-b5b4-5aad7929e78e",
    "mtg_session_id": "11b8e331-4ef9-49ee-b7f7-7ee6f1b24a4e",
    "to_endpoint": "sip:user-b@user-a.my-domain.com",
    "from_endpoint": "sip:user-a@user-a.my-domain.com",
    "completeStatus": "failed",
    "is_sip_refer": true,
    "refer_sip_response_code": "408"
  },
  "event_ts": 1790257236.638
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.