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.
Next.js App Router Expert
Development
A skill that turns Claude into a Next.js App Router expert.
README Generator
Development
Creates professional and comprehensive README.md files for your projects.
API Documentation Writer
Development
Generates comprehensive API documentation in OpenAPI/Swagger format.