---
title: "Local chat sessions"
method: GET
path: "/local-post-ideas/chat-sessions"
tags: ["Local Post Ideas"]
---

# Local chat sessions

`GET /local-post-ideas/chat-sessions`

## Request

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

Returns the AI post-idea chat sessions for a location, most recent first. Use `limit` to cap the number of sessions returned.

## Query parameters

- `locationId` string, required
- `limit` integer

## Headers

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

## Response `200`

Successful response

- object
  - `data` object
    - `localChatSessions` LocalChatSession[]
      - `id` string
      - `locationId` integer
      - `mode` string
      - `status` string
      - `messageCount` integer
      - `title` string
      - `subjectType` string
      - `subjectId` string
      - `createdAt` string
      - `updatedAt` 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)
