Answer Call
Answer an incoming call in Microsoft Teams communications.
API Details
- API Name: Microsoft Teams API
- OpenAPI Ref:
../../openapi/microsoft-teams-openapi.yaml - Endpoint: POST /communications/calls/{call-id}/answer
- Operation ID: answerCall
- Tag: Calls
Sandbox
- Base URL:
http://localhost:8080/rest/microsoft-teams-api/1.0.0
Required Headers
Authorization: Bearer {access_token}Content-Type: application/json
OAuth Scopes
Calls.Initiate.All
Parameters
Path Parameters
| Name | Type | Required | Description | |------|------|----------|-------------| | call-id | string | Yes | The unique identifier of the call |
Request Body
| Name | Type | Required | Description | |------|------|----------|-------------| | callbackUri | string | Yes | The callback URL for call state notifications | | acceptedModalities | array | Yes | The accepted modalities (audio, video, videoBasedScreenSharing) | | mediaConfig | object | No | The media configuration for the call |
Example Request
curl -X POST "http://localhost:8080/rest/microsoft-teams-api/1.0.0/communications/calls/{call-id}/answer" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '{
"callbackUri": "https://bot.example.com/api/calls",
"acceptedModalities": ["audio"],
"mediaConfig": {
"@odata.type": "#microsoft.graph.appHostedMediaConfig",
"blob": "<Media Session Configuration>"
}
}'
Example Response
No content body is returned.
Status Code: 202 Accepted
Instructions
- Obtain a valid access token with the
Calls.Initiate.Allscope. - Identify the call ID for the incoming call you want to answer.
- Construct the request body with the
callbackUriandacceptedModalities. - Optionally include
mediaConfigto configure the media session. - The
acceptedModalitiesarray can includeaudio,video, orvideoBasedScreenSharing. - Send a POST request to the
/communications/calls/{call-id}/answerendpoint. - A successful request returns a 202 status code indicating the answer operation has been accepted.
Expert Next.js App Router
Developpement
Un skill qui transforme Claude en expert Next.js App Router.
Générateur de README
Developpement
Crée des README.md professionnels et complets pour vos projets.
Rédacteur de Documentation API
Developpement
Génère de la documentation API complète au format OpenAPI/Swagger.