---
title: "Attach a keyword comment-to-DM draft (deprecated)"
method: POST
path: "/posts/{id}/funnel"
tags: ["Posts"]
deprecated: true
---

# Attach a keyword comment-to-DM draft (deprecated)

`POST /posts/{id}/funnel`

## Request

- Base URL: `https://www.sociahive.com/api/v1`
- URL: `https://www.sociahive.com/api/v1/posts/{id}/funnel`
- Auth: one of:
  - API key in header `X-API-Key`
  - OAuth 2 (authorization code, authorization URL `/api/oauth/authorize`, token URL `/api/oauth/token`, scopes: `flows:write`, `posts:write`)

> **Deprecated.**

Deprecated alias of the keyword door: builds the draft and links it to the post, turned off. Prefer POST /automation/drafts + POST /posts/{id}/automation. Gated by SCHEDULER_POST_AUTOMATION. Errors answer `{ error: <code>, message }`.

## Path parameters

- `id` string, required: MongoDB ObjectId (24-character hex string)

## Request body

- object
  - `keyword` string, required
  - `link` string, uri
  - `accountId` string: Required when the post targets several Instagram accounts.

## Response `201`

Draft attached

- object
  - `data` object, required
    - `flowId` string, required
    - `flowName` string, required

## Other responses

- `400`: Bad request — invalid parameters
- `401`: Authentication required — provide X-API-Key or Bearer token
- `403`: Insufficient scope for this operation
- `404`: Post not found (post_not_found)
- `409`: The post already has an automation (funnel_exists)
- `429`: Rate limit exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/sociahive/apis/sociahive-api.md) · [All operations](https://skmtc.dev/sociahive/apis/sociahive-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sociahive/apis/sociahive-api/revisions/791b8548d288?raw)
