Download OpenAPI specification:
RAG API for the different use cases like create corpus, create index, delete index, generate content api
This endpoint authenticates users and provides access tokens for subsequent API calls. In production additional HTTP response headers like X-Frame-Options, X-XSS-Protection, and Content-Security-Policy would be included to enhance security against common web vulnerabilities. Please note this token expires every hour and a new token can be requested using the same API.
| X-API-KEY required | string |
| clientId required | string Unique Allymar defined ID for the client |
| secret required | string Allymar provided client secret information |
| username required | string Name of the user using the system |
| organizationId required | string Allymar defined organization identifier |
{- "clientId": "string",
- "secret": "string",
- "username": "string",
- "organizationId": "string"
}{- "accessToken": "string",
- "tokenType": "Bearer",
- "expiresIn": 3600
}This endpoint creates a corpus for the patient
| Authorization required | string Authentication Bearer token to allow request to be processed. This is the token that is provided during the 'token' API request. |
| Content-Type required | string Default: application/json Media type of the body of the request. |
| patientId required | string Unique Allymar defined ID for the patient |
| metaData | object provider patient meta data in key value pair |
{- "patientId": "string",
- "metaData": { }
}{- "message": "string"
}Check whether index is created for that patient or not
| Authorization required | string Authentication Bearer token to allow request to be processed. This is the token that is provided during the 'token' API request. |
| Content-Type required | string Default: application/json Media type of the body of the request. |
| patientId required | string Unique Allymar defined ID for the patient |
{- "patientId": "string"
}{- "message": "string"
}This endpoint add the embeddings to the specific corpus.
| Authorization required | string Authentication Bearer token to allow request to be processed. This is the token that is provided during the 'token' API request. |
| Content-Type required | string Default: application/json Media type of the body of the request. |
| patientId required | string Unique Allymar defined ID for the patient |
required | Array of objects |
{- "patientId": "string",
- "data": [
- {
- "fileURL": "string",
- "documentId": "string"
}
]
}{- "message": "string",
- "id": "string"
}This endpoint removes the embedding file from the corpus
| Authorization required | string Authentication Bearer token to allow request to be processed. This is the token that is provided during the 'token' API request. |
| Content-Type required | string Default: application/json Media type of the body of the request. |
| patientId required | string Unique Allymar defined ID for the patient |
required | Array of objects |
{- "patientId": "string",
- "data": [
- {
- "fileURL": "string",
- "documentId": "string"
}
]
}{- "message": "string",
- "id": "string"
}This endpoint is used to check the status of the added document.
| Authorization required | string Authentication Bearer token to allow request to be processed. This is the token that is provided during the 'token' API request. |
| Content-Type required | string Default: application/json Media type of the body of the request. |
| id required | string published Id when you add or remove the document |
{- "id": "string"
}[- {
- "status": "string",
- "timestamp": "string"
}
]This endpoint is used to create patient Context which will be used to ask the question
| Authorization required | string Authentication Bearer token to allow request to be processed. This is the token that is provided during the 'token' API request. |
| Content-Type required | string Default: application/json Media type of the body of the request. |
| patientId required | string Unique Allymar defined ID for the patient |
| sessionId required | string Unique Session ID for the login user |
| documentId | string specific document to query |
{- "patientId": "string",
- "sessionId": "string",
- "documentId": "string"
}{- "message": "string",
- "id": "string"
}This endpoint will be used Search The Data from the patient details
| Authorization required | string Authentication Bearer token to allow request to be processed. This is the token that is provided during the 'token' API request. |
| Content-Type required | string Default: application/json Media type of the body of the request. |
| contextId required | string Unique Context Id generated from create Patient Context |
| userPrompt required | string Question which is asked to the AI |
{- "contextId": "string",
- "userPrompt": "string"
}{- "message": "string"
}