Skip to content
SynupAPI
Get an API key
POSTapi.synup.com/api/v4/local-post-ideas/branch-chat-session

Branch local chat session

Creates a new chat session branched from an existing one (parentSessionId), optionally anchored to a subject (subjectType/subjectId). Use this to explore an alternative direction without losing the original conversation.

Requires an API key. Send it as Authorization: API <your-key> — see Getting started.

Parameters

Headers

NameTypeRequiredDescription
Synup-VersionstringrequiredAPI version date (YYYY-MM-DD).

Body

NameTypeRequiredDescription
parentSessionIdstringrequired
subjectTypestringoptional
subjectIdstringoptional

Request

Request
curl -X POST 'https://api.synup.com/api/v4/local-post-ideas/branch-chat-session' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "parentSessionId": "7f3c1a2e-...",
  "subjectType": "idea"
}'

Responses

StatusDescription
200Successful response
401Unauthorized - Invalid or missing API key
Example response (generated from the schema)
{
  "data": {
    "branchLocalChatSession": {
      "success": true,
      "session": {
        "id": "string",
        "locationId": 0,
        "mode": "string",
        "status": "string",
        "messageCount": 0,
        "title": "string",
        "subjectType": "string",
        "subjectId": "string",
        "createdAt": "string",
        "updatedAt": "string"
      },
      "suggestions": [
        "string"
      ],
      "error": {
        "message": "string",
        "code": "string",
        "contextInfo": [
          {
            "key": "string",
            "value": "string"
          }
        ]
      }
    }
  }
}

Response body

NameTypeRequiredDescription
dataobjectoptional
data.branchLocalChatSessionobjectoptional
data.branchLocalChatSession.successbooleanoptional
data.branchLocalChatSession.sessionobjectoptional
data.branchLocalChatSession.session.idstringoptional
data.branchLocalChatSession.session.locationIdintegeroptional
data.branchLocalChatSession.session.modestringoptional
data.branchLocalChatSession.session.statusstringoptional
data.branchLocalChatSession.session.messageCountintegeroptional
data.branchLocalChatSession.session.titlestringoptional
data.branchLocalChatSession.session.subjectTypestringoptional
data.branchLocalChatSession.session.subjectIdstringoptional
data.branchLocalChatSession.session.createdAtstringoptional
data.branchLocalChatSession.session.updatedAtstringoptional
data.branchLocalChatSession.suggestionsarray of stringoptional
data.branchLocalChatSession.errorobjectoptional
data.branchLocalChatSession.error.messagestringoptional
data.branchLocalChatSession.error.codestringoptional
data.branchLocalChatSession.error.contextInfoarray of objectoptional
data.branchLocalChatSession.error.contextInfo[].keystringoptional
data.branchLocalChatSession.error.contextInfo[].valuestringoptional