{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-communication-services/json-schema/microsoft-azure-communication-services-teams-user-exchange-token-request-schema.json",
  "title": "TeamsUserExchangeTokenRequest",
  "description": "A request to exchange a Teams user access token.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-communication-services-identity-api-openapi.yml#/components/schemas/TeamsUserExchangeTokenRequest",
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "description": "Entra ID access token of a Teams User to acquire a new Communication Identity access token."
    },
    "appId": {
      "type": "string",
      "description": "Client ID of an Entra ID application to be verified against the appid claim in the Entra ID access token."
    },
    "userId": {
      "type": "string",
      "description": "Object ID of an Entra ID user (Teams User) to be verified against the oid claim in the Entra ID access token."
    }
  },
  "required": [
    "token",
    "appId",
    "userId"
  ]
}