# Local chat sessions

```http
GET https://api.synup.com/api/v4/local-post-ideas/chat-sessions
```

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

Source: https://developer.synup.com/api/local-post-ideas/local-chat-sessions

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `locationId` | string | required | Relay-encoded location ID. |
| `limit` | integer | optional | Maximum number of sessions to return. |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Synup-Version` | string | required | API version date (YYYY-MM-DD). |

## Example request

```bash
curl -X GET 'https://api.synup.com/api/v4/local-post-ideas/chat-sessions' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json'
```

## Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Unauthorized - Invalid or missing API key |
