Transfer Call
Transfer an active call to another participant or endpoint using the Microsoft Teams API.
SKILL.md
Full skill instructions
Transfer Call
Transfer an active call to another participant or endpoint using the Microsoft Teams API.
API Details
- API Name: Microsoft Teams API
- OpenAPI Ref:
../../openapi/microsoft-teams-openapi.yaml - Endpoint: POST /communications/calls/{call-id}/transfer
- Operation ID: transferCall
- Tag: CallIvr
Sandbox
- Base URL:
http://localhost:8080/rest/microsoft-teams-api/1.0.0 - Full URL:
http://localhost:8080/rest/microsoft-teams-api/1.0.0/communications/calls/{call-id}/transfer
Required Headers
Content-Type: application/jsonAuthorization: Bearer {access_token}
OAuth Scopes
Calls.Initiate.All
Parameters
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| call-id | string | Yes | The unique identifier of the call to transfer. |
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| transferTarget | InvitationParticipantInfo | Yes | The transfer target participant information including identity and replacement. |
| clientContext | string | No | The client context for correlating the request with callbacks. |
Example Request
curl -X POST \
"http://localhost:8080/rest/microsoft-teams-api/1.0.0/communications/calls/call-001/transfer" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {access_token}" \
-d '{
"transferTarget": {
"identity": {
"user": {
"id": "user-002",
"displayName": "John Doe"
}
}
},
"clientContext": "transfer-context-001"
}'
Example Response
HTTP/1.1 202 Accepted
Instructions
- Obtain a valid access token with the required scopes.
- Identify the active call by its
call-id. - Construct the request body with the
transferTargetcontaining the target participant identity. - Optionally include a
clientContextstring for correlating the transfer request with subsequent callbacks. - Send the POST request to the transfer endpoint.
- A 202 Accepted response indicates the transfer request has been accepted and is being processed.
