Files
xSaherelmWorkspace/Documents/Resources/Json/Requests.md
T

236 lines
4.8 KiB
Markdown

# Models for Use
## Authentication
Request:
```json
{
"password": "s@H@1694056",
"userSelectBy": "admin"
}
```
Response:
```json
{
"accessToken": "A6590CF564437A98E8F74C72E8F2EBDD8ECCFFB345D23AAC47784350E61A0140",
"refreshToken": "C2A8FEBCCFF737397F83F2A76CF8511EF323C7F1F4733AB882B66D51AEDFB733",
"expiresAt": 1793628969
}
```
ApiKeys:
### IDS RPK
xapp_WUQW1XIVNPTLXkqH9kOLKsIueXpqA_Qx9ZWJqiC2mA4
### IDS MacSlim 1
xapp_xIEUusVi0dmHCLeUvUrCGh-f6EtvEbCa8dYL4nGegus
### IDS MacSlim 2
xapp_sH0MbXEkCNEP9CQ_RLEkD-Fh7QhGUnzwyGcJfSmy_VY
## Chat With Documents
### Ingest
Response:
```json
{
"sessionId": "36e4d6e4-768f-4622-90d7-f79af449df9d",
"filesCount": 9,
"chunksCount": 208,
"totalVectorsCount": 208,
"skippedFiles": [],
"expiresAtUtc": "2026-11-02T13:48:15.7779591Z"
}
```
### Ask from Documents
Request:
```json
{
"sessionId": "36e4d6e4-768f-4622-90d7-f79af449df9d",
"prompt": "give me an overview of an ai system architecture",
"topK": 5,
"minScore": 0.35
}
```
{
"prompt": "who are you ?",
"projectId": "",
"conversationId": ""
}
{
"prompt": "what is MCP ?",
"projectId": "",
"conversationId": ""
}
## Knowledge
### Retrieve Documents
Response:
```json
[
{
"scope": 2,
"scopeId": null,
"type": "XAiKnowledge",
"fileName": "1-ParsaPolimer-RFP-Analythic.html",
"mimeType": "text/html",
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"chunksCount": 18,
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
},
{
"scope": 2,
"scopeId": null,
"type": "XAiKnowledge",
"fileName": "2-ParsaPolimer-BigArchitecture.html",
"mimeType": "text/html",
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"chunksCount": 21,
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
},
{
"scope": 2,
"scopeId": null,
"type": "XAiKnowledge",
"fileName": "3-ParsaPolimer-BPMN2.html",
"mimeType": "text/html",
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"chunksCount": 9,
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
},
{
"scope": 2,
"scopeId": null,
"type": "XAiKnowledge",
"fileName": "4-ParsaPolimer-Roadmap.html",
"mimeType": "text/html",
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"chunksCount": 28,
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
},
{
"scope": 2,
"scopeId": null,
"type": "XAiKnowledge",
"fileName": "5-RoadmapSH.html",
"mimeType": "text/html",
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"chunksCount": 24,
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
},
{
"scope": 2,
"scopeId": null,
"type": "XAiKnowledge",
"fileName": "6-ParsaPolimer-TechnicalRoadmap.html",
"mimeType": "text/html",
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"chunksCount": 28,
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
},
{
"scope": 2,
"scopeId": null,
"type": "XAiKnowledge",
"fileName": "AI Proposal 1.html",
"mimeType": "text/html",
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"chunksCount": 26,
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
},
{
"scope": 2,
"scopeId": null,
"type": "XAiKnowledge",
"fileName": "AI Proposal 2.html",
"mimeType": "text/html",
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"chunksCount": 28,
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
},
{
"scope": 2,
"scopeId": null,
"type": "XAiKnowledge",
"fileName": "AI Proposal 3.html",
"mimeType": "text/html",
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"chunksCount": 26,
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
},
{
"scope": 2,
"scopeId": null,
"type": "XAiKnowledge",
"fileName": "AirLLM-Document.html",
"mimeType": "text/html",
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"chunksCount": 8,
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
}
]
```
## MCP Server
### Add
Request:
```json
{
"scope": 1,
"headers": "",
"enabled": true,
"timeoutSeconds": 30,
"name": "XAiMcpServer",
"environmentVariables": "",
"description": "a Simple MCP Server ...",
"endpoint": "https://localhost:7001/mcp",
}
```
Response:
```json
{
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"owner": {
"avatar": null,
"userId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"username": "admin",
"lastname": "Khazaee Asl",
"firstname": "Hadi"
},
"scope": 1,
"name": "XAiMcpServer",
"description": "a Simple MCP Server ...",
"enabled": true,
"environmentVariables": "",
"endpoint": "https://localhost:7001/mcp",
"headers": "",
"timeoutSeconds": 30,
"createdOn": "2026-11-05T09:30:12.3783202Z",
"updatedAt": "0001-01-01T00:00:00",
"id": "fc583f76-ae11-4f63-8d4c-72927345e4e4",
"deleted": false
}
```