REST API
Connect your Copilot to external systems by pulling data from REST APIs. This allows your Copilot to access real-time data, such as updates, reports, or dynamic information from third-party services.
Key Configuration Options
-
HTTP Methods : Choose the appropriate method based on the API's purpose.
-
GET: To fetch data.
-
POST: To send new data.
-
PUT: To update existing data.
Select the appropriate HTTP method for your API request.
-
-
Import cURL Commands: You can also import cURL commands to quickly configure API requests.
Import cURL commands to configure API requests. -
Body: For POST or PUT requests, include a JSON payload in the "Body" section, if required. Example:
Include a JSON payload for POST or PUT requests. {
"name": "John Doe",
"email": "[email protected]",
"status": "active"
} -
Headers: Specify the HTTP headers required for the API, such as: Custom Headers Add any additional headers as required by the API.
Specify HTTP headers for the API request. -
Query Parameters: Add key-value pairs to refine the request.
Add query parameters to refine your API request. -
Authorization: Provide API tokens or keys for secure access.
Enter API tokens or keys for secure access