Microsoft Power Virtual Agents Tokens API

The Tokens API from Microsoft Power Virtual Agents — 2 operation(s) for tokens.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-power-virtual-agents-tokens-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-power-virtual-agents-tokens-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Microsoft Copilot Studio Direct Line Conversations Tokens API
  description: 'Direct Line API 3.0 endpoints used to connect a custom application to a Microsoft Copilot Studio (formerly Power Virtual Agents) agent. The flow: (1) GET the token endpoint exposed by the agent (Mobile app channel) to obtain a Direct Line token, (2) start a conversation against https://directline.botframework.com, (3) post Activity objects to the bot and (4) poll for activities returned by the bot.'
  version: '3.0'
servers:
- url: https://directline.botframework.com
  description: Direct Line 3.0 service used by Copilot Studio agents
security:
- bearer: []
tags:
- name: Tokens
paths:
  /v3/directline/tokens/generate:
    post:
      tags:
      - Tokens
      summary: Generate a Direct Line token from a Direct Line secret
      description: Exchanges a Direct Line secret for a short-lived token. For Copilot Studio agents the token is normally obtained by issuing a GET to the agent-specific token endpoint shown on the Mobile app channel page.
      operationId: generateDirectLineToken
      responses:
        '200':
          description: Direct Line token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenResponse'
  /v3/directline/tokens/refresh:
    post:
      tags:
      - Tokens
      summary: Refresh a Direct Line token
      operationId: refreshDirectLineToken
      responses:
        '200':
          description: Refreshed token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenResponse'
components:
  schemas:
    TokenResponse:
      type: object
      properties:
        token:
          type: string
        expires_in:
          type: integer
        conversationId:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Direct Line authentication uses either a long-lived secret or a short-lived token. Supply the value in the Authorization header as `Bearer {secret-or-token}`.
x-generated-from: https://learn.microsoft.com/en-us/microsoft-copilot-studio/publication-connect-bot-to-custom-application
x-generated-by: claude-genwave10-08-2026-05-23