cURL
curl --location 'https://app.sbai.cloud/api/external/start-conversation' \
--header 'client-id: your-client-id' \
--header 'private-key: your-private-key' \
--header 'secret: your-secret' \
--header 'Content-Type: application/json' \
--data '{
"message": "about data gmail and dropbox",
"model": "gpt-4o"
}'import requests
url = 'https://app.sbai.cloud/api/external/start-conversation'
headers = {
'client-id': '0fbc9cf2-595a-4068-a643-a58d764514df',
'private-key': 'pk-5d72029b',
'secret': 'sk-5d72029b34dbc6c89f837ec8f2413b734fd37b2a681bd2f58d',
'Content-Type': 'application/json'
}
data = {
"message": "about data gmail and dropbox",
"model": "gpt-4o"
}
response = requests.post(url, headers=headers, json=data)
print(response.json()){
"conversation_id": "<string>",
"title": "<string>",
"messages": {
"id": "<string>",
"text": "<string>",
"redacted": "<string>",
"synthetic": "<string>",
"ner_count": 0,
"response": "<string>",
"ner_items": [],
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Start Conversation Public
POST
/
external
/
start-conversation
cURL
curl --location 'https://app.sbai.cloud/api/external/start-conversation' \
--header 'client-id: your-client-id' \
--header 'private-key: your-private-key' \
--header 'secret: your-secret' \
--header 'Content-Type: application/json' \
--data '{
"message": "about data gmail and dropbox",
"model": "gpt-4o"
}'import requests
url = 'https://app.sbai.cloud/api/external/start-conversation'
headers = {
'client-id': '0fbc9cf2-595a-4068-a643-a58d764514df',
'private-key': 'pk-5d72029b',
'secret': 'sk-5d72029b34dbc6c89f837ec8f2413b734fd37b2a681bd2f58d',
'Content-Type': 'application/json'
}
data = {
"message": "about data gmail and dropbox",
"model": "gpt-4o"
}
response = requests.post(url, headers=headers, json=data)
print(response.json()){
"conversation_id": "<string>",
"title": "<string>",
"messages": {
"id": "<string>",
"text": "<string>",
"redacted": "<string>",
"synthetic": "<string>",
"ner_count": 0,
"response": "<string>",
"ner_items": [],
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}⌘I