REST API TOOLS (PREVIEW)

Extend Your Agent with REST API Tools

Connect your Microsoft Copilot Studio agent to external applications and enterprise systems using REST APIs. Learn how to import an OpenAPI specification, configure authentication, expose API operations as agent tools, and enable your AI assistant to retrieve real-time data and perform business actions securely.

Extend Your Agent with REST API Tools (Preview)

REST API tools allow Microsoft Copilot Studio agents to securely connect with external applications, retrieve live business data, and perform actions such as creating records, updating information, or accessing enterprise systems.

Preview Feature

REST API Tools are currently available as a Preview feature in Microsoft Copilot Studio.

Preview features are intended for evaluation and testing only and may change before General Availability.

Use production-ready capabilities if you're building enterprise solutions for live environments.

Prerequisites

✔ Microsoft Copilot Studio License
✔ Maker-level permissions
✔ OpenAPI Specification (JSON)
✔ API Authentication Details
✔ OpenAPI v2 Specification (v3 is automatically converted)
OpenAPI Specification

Upload an OpenAPI JSON document describing API endpoints, request parameters, response models, and supported operations.

Authentication

Configure how your agent securely connects to the API using API Keys, OAuth 2.0, or no authentication.

Descriptions

Well-written descriptions help Copilot determine exactly when each API should be used during conversations.

REST API Integration Workflow

1️⃣
Upload OpenAPI File
2️⃣
Configure API Details
3️⃣
Authentication
4️⃣
Select API Tools
5️⃣
Review Parameters
6️⃣
Publish & Connect
No Authentication

Suitable for public APIs that don't require user credentials.

API Key

Users provide an API Key at runtime. The key can be passed in either the request header or query string.

OAuth 2.0

Enterprise authentication supporting Client ID, Client Secret, Authorization URL, Token URL, Refresh URL and Scopes.

Configure API Tools

  • Select only the required API operations.
  • Provide meaningful tool names.
  • Write detailed descriptions.
  • Descriptions help Copilot choose the correct tool.

Review Parameters

  • Review imported inputs.
  • Review outputs returned by the API.
  • Improve parameter descriptions.
  • Blank descriptions must be completed before publishing.

Example Use Case

Consider an internal ticketing application named SunnyADO.

Users can simply ask:
  • Show my open tickets
  • Create a new support ticket
  • Update ticket priority
  • Find assigned incidents

Copilot automatically selects the appropriate REST API operation, authenticates the user, executes the request, and returns the result.

Best Practices

✔ Write descriptive API summaries.
✔ Include business-friendly synonyms.
✔ Enable only required operations.
✔ Review every parameter description.
✔ Prefer OAuth 2.0 for enterprise security.
✔ Keep OpenAPI documentation updated.

Benefits of REST API Tools

✔ Access real-time business data
✔ Connect custom enterprise applications
✔ Automate business processes
✔ Perform CRUD operations
✔ Secure authentication support
✔ Extend Copilot beyond built-in connectors