AssistantCompletions

Create

POST

Path parameters

sidstringRequired

Query parameters

userIdentifierstringRequired
groupIdentifierstringOptional
modelstringOptional

Request

This endpoint expects an object.
query
stringOptional
context
objectOptional

Response

This endpoint returns an object
answer
string
sources
list of objects
POST
1curl -X POST "https://ai.dopt.com/v0/assistant/:sid/completions?userIdentifier=string&groupIdentifier=string&model=string" \
2 -H "x-api-key: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{}'
200
Successful
1{
2 "answer": "string",
3 "sources": [
4 {
5 "id": 1,
6 "title": "string",
7 "url": "string",
8 "chunks": [
9 {
10 "chunkId": 1,
11 "text": "string",
12 "score": 1
13 }
14 ]
15 }
16 ]
17}