---
title: MyFeedIn documentation
description: Connect any AI agent to your LinkedIn data with the MCP server, or build on the REST API.
url: https://myfeedin.co/documentation
type: docs
source: MyFeedIn
---

# MyFeedIn documentation

MyFeedIn holds a user's LinkedIn posts with their analytics, the comments they left, their feeds and saved people, and the posts they plan. Two ways in:

- **MCP server** for AI assistants (Claude, ChatGPT, Cursor, Codex, VS Code, any MCP client): https://myfeedin.co/documentation/mcp

- **REST API** for scripts and backends, with an OpenAPI spec: https://myfeedin.co/documentation/api

## Setup guides

- [Claude Code](https://myfeedin.co/documentation/mcp/claude-code): One command in your terminal
- [Claude Desktop](https://myfeedin.co/documentation/mcp/claude): A connector for claude.ai, Desktop and mobile
- [Cursor](https://myfeedin.co/documentation/mcp/cursor): One click, or a few lines of mcp.json
- [VS Code](https://myfeedin.co/documentation/mcp/vscode): GitHub Copilot agent mode
- [ChatGPT](https://myfeedin.co/documentation/mcp/chatgpt): A custom plugin in ChatGPT
- [Codex](https://myfeedin.co/documentation/mcp/codex): Two commands in your terminal
- [Any MCP client](https://myfeedin.co/documentation/mcp/any): The generic configuration

## Machine-readable

- OpenAPI 3.1 spec: https://myfeedin.co/api/v1/openapi.json
- Every docs page in one file: https://myfeedin.co/llms-full.txt
- Any docs page as markdown: append `.md` to its URL.

---

Canonical version: https://myfeedin.co/documentation
Published by MyFeedIn (https://myfeedin.co). Cite the canonical URL.


---

---
title: MyFeedIn MCP server
description: Server URL, sign-in, access levels, plans and the full tool list.
url: https://myfeedin.co/documentation/mcp
type: docs
source: MyFeedIn
---

# MyFeedIn MCP server

## Server

- URL: `https://mcp.myfeedin.co`
- Transport: Streamable HTTP
- Authentication: OAuth 2.1 with PKCE and dynamic client registration. No API key: the first call opens the browser, the user signs in to MyFeedIn and picks their personal account or a workspace.

## Access levels

Chosen by the user on the consent screen. Tools above the level are not offered to the assistant. Changing it means removing the connection and connecting again.

| Level | What the assistant may do |
| --- | --- |
| Read only | Posts, analytics, comments, feeds, saved people and your calendar. |
| Read and draft | Also write and edit drafts and draft campaigns. Nothing goes out on LinkedIn. |
| Full access | Also schedule posts and run campaigns you set up. Scheduling and campaigns still need the right plan. |

## Plans

Any active plan or an open trial can connect. Campaign tools need the Growth plan. Scheduling a post needs a connected LinkedIn account and a plan that allows scheduling. The assistant never publishes or sends on its own initiative: it schedules the posts the user confirms, and campaigns stay drafts until launched from the dashboard.

## Setup per client

| Client | Guide |
| --- | --- |
| Claude Code | https://myfeedin.co/documentation/mcp/claude-code |
| Claude Desktop | https://myfeedin.co/documentation/mcp/claude |
| Cursor | https://myfeedin.co/documentation/mcp/cursor |
| VS Code | https://myfeedin.co/documentation/mcp/vscode |
| ChatGPT | https://myfeedin.co/documentation/mcp/chatgpt |
| Codex | https://myfeedin.co/documentation/mcp/codex |
| Any MCP client | https://myfeedin.co/documentation/mcp/any |

## Tools

### Posts

| Tool | What it does |
| --- | --- |
| `list_my_posts` | List published LinkedIn posts (newest first) with engagement counts. |
| `search_my_posts` | Full-text search through everything you've published. |
| `get_top_performing_posts` | Rank by impressions, comments or reactions across 30, 90 or 365 days. |
| `get_top_posts_by_keyword` | Find your best-performing posts that mention a specific topic. |
| `get_posts_by_period` | Pull every post you published between two dates. |
| `get_posts_one_year_ago` | Surface posts from ~365 days ago, easy repurposing. |
| `get_post` | Fetch full content, media URLs and engagement for a single post. |

### Analytics

| Tool | What it does |
| --- | --- |
| `get_performance_summary` | Total posts, average likes, comments, impressions and engagement over a period. |
| `compare_periods` | Compare two time windows and return percent deltas on every metric. |
| `analyze_engagement_patterns` | Best days, best hours and engagement by post length, based on your own history. |
| `generate_share_card` | Render your recap, numbers, year-over-year or top-post card as a PNG you can post. |

### Comments

| Tool | What it does |
| --- | --- |
| `list_my_comments` | Recent comments you left on others' posts, with engagement and parent-post context. |
| `search_my_comments` | Full-text search across the comments you've written. |

### Feeds & people

| Tool | What it does |
| --- | --- |
| `list_my_feeds` | Custom LinkedIn engagement lists you've curated in MyFeedIn. |
| `get_feed_people` | Show every creator inside one of your feeds. |
| `search_saved_people` | Find a saved person across all your feeds by name or headline. |

### Workspace

| Tool | What it does |
| --- | --- |
| `list_workspace_members` | Who is in the workspace, their role and post count. Every tool above accepts a `member` to read one person at a time. |

### Voice & drafting

| Tool | What it does |
| --- | --- |
| `summarize_my_voice` | Voice analysis from your last 20 posts: length, formatting habits, recurring words and hook patterns. |
| `find_unused_hooks` | Surface opening lines from your best posts you haven't reused recently. |

### Publishing

| Tool | What it does |
| --- | --- |
| `list_my_scheduled_posts` | Drafts, scheduled posts with their slot, failed ones with the reason, and what went out. |
| `create_post_draft` | Saves a post in your Content calendar as a draft, with its images. Nothing is published. |
| `update_post_draft` | Change the text or the day of a draft or scheduled post, or add images. |
| `get_image_upload_url` | Lets an agent that runs commands (Claude Code, Cursor) send an image file from your disk to a draft. |
| `schedule_post` | Puts a draft on the queue: MyFeedIn publishes it on LinkedIn at the slot you confirmed. |
| `unschedule_post` | Takes it off the queue and back to a draft. Nothing is removed from LinkedIn. |

---

Canonical version: https://myfeedin.co/documentation/mcp
Published by MyFeedIn (https://myfeedin.co). Cite the canonical URL.


---

---
title: Connect Claude Code to MyFeedIn
description: One command in your terminal
url: https://myfeedin.co/documentation/mcp/claude-code
type: agent-setup
source: MyFeedIn
---

# Connect Claude Code to MyFeedIn

No key to paste. The first time Claude Code calls MyFeedIn, your browser opens, you sign in and choose the account it may use and what it may do: read only, read and draft, or full access.

## 1. Add the server

Run this from any directory. Local keeps it to you in the current project, Project writes a `.mcp.json` your team shares through git, User follows you into every project.

**Local**

```
claude mcp add --transport http myfeedin https://mcp.myfeedin.co
```

**Project**

```
claude mcp add --transport http --scope project myfeedin https://mcp.myfeedin.co
```

**User**

```
claude mcp add --transport http --scope user myfeedin https://mcp.myfeedin.co
```

`--transport http` matters: without it Claude Code expects a local process, not a remote server.

## 2. Sign in when asked

Inside Claude Code, run `/mcp`, pick `myfeedin` and choose Authenticate. Your browser opens on myfeedin.co: sign in and approve. From a plain shell, `claude mcp login myfeedin` does the same.

## Check it worked

```
claude mcp list
```

`myfeedin` should show as connected. Or ask Claude something only your account can answer: "list my last 5 LinkedIn posts". `claude mcp get myfeedin` explains a failed connection and `claude mcp remove myfeedin` undoes the setup.

## Troubleshooting

**/mcp shows "Needs authentication"**

Select the server in `/mcp` and authenticate again. Over SSH, use `claude mcp login myfeedin --no-browser` and open the printed link on your machine.

**I added it with an Authorization header**

Remove the header. With a header set, Claude Code does not fall back to the sign-in flow and reports a failed connection.

---

Canonical version: https://myfeedin.co/documentation/mcp/claude-code
Published by MyFeedIn (https://myfeedin.co). Cite the canonical URL.


---

---
title: Connect Claude Desktop to MyFeedIn
description: A connector for claude.ai, Desktop and mobile
url: https://myfeedin.co/documentation/mcp/claude
type: agent-setup
source: MyFeedIn
---

# Connect Claude Desktop to MyFeedIn

Add MyFeedIn once as a custom connector on claude.ai or in Claude Desktop. It belongs to your Claude account, so it also works in the mobile apps.

## 1. Open the connectors

In claude.ai or Claude Desktop, open Customize, then Connectors, then click + Add and choose Add custom connector.

[Open claude.ai connectors](https://claude.ai/settings/connectors)

## 2. Paste the server URL

Name it MyFeedIn and paste the URL below. When Claude asks how to handle sign-in, keep the recommended option.

```
https://mcp.myfeedin.co
```

## 3. Sign in to MyFeedIn

Claude opens myfeedin.co. Sign in, choose your personal account or a workspace, and pick the access level: read only, read and draft, or full access.

## 4. Turn it on in a chat

In a conversation, click + at the bottom left, then Connectors, and make sure MyFeedIn is on.

## Check it worked

Ask Claude: "Use MyFeedIn to list my last 5 LinkedIn posts." If it answers with your real posts, you are set.

## Troubleshooting

**Which Claude plan do I need?**

Custom connectors work on every plan. The Free plan allows one. On Team and Enterprise, an owner adds MyFeedIn in Organization settings, then each member clicks Connect.

**I changed something and the connector looks stale**

Connectors cannot be edited. Remove MyFeedIn from Connectors and add it again.

---

Canonical version: https://myfeedin.co/documentation/mcp/claude
Published by MyFeedIn (https://myfeedin.co). Cite the canonical URL.


---

---
title: Connect Cursor to MyFeedIn
description: One click, or a few lines of mcp.json
url: https://myfeedin.co/documentation/mcp/cursor
type: agent-setup
source: MyFeedIn
---

# Connect Cursor to MyFeedIn

Install in one click, or add three lines to your MCP config. Cursor detects that MyFeedIn needs a sign-in and opens your browser.

## 1. Install in one click

Opens Cursor with the MyFeedIn server filled in. Confirm the install.

## 2. Or add it by hand

Global applies to every project, Project only to the repo you put it in. Merge the entry into `mcpServers` if the file already exists.

**Global**

`~/.cursor/mcp.json`
```
{
  "mcpServers": {
    "myfeedin": {
      "url": "https://mcp.myfeedin.co"
    }
  }
}
```

**Project**

`.cursor/mcp.json`
```
{
  "mcpServers": {
    "myfeedin": {
      "url": "https://mcp.myfeedin.co"
    }
  }
}
```

## 3. Sign in

In Cursor's MCP settings, click Connect next to `myfeedin`. Your browser opens on myfeedin.co: sign in and approve.

## Check it worked

In Cursor settings, `myfeedin` is toggled on and its tools are listed under Available tools. Then ask the agent: "list my last 5 LinkedIn posts".

## Troubleshooting

**The server stays red**

Open the Output panel (Cmd+Shift+U), pick MCP Logs and look for the error. Toggling the server off and on retries the connection.

---

Canonical version: https://myfeedin.co/documentation/mcp/cursor
Published by MyFeedIn (https://myfeedin.co). Cite the canonical URL.


---

---
title: Connect VS Code to MyFeedIn
description: GitHub Copilot agent mode
url: https://myfeedin.co/documentation/mcp/vscode
type: agent-setup
source: MyFeedIn
---

# Connect VS Code to MyFeedIn

Copilot's agent mode in VS Code talks to remote MCP servers. Install MyFeedIn in one click or commit it to your workspace.

## 1. Install in one click

Opens VS Code on the install screen for MyFeedIn.

## 2. Or add it to the workspace

Note that VS Code uses `servers`, not `mcpServers`. For every workspace instead, run MCP: Open User Configuration and add the same entry.

`.vscode/mcp.json`
```
{
  "servers": {
    "myfeedin": {
      "type": "http",
      "url": "https://mcp.myfeedin.co"
    }
  }
}
```

## 3. Start it and sign in

Click Start above the entry in `mcp.json`. VS Code opens your browser on myfeedin.co: sign in and approve.

## Check it worked

Run MCP: List Servers from the command palette: `myfeedin` should be running. In Copilot Chat, switch to Agent mode and ask "list my last 5 LinkedIn posts".

## Troubleshooting

**Where do I see the error?**

MCP: List Servers, select `myfeedin`, then Show Output.

---

Canonical version: https://myfeedin.co/documentation/mcp/vscode
Published by MyFeedIn (https://myfeedin.co). Cite the canonical URL.


---

---
title: Connect ChatGPT to MyFeedIn
description: A custom plugin in ChatGPT
url: https://myfeedin.co/documentation/mcp/chatgpt
type: agent-setup
source: MyFeedIn
---

# Connect ChatGPT to MyFeedIn

Add MyFeedIn as a custom MCP plugin. ChatGPT registers itself with our server, so there is no key to copy.

## 1. Open Plugins

On chatgpt.com, open Plugins, click + and choose to add a custom MCP server. If you do not see the option, your plan or workspace admin has not enabled developer mode.

[Open ChatGPT plugins](https://chatgpt.com/plugins)

## 2. Paste the server URL

Name it MyFeedIn, paste the URL and keep OAuth as the authentication.

```
https://mcp.myfeedin.co
```

## 3. Sign in and create

ChatGPT opens myfeedin.co. Sign in, approve, then create the plugin and review the tools it found.

## 4. Use it in a chat

Start a new chat and type @ to pick MyFeedIn.

## Check it worked

Ask: "@MyFeedIn list my last 5 LinkedIn posts." After we ship new tools, open the plugin page and click Refresh.

## Troubleshooting

**Which ChatGPT plan do I need?**

Custom MCP servers need developer mode, which OpenAI enables per plan and per workspace. Business and Enterprise admins turn it on for their members.

---

Canonical version: https://myfeedin.co/documentation/mcp/chatgpt
Published by MyFeedIn (https://myfeedin.co). Cite the canonical URL.


---

---
title: Connect Codex to MyFeedIn
description: Two commands in your terminal
url: https://myfeedin.co/documentation/mcp/codex
type: agent-setup
source: MyFeedIn
---

# Connect Codex to MyFeedIn

The Codex CLI and IDE extension share one config, so adding MyFeedIn once covers both.

## 1. Add the server

**Command**

```
codex mcp add myfeedin --url https://mcp.myfeedin.co
```

**config.toml**

`~/.codex/config.toml`
```
[mcp_servers.myfeedin]
url = "https://mcp.myfeedin.co"
```

## 2. Sign in

Your browser opens on myfeedin.co: sign in and approve.

```
codex mcp login myfeedin
```

## Check it worked

```
codex mcp list
```

`myfeedin` should be listed. Inside Codex, `/mcp` shows its tools. Then ask "list my last 5 LinkedIn posts".

## Troubleshooting

**Codex times out on start**

Raise `startup_timeout_sec` under `[mcp_servers.myfeedin]` in `config.toml` (default 10).

---

Canonical version: https://myfeedin.co/documentation/mcp/codex
Published by MyFeedIn (https://myfeedin.co). Cite the canonical URL.


---

---
title: Connect Any MCP client to MyFeedIn
description: The generic configuration
url: https://myfeedin.co/documentation/mcp/any
type: agent-setup
source: MyFeedIn
---

# Connect Any MCP client to MyFeedIn

MyFeedIn is a remote MCP server over Streamable HTTP with OAuth sign-in (dynamic client registration). Any client that supports that only needs the URL.

## 1. Use the server URL

Transport: Streamable HTTP (sometimes labelled HTTP). Authentication: OAuth, no API key.

```
https://mcp.myfeedin.co
```

## 2. Pick your client's config shape

The key that holds the URL changes from one client to the next.

**Windsurf**

`mcp_config.json`
```
{
  "mcpServers": {
    "myfeedin": { "serverUrl": "https://mcp.myfeedin.co" }
  }
}
```

**Gemini CLI**

```
gemini mcp add --transport http myfeedin https://mcp.myfeedin.co
```

**Zed**

`settings.json`
```
"context_servers": {
  "myfeedin": { "url": "https://mcp.myfeedin.co" }
}
```

**stdio only**

```
{
  "mcpServers": {
    "myfeedin": {
      "command": "npx",
      "args": ["mcp-remote", "https://mcp.myfeedin.co"]
    }
  }
}
```

Raycast and n8n use a form: choose HTTP (n8n: HTTP Streamable) and OAuth with dynamic registration, then paste the URL. Use the stdio entry for clients that can only start a local process; it needs Node 18 or later.

## 3. Sign in when the client asks

Your browser opens on myfeedin.co. Sign in, choose the account or workspace to connect and the access level to grant.

## Check it worked

Ask your assistant to call the `get_connection_info` tool: it answers with the MyFeedIn account it is connected to.

## Troubleshooting

**mcp-remote keeps an old sign-in**

Delete `~/.mcp-auth` and restart your client to sign in again.

**Test the server without a client**

Run `npx @modelcontextprotocol/inspector`, choose Streamable HTTP and paste the URL.

---

Canonical version: https://myfeedin.co/documentation/mcp/any
Published by MyFeedIn (https://myfeedin.co). Cite the canonical URL.


---

---
title: MyFeedIn REST API reference
description: Every endpoint of the MyFeedIn REST API with its scope, parameters and errors.
url: https://myfeedin.co/documentation/api
type: docs
source: MyFeedIn
---

# MyFeedIn REST API reference

Base URL: `https://myfeedin.co/api/v1`. JSON over HTTPS. OpenAPI 3.1 spec: https://myfeedin.co/api/v1/openapi.json

## Authentication

Send an API key as a bearer token on every request. Keys are created in Settings > MCP & API, shown once, and bound to the personal account or to one workspace.

```bash
curl https://myfeedin.co/api/v1/me \
  -H "Authorization: Bearer mfi_live_..."
```

## Scopes

Each key carries the scopes ticked at creation. Campaign scopes need the Growth plan. `posts:write` is not granted by default.

| Scope | Grants |
| --- | --- |
| `posts:read` | Read your published posts and their analytics |
| `posts:write` | Write drafts and schedule posts on LinkedIn |
| `comments:read` | Read the comments you left on other people's posts |
| `feeds:read` | List feeds and the people in them |
| `feeds:write` | Create feeds and manage the people in them |
| `campaigns:read` | List campaigns and their stats |
| `campaigns:write` | Create campaigns and add profiles |
| `linkedin:read` | Search LinkedIn and read profiles and posts with your account (daily limits apply) |
| `prospects:read` | Read your prospect lists |
| `prospects:write` | Create prospect lists and save prospects |
| `agent:write` | Queue people with their own steps in agent campaigns |

## Errors and rate limits

Errors return `{ "error": "message" }`, plus `code` (and `problems`) on publishing endpoints. Keys are limited to about 120 requests per minute; over the limit the API answers 429 with `retry_after` in seconds.

| Status | Meaning |
| --- | --- |
| 400 | Missing or malformed parameters. |
| 401 | Missing, invalid or revoked key. |
| 402 | Subscription inactive. |
| 403 | Key lacks the scope or plan, or the action needs a connected LinkedIn account. |
| 404 | Resource does not exist in this key's scope. |
| 409 | The resource's state does not allow this action. |
| 422 | Validation failed; see `code` and `problems`. |
| 429 | Rate limit exceeded. |

## Personal and workspace keys

A workspace key reads the posts, comments and analytics of every member; rows then carry an `author`, and the `member` parameter (a member's name, email or id, from `/workspace/members`) narrows a request to one person. Feeds, saved people and campaigns belong to the workspace. A personal key reads one account and never returns `author`.

## Endpoints

### Account

#### GET /me

**Current key.** The calling key's user id, workspace, and granted scopes.

Requires: no scope.

### Posts

#### GET /posts

**List posts.** Published LinkedIn posts, newest first or ranked by engagement.

Requires: scope `posts:read`.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | no | Case-insensitive search across the post body. |
| `sort` | query | string | no | Default recent. One of: recent, impressions, comments, reactions. |
| `period` | query | string | no | Window. Default 90d for ranked sorts, unbounded otherwise. One of: 30d, 90d, 365d, all. |
| `since` | query | string | no | Earliest published_at, ISO 8601. |
| `until` | query | string | no | Latest published_at, ISO 8601. |
| `member` | query | string | no | Workspace keys only. A member's name, email or id (see /workspace/members). Omit to cover every member. |
| `limit` | query | integer | no | 1 to 100. Default 20. |

#### GET /posts/{id}

**Get a post.** One post with its full body and media.

Requires: scope `posts:read`.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Post id. |
| `member` | query | string | no | Workspace keys only. A member's name, email or id (see /workspace/members). Omit to cover every member. |

### Analytics

#### GET /analytics

**Aggregate analytics.** Totals and averages over a period; workspace keys also get by_member.

Requires: scope `posts:read`.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `period` | query | string | no | Window. Default 30d. One of: 30d, 90d, 365d, all. |
| `compare_to` | query | string | no | Also return the preceding window and the percent deltas. One of: previous. |
| `member` | query | string | no | Workspace keys only. A member's name, email or id (see /workspace/members). Omit to cover every member. |

#### GET /analytics/patterns

**Engagement patterns.** Best day, best hour and engagement by post length, from your own history.

Requires: scope `posts:read`.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `period` | query | string | no | Window. Default 365d. One of: 30d, 90d, 365d, all. |
| `timezone` | query | string | no | IANA zone for the best day and hour. Default UTC. |
| `member` | query | string | no | Workspace keys only. A member's name, email or id (see /workspace/members). Omit to cover every member. |

### Comments

#### GET /comments

**List comments.** Comments you left on other people's posts, newest first.

Requires: scope `comments:read`.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | no | Case-insensitive search across the comment body. |
| `since` | query | string | no | Earliest comment date, ISO 8601. |
| `member` | query | string | no | Workspace keys only. A member's name, email or id (see /workspace/members). Omit to cover every member. |
| `limit` | query | integer | no | 1 to 100. Default 20. |

### People

#### GET /people

**Search saved people.** Everyone saved across your feeds, by name or headline.

Requires: scope `feeds:read`.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | yes | Name or headline keyword. |
| `limit` | query | integer | no | 1 to 100. Default 20. |

### Workspace

#### GET /workspace/members

**List workspace members.** Who the key can read, for the `member` parameter. Empty roster on a personal key.

Requires: no scope.

### Feeds

#### GET /feeds

**List feeds.**

Requires: scope `feeds:read`.

#### POST /feeds

**Create feed.**

Requires: scope `feeds:write`.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `name` | body | string | yes | Feed name, max 120 characters. |

#### GET /feeds/{id}/people

**List people in a feed.**

Requires: scope `feeds:read`.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Feed id. |
| `limit` | query | integer | no | 1 to 200. Default 100. |

#### POST /feeds/{id}/people

**Add people to a feed.** Resolves each URL through your connected LinkedIn account, then adds it to the feed.

Requires: scope `feeds:write`, Growth plan.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Feed id. |
| `linkedin_url` | body | string | no | A single LinkedIn profile URL. |
| `linkedin_urls` | body | string[] | no | Up to 25 profile URLs, instead of linkedin_url. |

#### DELETE /feeds/{id}/people/{personId}

**Remove person from feed.**

Requires: scope `feeds:write`.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Feed id. |
| `personId` | path | string | yes | Person id, from the list endpoint. |

### Publishing

#### GET /drafts

**List calendar posts.** Posts written in MyFeedIn's Content calendar: drafts, scheduled, failed, and published ones from the last 60 days.

Requires: scope `posts:write`.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `status` | query | string | no | Default all. One of: all, draft, scheduled, published, failed. |
| `since` | query | string | no | On or after this slot or publication date. |
| `until` | query | string | no | On or before this slot or publication date. |
| `limit` | query | integer | no | 1 to 200. Default 50. |

#### POST /drafts

**Create a draft.** Saves a post as a draft. Nothing reaches LinkedIn until it is scheduled.

Requires: scope `posts:write`.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `text` | body | string | yes | The post, plain text. Links stay in the text (no preview card). |
| `first_comment` | body | string | no | Stored with the draft. MyFeedIn does not post comments. |
| `scheduled_at` | body | string | no | Places the draft on a day without scheduling it. ISO 8601 with an offset (2026-10-14T08:30:00+02:00), or a local YYYY-MM-DDTHH:mm read in `timezone`. A bare date is refused. |
| `timezone` | body | string | no | IANA zone for a local scheduled_at. Defaults to the timezone saved in Settings > Publishing. |
| `image_urls` | body | string[] | no | Public https image URLs (JPEG, PNG or GIF, 20 MB each, up to 20; LinkedIn refuses WebP). Downloaded and attached; one that fails is listed in media_errors and the draft is saved anyway. |
| `publish_as` | body | string | no | Workspace keys: the member whose LinkedIn account the post goes out on (name, email or user_id from /workspace/members). Default: decided when scheduled, else your own account. |

#### GET /drafts/{id}

**Get a calendar post.**

Requires: scope `posts:write`.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Post id. |

#### PATCH /drafts/{id}

**Edit a draft.** Edits a draft, scheduled or failed post. A scheduled post stays scheduled with the new version.

Requires: scope `posts:write`.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Post id. |
| `text` | body | string | no | New text. |
| `first_comment` | body | string | no | New first comment, stored only; empty string or null removes it. |
| `scheduled_at` | body | string | no | Moves the draft's day. ISO 8601 with an offset (2026-10-14T08:30:00+02:00), or a local YYYY-MM-DDTHH:mm read in `timezone`. A bare date is refused. |
| `timezone` | body | string | no | IANA zone for a local scheduled_at. Defaults to the timezone saved in Settings > Publishing. |
| `publish_as` | body | string | no | Drafts only: moves the draft to another member's LinkedIn account. A scheduled post moves through POST /drafts/{id}/schedule with publish_as. |

#### POST /drafts/{id}/media

**Add images to a post.** Adds images after the post's current ones. Send the files as multipart/form-data `file` fields (4.5 MB per request), JSON with `url` or `urls` for public images MyFeedIn downloads (20 MB each), or JSON `upload_ids` for bigger files sent through /drafts/{id}/media/upload-url. JPEG, PNG or GIF (LinkedIn refuses WebP), up to 20 per post. An image that fails is listed in media_errors.

Requires: scope `posts:write`.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Post id. |
| `url` | body | string | no | One public https image URL (JSON body). |
| `urls` | body | string[] | no | Several image URLs (JSON body). |
| `upload_ids` | body | string[] | no | Files already PUT on URLs from /drafts/{id}/media/upload-url (JSON body). |

#### POST /drafts/{id}/media/upload-url

**Get an upload URL for an image.** For image files over 4.5 MB (up to 20 MB). PUT the raw file on `upload_url` with the returned Content-Type header within 15 minutes, then attach it with POST /drafts/{id}/media and `upload_ids`.

Requires: scope `posts:write`.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Post id. |
| `file_name` | body | string | yes | The file name with its extension (.jpg, .png, .gif). |
| `content_type` | body | string | no | image/jpeg, image/png or image/gif, when the extension says nothing. |

#### POST /drafts/{id}/schedule

**Schedule a post.** MyFeedIn publishes the post at the slot on the account in publish_as, else the draft's account, else your own; the answer's publishes_as names it. Needs that account connected to MyFeedIn and a plan that allows scheduling; the error `code` says what is missing (account_missing, token_expired, paid_plan_required).

Requires: scope `posts:write`.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Post id. |
| `scheduled_at` | body | string | yes | ISO 8601 with an offset (2026-10-14T08:30:00+02:00), or a local YYYY-MM-DDTHH:mm read in `timezone`. A bare date is refused. |
| `timezone` | body | string | no | IANA zone for a local scheduled_at. Defaults to the timezone saved in Settings > Publishing. |
| `randomize` | body | boolean | no | Spread the publish time within ±4 minutes. Default: your publishing setting. |
| `publish_as` | body | string | no | Workspace keys: the member whose LinkedIn account it goes out on (name, email or user_id). |

#### DELETE /drafts/{id}/schedule

**Unschedule a post.** Puts a scheduled post back to draft. Nothing goes out.

Requires: scope `posts:write`.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Post id. |

### Campaigns

#### GET /campaigns

**List campaigns.**

Requires: scope `campaigns:read`, Growth plan.

#### POST /campaigns

**Create campaign.** Creates a draft campaign on your connected LinkedIn account.

Requires: scope `campaigns:write`, Growth plan.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `name` | body | string | no | Default Untitled campaign. |
| `icon` | body | string | no | Default Megaphone. |

#### GET /campaigns/{id}

**Get campaign.**

Requires: scope `campaigns:read`, Growth plan.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Campaign id. |

#### POST /campaigns/{id}/profiles

**Add profiles by URL.**

Requires: scope `campaigns:write`, Growth plan.

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Campaign id. |
| `linkedin_url` | body | string | no | A single LinkedIn profile URL. |
| `linkedin_urls` | body | string[] | no | Up to 25 profile URLs, instead of linkedin_url. |

---

Canonical version: https://myfeedin.co/documentation/api
Published by MyFeedIn (https://myfeedin.co). Cite the canonical URL.
