---
title: "Branch chat session"
method: POST
path: "/social-post-ideas/branch-chat-session"
tags: ["Social Post Ideas"]
---

# Branch chat session

`POST /social-post-ideas/branch-chat-session`

## Request

- Base URL: `https://api.synup.com/api/v4`
- URL: `https://api.synup.com/api/v4/social-post-ideas/branch-chat-session`
- Auth: none required
- TypeScript: <https://skmtc.dev/synup/apis/synup-api/docs/social-post-ideas/branch-chat-session/post.ts> (a function with typed inputs; its response is checked against the schema)

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

## Headers

- `Synup-Version` string, required
- `Authorization` string, required

## Request body

- BranchChatSessionRequest
  - `parentSessionId` string, required
  - `subjectType` string, required
  - `subjectId` string

## Response `200`

Successful response

- object
  - `data` object
    - `branchChatSession` ChatSessionResponse
      - `success` boolean
      - `session` ChatSession
        - `id` string
        - `socialProfileId` string
        - `mode` string
        - `status` string
        - `messageCount` integer
        - `title` string
        - `createdAt` string
      - `suggestions` string[]
      - `error` Error
        - `message` string
        - `code` string
        - `contextInfo` object[]
          - `key` string
          - `value` string

## Other responses

- `401`: Unauthorized - Invalid or missing API key

---

[API](https://skmtc.dev/synup/apis/synup-api.md) - [All operations](https://skmtc.dev/synup/apis/synup-api/llms.txt) - [OpenAPI document](https://skmtc.dev/synup/apis/synup-api/revisions/67de2d51c22e?raw)
