# Post feed — Blink

> Send feed events to users. See the documentation

- Key: `blink-post-feed`
- Type: Action (Write)
- Version: 0.0.3
- App: Blink (`blink`) — https://pipedream.com/apps/blink.md
- This page (HTML): https://pipedream.com/apps/blink/actions/post-feed
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/blink/actions/post-feed/post-feed.mjs

## Description

Send feed events to users. [See the documentation](https://developer.joinblink.com/reference/send-feed-event)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `allowComments` | `boolean` | No | Allow users to comment on the feed event. |
| `category` | `string` | Yes | The ID of the category Options are loaded from the connected account. |
| `ribbonColor` | `string` | No | Color of the card. Hex code |
| `sections` | `object` | Yes | CardKit section objects. E.g. [ { "type": "header", "title": "Main API Service - Build Failed" }, { "type": "text", "value": "2/32 Tests Failed" }, { "type": "image", "image_url": "https://picsum.photos/200/300" }, { "type": "link", "title": "Blink", "url": "https://joinblink.com" } ] |
| `userIds` | `string[]` | Yes | IDs of the users who will receive this feed event Options are loaded from the connected account. |
| `externalId` | `string` | No | A unique identifier for this event you can use to retrieve the event_id for the event using the Get Event Id By External Id endpoint. |
| `notificationTitle` | `string` | No | Title of push notification to be send to devices of recipients of this event. |
| `notificationText` | `string` | No | Body of push notification to be sent to devices of recipients of this event. |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "blink",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "blink-post-feed",
  arguments: {
    allowComments: true,
    category: "Category ID",
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "blink-post-feed",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    blink: { authProvisionId: "apn_xxxxxxx" },
    allowComments: true,
    category: "Category ID",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "blink-post-feed",
    "configured_props": {
      "blink": { "authProvisionId": "apn_xxxxxxx" },
      "allowComments": true,
      "category": "Category ID"
    }
  }'
```

---

- App: https://pipedream.com/apps/blink.md · All apps: https://pipedream.com/apps
