Use Call REST API to give an AI Agent or Copilot access to related API operations from an OpenAPI definition. The selected connection provides access to the external system. The definition describes the operations the agent can choose.
Before you start
Have permission to edit the agent or Copilot, an existing HTTP API (Generic) or OAuth 2.0 API connection, and an OpenAPI definition in YAML or JSON. Use a test connection and include only operations the assistant should call.
Add the Call REST API tool
Open the agent or Copilot and select Tools → Add a tool → Call REST API → Next.
Select a connection and create the tool
Select the API connection and enter a tool name. Select Add or Add and configure.
Field descriptions
Field | Description |
Select connection | Select an available API connection. |
Connection type | Displays the selected connection type. |
Name | The display name of the tool inside the AI Agent or Copilot. |
The available connection scope is consistent with the Call HTTP request tool.
Supported connection types include:
HTTP API (Generic)
OAuth 2.0 API
Configure tool details
Review the name, description, connection, and status under Details. If the connection uses OAuth 2.0, check its authorization before testing the operations.
Define the API schema
Use the schema to specify the methods, paths, parameters, request formats, and responses available to the assistant.
Supported schema formats
Use YAML or JSON in OpenAPI format. Keep both the connection and the server address consistent with the environment you intend to use. Keep keys and tokens in the connection’s authentication settings.
Add the schema
Paste the definition into Schema. Yeeflow parses it and lists the operations under Available operations. These examples describe the same read-only operation. Replace the example host with your authorized test API before testing.
YAML example
openapi: 3.1.0
info:
title: Sample API
version: 1.0.0
servers:
- url: https://api.example.com/v1
paths:
/users:
get:
operationId: listUsers
summary: List users
parameters:
- name: page
in: query
schema:
type: integer
responses:
'200':
description: User list returned
JSON example
{
"openapi": "3.1.0",
"info": {
"title": "Sample API",
"version": "1.0.0"
},
"servers": [
{ "url": "https://api.example.com/v1" }
],
"paths": {
"/users": {
"get": {
"operationId": "listUsers",
"summary": "List users",
"parameters": [
{
"name": "page",
"in": "query",
"schema": { "type": "integer" }
}
],
"responses": {
"200": { "description": "User list returned" }
}
}
}
}
}Review available operations
The Available operations section displays all operations parsed from the schema.
The table includes:
Column | Description |
Name | Operation name |
Method | HTTP method |
Path | API endpoint path |
Configuration | Customize operation settings |
For the example, check that GET /users appears. Repair the definition before continuing if an operation you expect is missing or the method or path differs.
Customize an operation
Select Customize to adjust the operation name and description. The description initially uses the OpenAPI summary. Explain when to choose the operation and which input it needs.
Configure completion behavior
The Completion section controls what happens after the tool finishes running.
You can configure:
After running behavior
Output variables available to the Agent and other tools
Default outputs include:
Output | Type |
Data | Object |
Status code | Number |
These outputs can be referenced by downstream tools or workflow steps.
Preview and test the tool
In Preview & test run, request a known test result. Check the operation, method, path, input values, HTTP status, and returned fields. Test missing or invalid input and a connection without access so you can check what the assistant reports when a call fails.
Save and publish
Save the settings and check the assistant using the test connection. Publish when the test responses match what the assistant should return. If the tool is deployed through Copilot, check access through the intended installation.
Notes
Keep related operations together and expose only those the assistant needs. For one request that you want to configure directly, use the HTTP request tool. Call HTTP Request tool

