Developer API Documentation
The CopilotBuilder Developer API allows you to manage your Copilots and Data Collections programmatically.
To chat and interact with deployed Copilots, use the Chat API.
Before you begin
- Create a Developer API Key here
Data Collection Endpoints
POST Add Text Item
POST https://localhost:7001/api/datacollection/addtextdocument
Request Body
{ "dataCollectionId": "string", "content": "string" }
Parameters
dataCollectionId
- The ID of the Data Collection to add the text item to.content
- The text content to add to the Data Collection.
Example - cURL
curl --location 'https://api.copilotbuilder.ai/api/datacollection/addtextdocument' \
--header 'x-api-key: API Key' \
--header 'Content-Type: application/json' \
--data '{
"dataCollectionId": "Data Collection ID",
"content": "My company is located in Columbus, OH"
}'
Response
HTTP status code