---
title: "Suggest local posts for date"
method: POST
path: "/local-post-ideas/suggest-posts-for-date"
tags: ["Local Post Ideas"]
---

# Suggest local posts for date

`POST /local-post-ideas/suggest-posts-for-date`

## Request

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

Generates suggested post ideas for a location on a specific date. Returns the generated ideas and a count.

## Headers

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

## Request body

- SuggestLocalPostsForDateRequest
  - `locationId` string, required
  - `date` string, required: Target date (YYYY-MM-DD).

## Response `200`

Successful response

- object
  - `data` object
    - `suggestLocalPostsForDate` LocalGenerateIdeasResponse
      - `success` boolean
      - `ideas` object[]: Generated post ideas (see Local post idea for the full shape).
      - `pipelineId` string
      - `generatedCount` integer
      - `error` LocalError
        - `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)
