Create Call
Create a new call in Microsoft Teams communications.
SKILL.md
Full skill instructions
Create Call
Create a new call in Microsoft Teams communications.
API Details
- API Name: Microsoft Teams API
- OpenAPI Ref:
../../openapi/microsoft-teams-openapi.yaml - Endpoint: POST /communications/calls
- Operation ID: createCall
- 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
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| callbackUri | string | Yes | The callback URL for call state notifications |
| requestedModalities | array | Yes | The modalities for the call (audio, video) |
| targets | array | No | The list of participants to call |
| tenantId | string | No | The tenant identifier |
Example Request
curl -X POST "http://localhost:8080/rest/microsoft-teams-api/1.0.0/communications/calls" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '{
"callbackUri": "https://bot.example.com/api/calls",
"requestedModalities": ["audio"],
"tenantId": "tenant-001"
}'
Example Response
{
"id": "call-001",
"state": "established",
"direction": "outgoing",
"callbackUri": "https://bot.example.com/api/calls",
"requestedModalities": [
"audio"
],
"tenantId": "tenant-001"
}
Status Code: 201 Created
Instructions
- Obtain a valid access token with the
Calls.Initiate.Allscope. - Construct the request body with the required
callbackUriandrequestedModalities. - Optionally specify
targetsto define the participants andtenantIdfor the tenant context. - Send a POST request to the
/communications/callsendpoint. - A successful request returns a 201 status code with the created call object.
- Monitor the
callbackUrifor call state change notifications.
