cURL
curl -X POST 'https://app-be.thesis.io/api/v1/integration/conversations' \
-H 'Authorization: Bearer YOUR_SPACE_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"initial_user_msg": "Whats the new DeFi meta recently that I can ape in?",
"research_mode": "deep_research",
"system_prompt": "You are a DeFi gigachad who is always ahead of the new DeFi meta."
}'import requests
url = 'https://app-be.thesis.io/api/v1/integration/conversations'
headers = {
'Authorization': 'Bearer YOUR_SPACE_API_TOKEN',
'Content-Type': 'application/json'
}
data = {
'initial_user_msg': 'Whats the new DeFi meta recently that I can ape in?',
'research_mode': 'deep_research',
'system_prompt': 'You are a DeFi gigachad who is always ahead of the new DeFi meta.'
}
response = requests.post(url, headers=headers, json=data)
print(response.json())const response = await fetch('https://app-be.thesis.io/api/v1/integration/conversations', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_SPACE_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
initial_user_msg: 'What\'s the new DeFi meta recently that I can ape in?',
research_mode: 'deep_research',
space_id: 123,
system_prompt: 'You are a DeFi gigachad who\'s always ahead of the new DeFi meta.'
})
});
const data = await response.json();
console.log(data);const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
initial_user_msg: 'What\'s the new DeFi meta recently that I can ape in?',
research_mode: 'deep_research',
space_id: 123,
space_section_id: 456,
thread_follow_up: 789,
followup_discover_id: 'discover_abc123',
mcp_disable: {},
system_prompt: 'You are a DeFi gigachad who\'s always ahead of the new DeFi meta.'
})
};
fetch('https://app-be.thesis.io/api/v1/integration/conversations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app-be.thesis.io/api/v1/integration/conversations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'initial_user_msg' => 'What\'s the new DeFi meta recently that I can ape in?',
'research_mode' => 'deep_research',
'space_id' => 123,
'space_section_id' => 456,
'thread_follow_up' => 789,
'followup_discover_id' => 'discover_abc123',
'mcp_disable' => [
],
'system_prompt' => 'You are a DeFi gigachad who\'s always ahead of the new DeFi meta.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app-be.thesis.io/api/v1/integration/conversations"
payload := strings.NewReader("{\n \"initial_user_msg\": \"What's the new DeFi meta recently that I can ape in?\",\n \"research_mode\": \"deep_research\",\n \"space_id\": 123,\n \"space_section_id\": 456,\n \"thread_follow_up\": 789,\n \"followup_discover_id\": \"discover_abc123\",\n \"mcp_disable\": {},\n \"system_prompt\": \"You are a DeFi gigachad who's always ahead of the new DeFi meta.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app-be.thesis.io/api/v1/integration/conversations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"initial_user_msg\": \"What's the new DeFi meta recently that I can ape in?\",\n \"research_mode\": \"deep_research\",\n \"space_id\": 123,\n \"space_section_id\": 456,\n \"thread_follow_up\": 789,\n \"followup_discover_id\": \"discover_abc123\",\n \"mcp_disable\": {},\n \"system_prompt\": \"You are a DeFi gigachad who's always ahead of the new DeFi meta.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app-be.thesis.io/api/v1/integration/conversations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"initial_user_msg\": \"What's the new DeFi meta recently that I can ape in?\",\n \"research_mode\": \"deep_research\",\n \"space_id\": 123,\n \"space_section_id\": 456,\n \"thread_follow_up\": 789,\n \"followup_discover_id\": \"discover_abc123\",\n \"mcp_disable\": {},\n \"system_prompt\": \"You are a DeFi gigachad who's always ahead of the new DeFi meta.\"\n}"
response = http.request(request)
puts response.read_body{
"status": "ok",
"conversation_id": "conv_abc123def456"
}{
"status": "error",
"message": "Invalid request data or missing required fields",
"msg_id": "INVALID_REQUEST_DATA"
}{
"detail": "Unauthorized or invalid token"
}{
"detail": "Resource not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Internal server error"
}conversations
Create New Conversation
Creates a new conversation with customizable research mode, system prompt, and space association. Supports follow-up threads and MCP tool configuration.
POST
/
api
/
v1
/
integration
/
conversations
cURL
curl -X POST 'https://app-be.thesis.io/api/v1/integration/conversations' \
-H 'Authorization: Bearer YOUR_SPACE_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"initial_user_msg": "Whats the new DeFi meta recently that I can ape in?",
"research_mode": "deep_research",
"system_prompt": "You are a DeFi gigachad who is always ahead of the new DeFi meta."
}'import requests
url = 'https://app-be.thesis.io/api/v1/integration/conversations'
headers = {
'Authorization': 'Bearer YOUR_SPACE_API_TOKEN',
'Content-Type': 'application/json'
}
data = {
'initial_user_msg': 'Whats the new DeFi meta recently that I can ape in?',
'research_mode': 'deep_research',
'system_prompt': 'You are a DeFi gigachad who is always ahead of the new DeFi meta.'
}
response = requests.post(url, headers=headers, json=data)
print(response.json())const response = await fetch('https://app-be.thesis.io/api/v1/integration/conversations', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_SPACE_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
initial_user_msg: 'What\'s the new DeFi meta recently that I can ape in?',
research_mode: 'deep_research',
space_id: 123,
system_prompt: 'You are a DeFi gigachad who\'s always ahead of the new DeFi meta.'
})
});
const data = await response.json();
console.log(data);const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
initial_user_msg: 'What\'s the new DeFi meta recently that I can ape in?',
research_mode: 'deep_research',
space_id: 123,
space_section_id: 456,
thread_follow_up: 789,
followup_discover_id: 'discover_abc123',
mcp_disable: {},
system_prompt: 'You are a DeFi gigachad who\'s always ahead of the new DeFi meta.'
})
};
fetch('https://app-be.thesis.io/api/v1/integration/conversations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app-be.thesis.io/api/v1/integration/conversations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'initial_user_msg' => 'What\'s the new DeFi meta recently that I can ape in?',
'research_mode' => 'deep_research',
'space_id' => 123,
'space_section_id' => 456,
'thread_follow_up' => 789,
'followup_discover_id' => 'discover_abc123',
'mcp_disable' => [
],
'system_prompt' => 'You are a DeFi gigachad who\'s always ahead of the new DeFi meta.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app-be.thesis.io/api/v1/integration/conversations"
payload := strings.NewReader("{\n \"initial_user_msg\": \"What's the new DeFi meta recently that I can ape in?\",\n \"research_mode\": \"deep_research\",\n \"space_id\": 123,\n \"space_section_id\": 456,\n \"thread_follow_up\": 789,\n \"followup_discover_id\": \"discover_abc123\",\n \"mcp_disable\": {},\n \"system_prompt\": \"You are a DeFi gigachad who's always ahead of the new DeFi meta.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app-be.thesis.io/api/v1/integration/conversations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"initial_user_msg\": \"What's the new DeFi meta recently that I can ape in?\",\n \"research_mode\": \"deep_research\",\n \"space_id\": 123,\n \"space_section_id\": 456,\n \"thread_follow_up\": 789,\n \"followup_discover_id\": \"discover_abc123\",\n \"mcp_disable\": {},\n \"system_prompt\": \"You are a DeFi gigachad who's always ahead of the new DeFi meta.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app-be.thesis.io/api/v1/integration/conversations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"initial_user_msg\": \"What's the new DeFi meta recently that I can ape in?\",\n \"research_mode\": \"deep_research\",\n \"space_id\": 123,\n \"space_section_id\": 456,\n \"thread_follow_up\": 789,\n \"followup_discover_id\": \"discover_abc123\",\n \"mcp_disable\": {},\n \"system_prompt\": \"You are a DeFi gigachad who's always ahead of the new DeFi meta.\"\n}"
response = http.request(request)
puts response.read_body{
"status": "ok",
"conversation_id": "conv_abc123def456"
}{
"status": "error",
"message": "Invalid request data or missing required fields",
"msg_id": "INVALID_REQUEST_DATA"
}{
"detail": "Unauthorized or invalid token"
}{
"detail": "Resource not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Internal server error"
}Authorizations
Enter your API token in the format: Bearer <your_token_here>
Body
application/json
Initial message to start the conversation
Example:
"What's the new DeFi meta recently that I can ape in?"
Research mode for the conversation
Available options:
chat, deep_research, follow_up Example:
"deep_research"
Your space ID. You can find it via your created space
Example:
123
Your space section ID. You can find it via your created space
Example:
456
Thread ID for follow-up conversations
Example:
789
Discovery ID for follow-up research
Example:
"discover_abc123"
MCP tools to disable for this conversation
Show child attributes
Show child attributes
Custom system prompt to guide the AI behavior
Example:
"You are a DeFi gigachad who's always ahead of the new DeFi meta."
⌘I