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
$curl -X POST "https://ai.dopt.com/v0/assistant/%3Asid/completions?userIdentifier=string&groupIdentifier=string&model=string" \
> -H "x-api-key: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{}'
Response
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}