POSTapi.synup.com/api/v4/local-post-ideas/switch-chat-mode
Switch local chat mode
Switches the generation mode of an existing AI post-idea chat session (for example between a fast and a more thorough mode).
Requires an API key. Send it as
Authorization: API <your-key> — see Getting started.Parameters
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Synup-Version | string | required | API version date (YYYY-MM-DD). |
Body
| Name | Type | Required | Description |
|---|---|---|---|
sessionId | string | required | |
mode | string | required |
Request
Request
curl -X POST 'https://api.synup.com/api/v4/local-post-ideas/switch-chat-mode' \
-H 'Authorization: API YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"sessionId": "7f3c1a2e-...",
"mode": "thorough"
}'const res = await fetch('https://api.synup.com/api/v4/local-post-ideas/switch-chat-mode', {
method: 'POST',
headers: {
Authorization: 'API YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"sessionId": "7f3c1a2e-...",
"mode": "thorough"
}),
});
const data = await res.json();import requests
res = requests.post(
"https://api.synup.com/api/v4/local-post-ideas/switch-chat-mode",
headers={
"Authorization": "API YOUR_API_KEY",
"Content-Type": "application/json",
},
json={
"sessionId": "7f3c1a2e-...",
"mode": "thorough"
},
)
data = res.json()req, _ := http.NewRequest("POST", "https://api.synup.com/api/v4/local-post-ideas/switch-chat-mode", bytes.NewBufferString(payload))
req.Header.Set("Authorization", "API YOUR_API_KEY")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)Responses
| Status | Description |
|---|---|
200 | Successful response |
401 | Unauthorized - Invalid or missing API key |
Example response (generated from the schema)
{
"data": {
"switchLocalChatMode": {
"success": true,
"error": {
"message": "string",
"code": "string",
"contextInfo": [
{
"key": "string",
"value": "string"
}
]
}
}
}
}Response body
| Name | Type | Required | Description |
|---|---|---|---|
data | object | optional | |
data.switchLocalChatMode | object | optional | |
data.switchLocalChatMode.success | boolean | optional | |
data.switchLocalChatMode.error | object | optional | |
data.switchLocalChatMode.error.message | string | optional | |
data.switchLocalChatMode.error.code | string | optional | |
data.switchLocalChatMode.error.contextInfo | array of object | optional | |
data.switchLocalChatMode.error.contextInfo[].key | string | optional | |
data.switchLocalChatMode.error.contextInfo[].value | string | optional |