---
title: "Transfer a SIP leg via REFER (asynchronous)"
method: POST
path: "/legs/{id}/transfer"
tags: ["Legs"]
---

# Transfer a SIP leg via REFER (asynchronous)

`POST /legs/{id}/transfer`

Asynchronously transfers a SIP leg. The HTTP call returns 202 as soon as the request is validated; the REFER is sent in the background and its outcome is surfaced through `leg.transfer_initiated` / `leg.transfer_progress` / `leg.transfer_completed` / `leg.transfer_failed` events. Blind transfer when `replaces_leg_id` is omitted; attended transfer when present (the named leg's dialog identity is embedded as a Replaces parameter per RFC 3891). On terminal 2xx the leg (and the replaces leg, if any) is hung up automatically.

## Request body

- TransferRequest
  - `target` string, required — SIP URI to transfer the call to (e.g. "sip:bob@example.com").
  - `replaces_leg_id` string — ID of an existing connected SIP leg whose dialog should be replaced (attended transfer). Omit for blind transfer.

## Response `202`

Transfer request accepted for processing

## Other responses

- `400` — Missing or invalid target URI (including URIs without a host such as sip:)
- `404` — Leg not found
- `409` — Leg not connected, not a SIP leg, or replaces_leg_id is invalid

---

[API](https://skmtc.net/voiceblender/apis/voiceblender-api.md) · [All operations](https://skmtc.net/voiceblender/apis/voiceblender-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voiceblender/voiceblender-api/revisions/4efc843fe56f/schema)
