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

Close chat session

Closes an active AI post-idea chat session. Once closed, the session is no longer returned as the active session for the brand.

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
sessionIdstringrequired

Request

Request
curl -X POST 'https://api.synup.com/api/v4/social-post-ideas/close-chat-session' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "sessionId": "7f3c1a2e-..."
}'

Responses

StatusDescription
200Successful response
401Unauthorized - Invalid or missing API key
Example response (generated from the schema)
{
  "data": {
    "closeChatSession": {
      "success": true,
      "error": {
        "message": "string",
        "code": "string",
        "contextInfo": [
          {
            "key": "string",
            "value": "string"
          }
        ]
      }
    }
  }
}

Response body

NameTypeRequiredDescription
dataobjectoptional
data.closeChatSessionobjectoptional
data.closeChatSession.successbooleanoptional
data.closeChatSession.errorobjectoptional
data.closeChatSession.error.messagestringoptional
data.closeChatSession.error.codestringoptional
data.closeChatSession.error.contextInfoarray of objectoptional
data.closeChatSession.error.contextInfo[].keystringoptional
data.closeChatSession.error.contextInfo[].valuestringoptional