Repository navigation
REST API Reference
This document provides comprehensive documentation for the XRCopilot Public REST API, including all available endpoints, request/response formats, and usage examples.
- Overview
- Authentication
- Base URL
- API Versioning
- Topics API
- Files API
- Profiles API
- Agents API
- Chat API
- Common API
- Models Reference
- Error Handling
The XRCopilotLab REST API enables you to programmatically manage topics, profiles, agents, and conduct AI-powered conversations. The API follows RESTful conventions and uses JSON for request and response bodies.
All API requests require authentication using a subscription key passed in the header.
Header:
Ocp-Apim-Subscription-Key: your-subscription-key
Example:
curl -X GET "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/topics/company-123?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key"https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/
Include the API version as a query parameter in all requests:
| Environment | Version Parameter |
|---|---|
| Production | api-version=2025-05-01 |
Topics are containers that organize profiles, agents, and files within a company.
Retrieves all topics for a company.
Endpoint:
GET /topics/{companyId}
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
filter |
string | No | Filter string to search topics by name |
list |
boolean | No | If true, returns lightweight list without nested entities |
Example Request:
curl -X GET "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/topics/company-123?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key"Example Response:
[
{
"companyId": "company-123",
"topicId": "sales-kb",
"topicName": "Sales Knowledge Base",
"description": "Sales documentation and FAQs",
"profileNumber": 2,
"fileNumber": 15,
"targetNumber": 0,
"agentNumber": 3,
"endpointNumber": 1,
"contributorNumber": 0
}
]Retrieves a specific topic.
Endpoint:
GET /topics/{companyId}/{topicId}/pub
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
Example Request:
curl -X GET "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/topics/company-123/sales-kb/pub?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key"Example Response:
{
"companyId": "company-123",
"topicId": "sales-kb",
"topicName": "Sales Knowledge Base",
"description": "Sales documentation and FAQs",
"profileNumber": 2,
"fileNumber": 15,
"agentNumber": 3,
"topicFiles": [],
"profiles": [],
"agents": [],
"topicTargets": []
}Creates a new topic or updates an existing one.
Endpoint:
POST /topics
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
Request Body:
{
"companyId": "company-123",
"topicId": "sales-kb",
"topicName": "Sales Knowledge Base",
"description": "Sales documentation and FAQs"
}Example Request:
curl -X POST "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/topics?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key" \
-H "Content-Type: application/json" \
-d '{
"companyId": "company-123",
"topicId": "sales-kb",
"topicName": "Sales Knowledge Base",
"description": "Sales documentation and FAQs"
}'Example Response:
{
"companyId": "company-123",
"topicId": "sales-kb",
"topicName": "Sales Knowledge Base",
"description": "Sales documentation and FAQs",
"profileNumber": 0,
"fileNumber": 0,
"agentNumber": 0
}Error Response (403 - License Limit):
"Topics limit reached. No more topics can be created. (Active Topics: 5 of 5)"Deletes a topic and all associated resources (profiles, agents, files).
Endpoint:
DELETE /topics/{companyId}/{topicId}
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
Example Request:
curl -X DELETE "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/topics/company-123/sales-kb?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key"Response: 200 OK on success
Warning: This operation is irreversible and deletes all profiles, agents, and files within the topic.
Manage files within topics for document indexing and agent knowledge.
Uploads a file to a topic. ZIP files are automatically extracted.
Endpoint:
POST /topics/files/{companyId}/{topicId}/{fileName}/{scope}
Path Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
companyId |
string | Yes | Company identifier |
topicId |
string | Yes | Topic identifier |
fileName |
string | Yes | File name (URL encoded) |
scope |
integer | Yes | File scope: 0 = Profile, 1 = Agent |
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
preserveStructure |
boolean | No | For ZIP files: preserve folder structure |
Request Body: Binary file content
Example Request:
curl -X POST "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/topics/files/company-123/sales-kb/product-manual.pdf/0?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key" \
-H "Content-Type: application/octet-stream" \
--data-binary @product-manual.pdfResponse: 201 Created with file path
Supported File Types:
- Documents: PDF, DOCX, DOC, TXT, MD, CSV, JSON, XLSX, PPTX
- Media: MP4, AVI, MKV, MOV, WEBM, MP3, WAV (for transcription)
- Archives: ZIP (automatically extracted)
Gets a temporary SAS URL for downloading a file (valid for 5 hours).
Endpoint:
GET /topics/files/{companyId}/{topicId}/{fileName}/url
Path Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
companyId |
string | Yes | Company identifier |
topicId |
string | Yes | Topic identifier |
fileName |
string | Yes | File name (URL encoded) |
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
Example Request:
curl -X GET "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/topics/files/company-123/sales-kb/product-manual.pdf/url?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key"Example Response:
"https://storageaccount.blob.core.windows.net/sales-kb/product-manual.pdf?sv=2021-06-08&se=2024-01-15T15%3A00%3A00Z&sr=b&sp=r&sig=..."
Deletes a file from a topic.
Endpoint:
DELETE /topics/files/{companyId}/{topicId}/{fileName}
Path Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
companyId |
string | Yes | Company identifier |
topicId |
string | Yes | Topic identifier |
fileName |
string | Yes | File name (URL encoded) |
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
Example Request:
curl -X DELETE "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/topics/files/company-123/sales-kb/product-manual.pdf?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key"Response: 200 OK on success, 404 Not Found if file doesn't exist
Deletes multiple files in a single request.
Endpoint:
POST /topics/files/multidelete
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
Request Body:
{
"files": [
{
"companyId": "company-123",
"topicId": "sales-kb",
"fileName": "file1.pdf"
},
{
"companyId": "company-123",
"topicId": "sales-kb",
"fileName": "file2.pdf"
}
]
}Example Request:
curl -X POST "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/topics/files/multidelete?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key" \
-H "Content-Type: application/json" \
-d '{
"files": [
{"companyId": "company-123", "topicId": "sales-kb", "fileName": "file1.pdf"},
{"companyId": "company-123", "topicId": "sales-kb", "fileName": "file2.pdf"}
]
}'Response: 200 OK on success
Profiles contain indexed documents used for RAG (Retrieval-Augmented Generation) by agents.
Retrieves all profiles for a topic.
Endpoint:
GET /profiles/{companyId}/{topicId}
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
filter |
string | No | Filter string to search profiles |
list |
boolean | No | If true, returns lightweight ProfileBase objects |
Example Request:
curl -X GET "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/profiles/company-123/sales-kb?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key"Example Response:
[
{
"companyId": "company-123",
"topicId": "sales-kb",
"profileId": "docs-profile",
"profileName": "Documentation Profile",
"description": "Product documentation",
"isActive": true,
"documentsLanguage": "en",
"documentsIndexingStatus": 0,
"audioIndexingStatus": 0,
"webScrapingIndexingStatus": 0,
"documentsIndexingCount": 15,
"audioIndexingCount": 0,
"webScrapingIndexingCount": 0,
"fileNumber": 15,
"targetNumber": 0,
"endpointNumber": 1
}
]Retrieves a specific profile.
Endpoint:
GET /profiles/{companyId}/{topicId}/{profileId}/pub
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
Example Request:
curl -X GET "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/profiles/company-123/sales-kb/docs-profile/pub?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key"Example Response:
{
"companyId": "company-123",
"topicId": "sales-kb",
"profileId": "docs-profile",
"profileName": "Documentation Profile",
"description": "Product documentation",
"isActive": true,
"documentsLanguage": "en",
"documentsIndexingStatus": 0,
"audioIndexingStatus": 0,
"webScrapingIndexingStatus": 0,
"documentsIndexingCount": 15,
"profileFiles": [],
"profileTargets": []
}Creates a new profile or updates an existing one.
Endpoint:
POST /profiles
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
Request Body:
{
"companyId": "company-123",
"topicId": "sales-kb",
"profileId": "docs-profile",
"profileName": "Documentation Profile",
"description": "Product documentation",
"documentsLanguage": "en",
"isActive": false
}Example Request:
curl -X POST "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/profiles?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key" \
-H "Content-Type: application/json" \
-d '{
"companyId": "company-123",
"topicId": "sales-kb",
"profileId": "docs-profile",
"profileName": "Documentation Profile",
"description": "Product documentation",
"documentsLanguage": "en",
"isActive": false
}'Example Response:
{
"companyId": "company-123",
"topicId": "sales-kb",
"profileId": "docs-profile",
"profileName": "Documentation Profile",
"description": "Product documentation",
"documentsLanguage": "en",
"isActive": false,
"documentsIndexingStatus": 0
}Deletes a profile and its search index.
Endpoint:
DELETE /profiles/{companyId}/{topicId}/{profileId}
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
Example Request:
curl -X DELETE "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/profiles/company-123/sales-kb/docs-profile?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key"Response: 200 OK on success
Activates or deactivates a profile's search index. Activation triggers document indexing.
Endpoint:
POST /profiles/{companyId}/{topicId}/{profileId}/activateIndex
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
Request Body:
{
"isActive": true
}Example Request (Activate):
curl -X POST "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/profiles/company-123/sales-kb/docs-profile/activateIndex?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key" \
-H "Content-Type: application/json" \
-d '{"isActive": true}'Response: 200 OK on success
Error Response (403 - License Limit):
"Active profiles limit reached. No more profiles can be activated. (Active Profiles: 10 of 10)"Gets the current indexing status of a profile.
Endpoint:
GET /profiles/indexing/{companyId}/{topicId}/{profileId}/check/status
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
Example Request:
curl -X GET "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/profiles/indexing/company-123/sales-kb/docs-profile/check/status?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key"Example Response:
{
"documentsIndexingStatus": 0,
"audioIndexingStatus": 0,
"webScrapingIndexingStatus": 0,
"documentsIndexingCount": 15,
"audioIndexingCount": 0,
"webScrapingIndexingCount": 0,
"statistics": [
{
"indexName": "docs-profile",
"documentCount": 150,
"storageSize": 1048576
}
]
}Indexing Status Values:
| Status | Value | Description |
|---|---|---|
| Ready | 0 | Indexing complete |
| IndexingData | 1 | Currently indexing |
| ErrorIndexingData | 100 | Error during indexing |
Agents are AI assistants that use profiles for knowledge retrieval.
Retrieves all agents for a topic.
Endpoint:
GET /agents/{companyId}/{topicId}
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
filter |
string | No | Filter string to search agents |
list |
boolean | No | If true, returns lightweight AgentBase objects |
Example Request:
curl -X GET "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/agents/company-123/sales-kb?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key"Example Response:
[
{
"companyId": "company-123",
"topicId": "sales-kb",
"agentId": "sales-assistant",
"agentName": "Sales Assistant",
"isActive": true,
"systemMessage": "You are a helpful sales assistant...",
"maxTokens": 4096,
"temperature": 0.7,
"minRankingScore": 0.5,
"enableGroundednessDetection": true,
"fileNumber": 0,
"targetNumber": 0,
"endpointNumber": 1,
"profileNumber": 1
}
]Retrieves a specific agent.
Endpoint:
GET /agents/{companyId}/{topicId}/{agentId}/pub
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
Example Request:
curl -X GET "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/agents/company-123/sales-kb/sales-assistant/pub?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key"Example Response:
{
"companyId": "company-123",
"topicId": "sales-kb",
"agentId": "sales-assistant",
"agentName": "Sales Assistant",
"topicName": "Sales Knowledge Base",
"isActive": true,
"expirationDate": null,
"systemMessage": "You are a helpful sales assistant...",
"maxTokens": 4096,
"temperature": 0.7,
"minRankingScore": 0.5,
"minWordsValidation": null,
"numberOfInteractions": 5,
"enableGroundednessDetection": true,
"agentCustomWords": [],
"agentProfiles": [
{
"profileId": "docs-profile",
"profileName": "Documentation Profile"
}
],
"agentFiles": [],
"agentTargets": [],
"agentEndpoints": []
}Creates a new agent or updates an existing one.
Endpoint:
POST /agents
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
Request Body:
{
"companyId": "company-123",
"topicId": "sales-kb",
"agentId": "sales-assistant",
"agentName": "Sales Assistant",
"systemMessage": "You are a helpful sales assistant. Answer questions based on the product documentation provided. Be concise and professional.",
"maxTokens": 4096,
"temperature": 0.7,
"minRankingScore": 0.5,
"numberOfInteractions": 5,
"enableGroundednessDetection": true,
"isActive": false
}Example Request:
curl -X POST "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/agents?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key" \
-H "Content-Type: application/json" \
-d '{
"companyId": "company-123",
"topicId": "sales-kb",
"agentId": "sales-assistant",
"agentName": "Sales Assistant",
"systemMessage": "You are a helpful sales assistant...",
"maxTokens": 4096,
"temperature": 0.7,
"minRankingScore": 0.5,
"enableGroundednessDetection": true,
"isActive": false
}'Example Response:
{
"companyId": "company-123",
"topicId": "sales-kb",
"agentId": "sales-assistant",
"agentName": "Sales Assistant",
"systemMessage": "You are a helpful sales assistant...",
"maxTokens": 4096,
"temperature": 0.7,
"isActive": false
}Deletes an agent.
Endpoint:
DELETE /agents/{companyId}/{topicId}/{agentId}
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
Example Request:
curl -X DELETE "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/agents/company-123/sales-kb/sales-assistant?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key"Response: 200 OK on success
Activates or deactivates an agent.
Endpoint:
POST /agents/{companyId}/{topicId}/{agentId}
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
Request Body:
{
"isActive": true
}Example Request:
curl -X POST "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/agents/company-123/sales-kb/sales-assistant?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key" \
-H "Content-Type: application/json" \
-d '{"isActive": true}'Response: 200 OK on success
Error Response (403 - License Limit):
"Active agents limit reached. No more agents can be activated. (Active Agents: 5 of 5)"Conduct AI-powered conversations with agents.
Gets the welcome message for an agent.
Endpoint:
GET /agents/{companyId}/{topicId}/{agentId}/{endpointId}/welcome/{language}
Path Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
companyId |
string | Yes | Company identifier |
topicId |
string | Yes | Topic identifier |
agentId |
string | Yes | Agent identifier |
endpointId |
string | Yes | Endpoint identifier |
language |
string | Yes | Language code (e.g., en, it, fr) |
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
Example Request:
curl -X GET "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/agents/company-123/sales-kb/sales-assistant/default/welcome/en?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key"Example Response:
{
"responseType": "welcome",
"message": "Hello! I'm your Sales Assistant. How can I help you today?",
"conversationId": "550e8400-e29b-41d4-a716-446655440000",
"answerLanguage": "en"
}Sends a message to an agent and receives a response.
Endpoint:
POST /agents/{companyId}/{topicId}/{agentId}/{endpointId}/chat
Path Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
companyId |
string | Yes | Company identifier |
topicId |
string | Yes | Topic identifier |
agentId |
string | Yes | Agent identifier |
endpointId |
string | Yes | Endpoint identifier |
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
Request Body:
{
"companyId": "company-123",
"topicId": "sales-kb",
"agentId": "sales-assistant",
"endpointId": "default",
"message": "What products do you offer for enterprise customers?",
"conversationId": "550e8400-e29b-41d4-a716-446655440000",
"answerLanguage": "en",
"enableLogs": false,
"parameters": null,
"presets": null
}Request Body Properties:
| Property | Type | Required | Description |
|---|---|---|---|
companyId |
string | Yes | Company identifier |
topicId |
string | Yes | Topic identifier |
agentId |
string | Yes | Agent identifier |
endpointId |
string | Yes | Endpoint identifier |
message |
string | Yes | User's message |
conversationId |
string | Yes | Unique conversation ID (UUID) |
answerLanguage |
string | No | Desired response language |
enableLogs |
boolean | No | Include completion logs in response |
parameters |
object | No | Override agent parameters |
presets |
array | No | Available presets for the conversation |
signalRConnectionId |
string | No | SignalR connection for real-time updates |
Parameters Override Object:
{
"parameters": {
"systemMessage": "Custom system message",
"maxTokens": 2048,
"temperature": 0.5,
"minRankingScore": 0.6,
"minWordsValidation": 10,
"numberOfInteractions": 5,
"enableGroundednessDetection": true
}
}Example Request:
curl -X POST "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/agents/company-123/sales-kb/sales-assistant/default/chat?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key" \
-H "Content-Type: application/json" \
-d '{
"companyId": "company-123",
"topicId": "sales-kb",
"agentId": "sales-assistant",
"endpointId": "default",
"message": "What products do you offer for enterprise customers?",
"conversationId": "550e8400-e29b-41d4-a716-446655440000",
"answerLanguage": "en"
}'Example Response:
{
"responseType": "answer",
"message": "We offer several enterprise solutions:\n\n1. **Enterprise Platform** - A comprehensive solution for large organizations...\n2. **Professional Suite** - Designed for growing businesses...\n\nWould you like more details about any of these products?",
"intent": null,
"conversationId": "550e8400-e29b-41d4-a716-446655440000",
"answerLanguage": "en",
"documents": [
{
"title": "Enterprise Products Overview",
"uri": "https://storage.blob.core.windows.net/sales-kb/enterprise-overview.pdf",
"fileName": "enterprise-overview.pdf",
"totalPages": 25,
"relevantPages": [3, 5, 7],
"relevanceScore": 0.89
},
{
"title": "Pricing Guide 2024",
"uri": "https://storage.blob.core.windows.net/sales-kb/pricing-2024.pdf",
"fileName": "pricing-2024.pdf",
"totalPages": 10,
"relevantPages": [2],
"relevanceScore": 0.75
}
],
"completionLog": null,
"htmlMessage": "<p>We offer several enterprise solutions:</p><ol><li><strong>Enterprise Platform</strong>...</li></ol>",
"rawMessage": "We offer several enterprise solutions: 1. Enterprise Platform..."
}Response Properties:
| Property | Type | Description |
|---|---|---|
responseType |
string | Type of response: answer, welcome, error
|
message |
string | The assistant's response (markdown) |
intent |
object | Detected user intent (if applicable) |
conversationId |
string | Conversation identifier |
answerLanguage |
string | Language of the response |
documents |
array | Source documents used for the answer |
completionLog |
object | Detailed completion logs (if enabled) |
htmlMessage |
string | Response converted to HTML |
rawMessage |
string | Plain text response without formatting |
speechMessage |
string | Audio data for text-to-speech (if enabled) |
Retrieves conversation history.
Endpoint:
GET /agents/{companyId}/{topicId}/{agentId}/conversations/{conversationId}
Path Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
companyId |
string | Yes | Company identifier |
topicId |
string | Yes | Topic identifier |
agentId |
string | Yes | Agent identifier |
conversationId |
string | Yes | Conversation ID or all for all conversations |
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
messages |
integer | Yes | Max messages to retrieve (0 for all) |
page |
integer | No | Page number (default: 1) |
pageSize |
integer | No | Page size (default: 50, max: 50) |
group |
boolean | No | Group results by conversation |
userId |
string | No | Filter by user ID |
dateFrom |
string | No | Filter from date (ISO 8601) |
dateTo |
string | No | Filter to date (ISO 8601) |
Example Request (Single Conversation):
curl -X GET "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/agents/company-123/sales-kb/sales-assistant/conversations/550e8400-e29b-41d4-a716-446655440000?messages=50&api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key"Example Response:
{
"conversationId": "550e8400-e29b-41d4-a716-446655440000",
"messages": [
{
"id": "msg-001",
"conversationId": "550e8400-e29b-41d4-a716-446655440000",
"companyId": "company-123",
"topicId": "sales-kb",
"agentId": "sales-assistant",
"role": "user",
"content": "What products do you offer for enterprise customers?",
"originalContent": "What products do you offer for enterprise customers?",
"completionTokens": 0,
"promptTokens": 0,
"totalTokens": 0,
"timeStamp": "2024-01-15T10:30:00Z"
},
{
"id": "msg-002",
"conversationId": "550e8400-e29b-41d4-a716-446655440000",
"companyId": "company-123",
"topicId": "sales-kb",
"agentId": "sales-assistant",
"role": "assistant",
"content": "We offer several enterprise solutions...",
"originalContent": "We offer several enterprise solutions...",
"completionTokens": 150,
"promptTokens": 500,
"totalTokens": 650,
"timeStamp": "2024-01-15T10:30:05Z"
}
]
}Example Request (All Conversations):
curl -X GET "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/agents/company-123/sales-kb/sales-assistant/conversations/all?messages=100&group=true&api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key"Common utilities for voices and text-to-speech.
Retrieves available voices for text-to-speech.
Endpoint:
GET /common/voices
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
Example Request:
curl -X GET "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/common/voices?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key"Example Response:
[
{
"id": "en-US-JennyNeural",
"voiceName": "Jenny (US English)",
"voiceGender": 1
},
{
"id": "en-US-GuyNeural",
"voiceName": "Guy (US English)",
"voiceGender": 0
},
{
"id": "it-IT-ElsaNeural",
"voiceName": "Elsa (Italian)",
"voiceGender": 1
}
]Voice Gender Values:
| Value | Description |
|---|---|
| 0 | Male |
| 1 | Female |
Converts text to speech audio.
Endpoint:
POST /common/speech
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
api-version |
string | Yes | API version |
Request Body:
{
"text": "Hello, how can I help you today?",
"language": "en",
"voiceId": "en-US-JennyNeural"
}Example Request:
curl -X POST "https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/common/speech?api-version=2025-05-01" \
-H "Ocp-Apim-Subscription-Key: your-subscription-key" \
-H "Content-Type: application/json" \
-d '{
"text": "Hello, how can I help you today?",
"language": "en",
"voiceId": "en-US-JennyNeural"
}'Example Response:
{
"voiceData": "UklGRiQAAABXQVZFZm10IBAAAAABAAEA..."
}The voiceData field contains base64-encoded audio data (WAV format).
{
"companyId": "string (required)",
"topicId": "string (required)",
"topicName": "string (required)",
"description": "string (required)",
"profileNumber": "integer (read-only)",
"fileNumber": "integer (read-only)",
"targetNumber": "integer (read-only)",
"agentNumber": "integer (read-only)",
"endpointNumber": "integer (read-only)",
"contributorNumber": "integer (read-only)",
"topicFiles": "array (read-only)",
"profiles": "array (read-only)",
"agents": "array (read-only)",
"topicTargets": "array (read-only)",
"endpoints": "array (read-only)"
}{
"companyId": "string (required)",
"topicId": "string (required)",
"profileId": "string (required)",
"profileName": "string (required)",
"description": "string",
"isActive": "boolean",
"documentsLanguage": "string",
"documentsIndexingStatus": "integer",
"audioIndexingStatus": "integer",
"webScrapingIndexingStatus": "integer",
"documentsIndexingCount": "integer",
"audioIndexingCount": "integer",
"webScrapingIndexingCount": "integer",
"profileFiles": "array",
"profileTargets": "array",
"endpoints": "array"
}{
"companyId": "string (required)",
"topicId": "string (required)",
"agentId": "string (required)",
"agentName": "string (required)",
"topicName": "string (read-only)",
"isActive": "boolean",
"expirationDate": "datetime",
"systemMessage": "string",
"maxTokens": "integer",
"temperature": "float (0.0-2.0)",
"minRankingScore": "float (0.0-1.0)",
"minWordsValidation": "integer",
"numberOfInteractions": "integer",
"enableGroundednessDetection": "boolean",
"agentCustomWords": "array",
"agentProfiles": "array",
"agentFiles": "array",
"agentTargets": "array",
"agentEndpoints": "array",
"endpoints": "array",
"models": "array"
}{
"companyId": "string (required)",
"topicId": "string (required)",
"agentId": "string (required)",
"endpointId": "string (required)",
"message": "string (required)",
"conversationId": "string (required, UUID)",
"answerLanguage": "string",
"presets": "array",
"parameters": {
"systemMessage": "string",
"maxTokens": "integer",
"temperature": "float",
"minRankingScore": "float",
"minWordsValidation": "integer",
"numberOfInteractions": "integer",
"enableGroundednessDetection": "boolean"
},
"signalRConnectionId": "string",
"enableLogs": "boolean"
}{
"responseType": "string (answer|welcome|error)",
"message": "string",
"intent": {
"type": "string",
"entities": [
{
"name": "string",
"value": "string"
}
]
},
"conversationId": "string",
"answerLanguage": "string",
"documents": [
{
"title": "string",
"uri": "string",
"fileName": "string",
"totalPages": "integer",
"relevantPages": "array of integers",
"authors": "array of strings",
"relevanceScore": "float"
}
],
"completionLog": {
"steps": [
{
"stepId": "integer",
"stepType": "string",
"parameters": "object",
"duration": "long"
}
]
},
"speechMessage": "string (base64 audio)",
"htmlMessage": "string",
"rawMessage": "string"
}{
"conversationId": "string",
"messages": [
{
"id": "string",
"conversationId": "string",
"companyId": "string",
"topicId": "string",
"agentId": "string",
"role": "string (user|assistant)",
"content": "string",
"originalContent": "string",
"completionTokens": "integer",
"promptTokens": "integer",
"totalTokens": "integer",
"timeStamp": "datetime"
}
]
}{
"documentsIndexingStatus": "integer (0=Ready, 1=Indexing, 100=Error)",
"audioIndexingStatus": "integer",
"webScrapingIndexingStatus": "integer",
"documentsIndexingCount": "integer",
"audioIndexingCount": "integer",
"webScrapingIndexingCount": "integer",
"statistics": [
{
"indexName": "string",
"documentCount": "integer",
"storageSize": "long"
}
]
}| Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad Request - Invalid parameters or request body |
| 403 | Forbidden - License limit reached or unauthorized |
| 404 | Not Found - Resource doesn't exist |
| 409 | Conflict - Resource already exists |
| 500 | Internal Server Error |
"Error message describing what went wrong"Invalid Request Body:
"Invalid agent data"Resource Not Found:
"Agent not found"License Limit Reached:
"Active agents limit reached. No more agents can be activated. (Active Agents: 5 of 5)"Duplicate Name:
"An agent with the same name already exists in this topic"Contact your account manager for information about rate limits specific to your subscription tier.
| Code | Language |
|---|---|
| xx | Multilingual |
| en | English |
| it | Italian |
| fr | French |
| de | German |
| es | Spanish |
| pt | Portuguese |
| zh | Chinese |
| ja | Japanese |
| ko | Korean |
| ru | Russian |
| ar | Arabic |
| hi | Hindi |
| tr | Turkish |
| nl | Dutch |
| pl | Polish |
| sv | Swedish |
| cs | Czech |
| da | Danish |
| fi | Finnish |
| el | Greek |
| hu | Hungarian |
| id | Indonesian |
| ms | Malay |
| nb | Norwegian Bokmal |
| sk | Slovak |
| th | Thai |
| uk | Ukrainian |
| vi | Vietnamese |
| ro | Romanian |
Last updated: May 2026
© Hevolus Innovation · XRCopilot · Maintained by the XRCopilot team.
Getting Started
API
SDKs
Webhooks & Integrations
- Agent Task Webhooks
- Connections & Action Steps
- Integration Templates
- Authenticated Embed
- Microsoft Agent 365
- Microsoft Teams Notifications
No-code Builders
Orchestrators
Processes
Administration
Reference