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

Local active chat session

Returns the currently active AI post-idea chat session for a location, if one exists. Use this to resume an in-progress conversation. Set excludeSeries to skip sessions that belong to a content series.

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

Parameters

Query

NameTypeRequiredDescription
locationIdstringrequiredRelay-encoded location ID.
excludeSeriesbooleanoptionalExclude sessions that belong to a content series.

Headers

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

Request

Request
curl -X GET 'https://api.synup.com/api/v4/local-post-ideas/active-chat-session?locationId=&excludeSeries=' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Responses

StatusDescription
200Successful response
401Unauthorized - Invalid or missing API key
Example response (generated from the schema)
{
  "data": {
    "localActiveChatSession": {
      "id": "string",
      "locationId": 0,
      "mode": "string",
      "status": "string",
      "messageCount": 0,
      "title": "string",
      "subjectType": "string",
      "subjectId": "string",
      "createdAt": "string",
      "updatedAt": "string"
    }
  }
}

Response body

NameTypeRequiredDescription
dataobjectoptional
data.localActiveChatSessionobjectoptional
data.localActiveChatSession.idstringoptional
data.localActiveChatSession.locationIdintegeroptional
data.localActiveChatSession.modestringoptional
data.localActiveChatSession.statusstringoptional
data.localActiveChatSession.messageCountintegeroptional
data.localActiveChatSession.titlestringoptional
data.localActiveChatSession.subjectTypestringoptional
data.localActiveChatSession.subjectIdstringoptional
data.localActiveChatSession.createdAtstringoptional
data.localActiveChatSession.updatedAtstringoptional