---
title: "Link post idea to social post"
method: POST
path: "/social-post-ideas/link-post-idea-to-social-post"
tags: ["Social Post Ideas"]
---

# Link post idea to social post

`POST /social-post-ideas/link-post-idea-to-social-post`

## Request

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

Links a generated post idea to a published social post, so the idea is marked as used and tracked against the social post.

## Headers

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

## Request body

- LinkPostIdeaToSocialPostRequest
  - `postIdeaId` string, required
  - `socialPostId` string, required

## Response `200`

Successful response

- object
  - `data` object
    - `linkPostIdeaToSocialPost` LinkPostIdeaToSocialPostResponse
      - `success` boolean
      - `error` ErrorV3
        - `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)
