# Posts

Source: https://projectfeed.app/docs/api/posts

Create, edit, publish, version, and follow posts.

-   [Plan Free for reads, Pro or Enterprise for API key writes](https://projectfeed.app/docs/billing)
-   [Scopes posts:read, posts:write, media:write, notifications:write, tasks:read](https://projectfeed.app/docs/api/scopes)

Session tokens accept post edit, delete and version publishing with posts:write, and bookmark, unbookmark, follow, and mute with notifications:write. Send Authorization: Bearer with X-Project-Feed-Workspace. Only the author can edit or publish a version. Viewers can change their own bookmarks and follow state but cannot edit posts or publish versions. Post edits support If-Match but do not deduplicate by Idempotency-Key. Version publishing accepts If-Match or expectedUpdatedAt and rejects a changed source with 412 precondition_failed. It deduplicates matching requests with the same key before rechecking the original revision.

Delete requires the author or a workspace owner or admin, project write access, and no legal hold. Post edit and delete accept If-Match using the original ETag but have no keyed replay receipt. Keep the original condition when retrying. After a lost response or 412, refetch and compare state before another write. A missing post can mean deletion or lost access, and repeating delete can report already deleted. Bookmarks set a desired state and can be retried with the same verb; serialize later save or unsave intent. Report post and Hide author have no REST routes. Muting a post only changes notification follow state.

## Formatted text

Posts, comments, annotations, and Docs accept plain strings or Plate JSON block arrays in `content`. For Markdown, set `contentFormat` to `markdown`. Task descriptions use `description` and `descriptionFormat`. These options apply to both create and edit requests.

JSON

```
{
  "content": "## Review\n\n- **Ready**\n- [Details](https://example.com)",
  "contentFormat": "markdown"
}
```

Markdown supports headings, nested lists, checklists, links, tables, code blocks, and inline formatting. Footnotes become numbered superscript markers with the notes listed at the end. Structured JSON uses the editor's blocks. Each block has a `type` and `children`. Text leaves use `text` with optional marks such as `bold` or `italic`.

JSON

```
{
  "content": [
    {"type": "h2", "children": [{"text": "Review"}]},
    {"type": "p", "indent": 1, "listStyleType": "disc", "children": [{"text": "Ready", "bold": true}]}
  ]
}
```

Explicit formats are `plaintext`, `markdown`, and `platejs`. Omit the format to keep existing string behavior or infer structured JSON. Responses retain the stored formatting. Task comments return their Plate content as a JSON string.

Posts, task descriptions, and Docs can show a file inline. Write a Markdown image whose URL is `media:` followed by the file's media ID, such as `![Login screen](media:<mediaId>)`. The text in brackets becomes the caption. In Plate JSON, put the same URL on an `img`, `video`, `audio`, or `file` node. The file can be on the same post or task, on another post, task, or comment, on a canvas, or uploaded to a doc, as long as you can open it. A project-restricted key can only use files from its project. When the request also sends `uploads`, `upload:0` names its first upload. A media ID you cannot open returns 400. A doc read as Markdown writes its inline files back the same way, so they survive an edit.

JSON

```
{
  "content": "Fixed the overflow.\n\n![After the fix](upload:0)\n\n![Original report](media:<mediaId>)",
  "contentFormat": "markdown",
  "uploads": [
    {
      "uploadToken": "<uploadToken>",
      "parts": []
    }
  ]
}
```

The server derives `contentText` and `descriptionText` from the content. Character limits count visible text; request-size limits also apply. Names, titles, and other plain-text fields remain strings.

## Endpoints

### GET /api/v1/posts

Scope

posts:read

Query parameters

-   `projectId` string
    
    Filter by project (query param)
    
-   `status` string
    
    Filter by status: draft or published (default: published). Drafts list only your own.
    
-   `limit` number
    
    Number of posts, 1 to 100 (default 50)
    
-   `authorId` string
    
    Only posts by this user. Use me for your own posts.
    
-   `tagId` string
    
    Only posts with this tag. Not allowed with updatedSince or includeDeleted.
    
-   `q` string
    
    Words to find in the title or text, up to 200 characters. Searches up to the top 1,000 matches in the title and in the text, fewer when the matches are very large, and keeps the best 200 you can see in each. Not allowed with updatedSince or includeDeleted.
    
-   `createdAfter` number|string
    
    Only posts created after this time, as Unix milliseconds or an ISO 8601 time with a timezone. The time is exclusive.
    
-   `createdBefore` number|string
    
    Only posts created before this time. Exclusive.
    
-   `publishedAfter` number|string
    
    Only posts first published after this time. Exclusive. Drafts never match.
    
-   `publishedBefore` number|string
    
    Only posts first published before this time. Exclusive.
    
-   `hasRelease` boolean
    
    true for posts with release details, false for posts without.
    
-   `releaseType` string
    
    Only posts with this release type: release, beta, or alpha.
    
-   `createdVia` string
    
    Only posts created from this source: web, api, slack_bot, discord_bot, github_app, ai_aggregation, inbound_webhook, or mobile.
    
-   `sort` string
    
    createdAt (default), updatedAt, or lastPublishedAt. lastPublishedAt orders by the latest published version and does not apply to drafts. With updatedSince or includeDeleted the list is always by updatedAt, and any other value returns 400.
    
-   `order` string
    
    desc (default) or asc. With updatedSince the default is asc.
    
-   `include` string
    
    Comma-separated extras for each post: tags (up to 200), attachments, links (linked tasks, up to 200), or counts (comments, reactions, annotations, bookmarks). A list that was cut is marked with tagsTruncated or linksTruncated.
    
-   `updatedSince` number|string
    
    Only posts changed after this time, as Unix milliseconds or an ISO 8601 time with a timezone. The time is exclusive, and results come back oldest change first. To poll, send the largest updatedAt you have seen minus 5 seconds and skip posts whose id and updatedAt you already have.
    
-   `includeDeleted` boolean
    
    Include deleted posts. Each carries deletedAt, which is null for a live one. The response also has removed: the posts the caller can no longer open because they went back to draft or moved to another project, and the posts that still open but left the status or project you asked for, as id, updatedAt, and deletedAt.
    
-   `cursor` string
    
    nextCursor from the previous response. Treat it as opaque. A createdAt timestamp from older clients is still accepted.
    
-   `fields` string
    
    Comma-separated fields to return. id is always included. See Choosing fields in Conventions.
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/posts' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "posts": [
    {
      "id": "pst_abc123",
      "postNumber": 12,
      "identifier": "WR-12",
      "sequenceNumber": 12,
      "title": "Weekly Update",
      "status": "published",
      "projectId": "prj_xyz789",
      "project": { "id": "prj_xyz789", "name": "Website", "slug": "website" },
      "webUrl": "https://projectfeed.app/acme/post/WR-12",
      "createdVia": "api",
      "currentVersion": 3,
      "versionCount": 3,
      "release": {
        "version": "2.4.0",
        "type": "release",
        "compatibility": "macOS 14 and later",
        "downloadUrl": "https://example.com/app-2.4.0.dmg"
      },
      "author": {
        "id": "usr_def456",
        "name": "Jane Smith",
        "email": "jane@example.com",
        "image": "/api/media/avatars/jane.jpg"
      },
      "createdAt": 1706788800000,
      "updatedAt": 1706797800000,
      "publishedAt": 1706797800000,
      "lastPublishedAt": 1706797800000,
      "deletedAt": null
    }
  ],
  "removed": [
    { "id": "post_def456", "updatedAt": 1706798800000, "deletedAt": null }
  ],
  "hasMore": true,
  "nextCursor": "opaque-continuation"
}
```

### POST /api/v1/posts

Scope

posts:write

Body parameters

-   `title` string required
    
    Post title (max 200 chars)
    
-   `content` string|array required
    
    Post content (plain text, Markdown, or Plate JSON blocks). The plain text it renders to can be up to 25,000 characters. In Markdown, ![caption](media:<mediaId>) shows a file inline and upload:<index> names one of uploads.
    
-   `contentFormat` string
    
    plaintext, markdown, or platejs. Omit for existing string behavior or inferred JSON.
    
-   `projectId` string required
    
    Project ID to post in
    
-   `status` string
    
    draft or published (default: draft)
    
-   `release` object
    
    Release details: version (required, up to 40 characters), type (required: release, beta, or alpha), compatibility (up to 120 characters), downloadUrl (https only, up to 2048 characters), and downloadLabel (up to 40 characters, needs downloadUrl). Returns 400 for invalid values.
    
-   `idempotencyKey` string
    
    Up to 128 characters. Reuse the same key when retrying a create request. A matching undeleted post by the same author in this workspace is returned instead of creating another. The Idempotency-Key header works too.
    
-   `uploads` object[]
    
    Up to 10 files as { uploadToken, parts, thumbHash } from uploads prepared with destination newPost and this project's ID and not completed. thumbHash is optional: a base64 ThumbHash of an image or a video's poster frame, 5 to 64 bytes once decoded, which clients use for a blurred placeholder. The post is created with every file attached. Each token works once, so send an idempotencyKey to make a retry return the post. Requires media:write.
    
-   `compare` object[]
    
    Before/after pairs as { before, after, beforeLabel, afterLabel }, where before and after are indexes into uploads. Each pair shows as one image with a divider to drag, and the viewer opens in the same wipe. Images and GIFs only, and each upload can be in one pair. Labels are optional, up to 40 characters, and default to Before and After. Returns 400 for an index that is out of range or already paired.
    
-   `draftSubmission` object
    
    { draftKey, submissionId } of a shared post draft the caller holds for publishing, as the Project Feed apps send it. Send it with status published; any other status, including the default, returns 400. The same write marks the draft as published, so another device cannot publish it again. If the draft was already published, that post is returned. Returns 409 when the hold has ended or another device holds the draft.
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/posts' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "Prepare launch checklist",
  "content": "Launch is on schedule.",
  "projectId": "prj_abc123"
}'
```

Response

JSON

```
{
  "id": "pst_abc123",
  "postNumber": 12,
  "identifier": "WR-12",
  "sequenceNumber": 12,
  "title": "Weekly Update",
  "content": "Launch is on schedule.",
  "status": "published",
  "currentVersion": 3,
  "versionCount": 3,
  "publishedAt": 1779680000000,
  "createdAt": 1779600000000,
  "updatedAt": 1779680000000,
  "webUrl": "https://projectfeed.app/acme/post/WR-12",
  "author": {
    "id": "usr_def456",
    "name": "Jane Smith",
    "email": "jane@example.com",
    "image": "/api/media/avatars/jane.jpg"
  },
  "project": {
    "id": "prj_xyz789",
    "name": "Product Launch",
    "slug": "product-launch"
  }
}
```

### GET /api/v1/posts/:id

Scope

posts:read

Path parameters

-   `id` string required
    
    Post ID, post number, or identifier such as WR-12 (URL path)
    

Query parameters

-   `include` string
    
    Comma-separated extras: tags, attachments (with processing state), providerFiles (Figma and Google Drive files, up to 100; providerFilesTruncated marks a longer list), counts, viewer (following, muted, and bookmarked booleans for the caller), or shareLinks (active links, without tokens or urls, up to 50; shareLinksTruncated marks a longer list).
    
-   `fields` string
    
    Comma-separated fields to return. id is always included. See Choosing fields in Conventions.
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "id": "pst_abc123",
  "postNumber": 12,
  "identifier": "WR-12",
  "title": "Weekly Update",
  "status": "published",
  "webUrl": "https://projectfeed.app/acme/post/WR-12",
  "linkAttachments": [
    {
      "id": "lnk_abc123",
      "url": "https://example.com/spec",
      "status": "ready",
      "preview": {
        "title": "Launch spec",
        "description": "What ships and when.",
        "imageUrl": "https://example.com/spec.png",
        "faviconUrl": "https://example.com/favicon.ico",
        "siteName": "Example"
      },
      "createdBy": "usr_abc123",
      "createdAt": 1709251200000
    }
  ]
}
```

### PATCH /api/v1/posts/:id

Scope

posts:write

Path parameters

-   `id` string required
    
    Post ID (URL path)
    

Body parameters

-   `title` string
    
    New title
    
-   `content` string|array
    
    New content (plain text, Markdown, or Plate JSON blocks). The plain text it renders to can be up to 25,000 characters. A legacy post already over the limit can be saved only if the new text is shorter. In Markdown, ![caption](media:<mediaId>) shows a file inline.
    
-   `contentFormat` string
    
    plaintext, markdown, or platejs. Omit for existing string behavior or inferred JSON.
    
-   `status` string
    
    draft or published
    
-   `release` object|null
    
    Replaces the post's release details, same fields as when creating. Send null to remove them. Omit to leave them unchanged.
    
-   `projectId` string
    
    Move the post to another project in the workspace. Chat discussions about the post move with it. Returns 409 if the post has too many comments or files to move them.
    

Request

curl

```
curl --request PATCH \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "Prepare launch checklist"
}'
```

Response

JSON

```
{
  "id": "pst_abc123",
  "postNumber": 12,
  "identifier": "WR-12",
  "sequenceNumber": 12,
  "title": "Weekly Update",
  "content": "Launch is on schedule.",
  "status": "published",
  "currentVersion": 3,
  "versionCount": 3,
  "publishedAt": 1779680000000,
  "createdAt": 1779600000000,
  "updatedAt": 1779680000000,
  "webUrl": "https://projectfeed.app/acme/post/WR-12",
  "author": {
    "id": "usr_def456",
    "name": "Jane Smith",
    "email": "jane@example.com",
    "image": "/api/media/avatars/jane.jpg"
  },
  "project": {
    "id": "prj_xyz789",
    "name": "Product Launch",
    "slug": "product-launch"
  }
}
```

### DELETE /api/v1/posts/:id

Scope

posts:write

Path parameters

-   `id` string required
    
    Post ID (URL path)
    

Request

curl

```
curl --request DELETE \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{ "success": true }
```

### POST /api/v1/posts/:id/restore

Scope

posts:write

Path parameters

-   `id` string required
    
    Post ID, number, or identifier (URL path)
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/restore' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "id": "pst_abc123",
  "identifier": "WR-12",
  "title": "Weekly Update",
  "status": "published",
  "projectId": "prj_xyz789",
  "updatedAt": 1706797800000
}
```

### DELETE /api/v1/posts/:id/provider-files

Scope

posts:write

Path parameters

-   `id` string required
    
    Post ID, number, or identifier (URL path)
    

Query parameters

-   `provider` string required
    
    figma or google_drive
    
-   `externalId` string required
    
    The file's externalId from providerFiles
    

Request

curl

```
curl --request DELETE \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/provider-files?provider=figma&externalId=4XyZabc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "provider": "figma",
  "externalId": "4XyZabc123",
  "deleted": true
}
```

### GET /api/v1/posts/:id/share-links

Scope

posts:read

Path parameters

-   `id` string required
    
    Post ID, number, or identifier (URL path)
    

Query parameters

-   `limit` number
    
    Number of links, 1 to 100 (default 50)
    
-   `cursor` string
    
    nextCursor from the previous response
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/share-links' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "shareLinks": [
    {
      "id": "shr_abc123",
      "postId": "pst_abc123",
      "label": "Client review",
      "allowComments": true,
      "allowDownloads": false,
      "expiresAt": 1709380800000,
      "status": "active",
      "accessCount": 4,
      "lastAccessedAt": 1706900000000,
      "createdAt": 1706788800000,
      "createdById": "usr_def456",
      "revokedAt": null,
      "canRevoke": true
    }
  ],
  "hasMore": false,
  "nextCursor": null
}
```

### POST /api/v1/posts/:id/share-links

Scope

posts:write

Path parameters

-   `id` string required
    
    Post ID, number, or identifier (URL path)
    

Body parameters

-   `label` string
    
    Label, up to 100 characters
    
-   `expiresInDays` number|null
    
    Days until the link expires, from 1 to 365. null means no expiry. Omit it to use the workspace default. A workspace expiry limit rejects longer or missing expiries.
    
-   `allowComments` boolean
    
    Let visitors comment (default false)
    
-   `allowDownloads` boolean
    
    Let visitors download files (default false)
    
-   `idempotencyKey` string
    
    Up to 128 characters. A retry with the same key and body returns the link it created. The Idempotency-Key header works too.
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/share-links' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "label": "label_abc123"
}'
```

Response

JSON

```
{
  "id": "shr_abc123",
  "postId": "pst_abc123",
  "label": "Client review",
  "token": "kP3x...",
  "url": "https://projectfeed.app/share/kP3x...",
  "allowComments": true,
  "allowDownloads": false,
  "expiresAt": 1709380800000,
  "status": "active",
  "accessCount": 0,
  "lastAccessedAt": null,
  "createdAt": 1706788800000,
  "createdById": "usr_def456",
  "revokedAt": null,
  "canRevoke": true
}
```

### DELETE /api/v1/posts/:id/share-links/:linkId

Scope

posts:write

Path parameters

-   `id` string required
    
    Post ID, number, or identifier (URL path)
    
-   `linkId` string required
    
    Share link ID (URL path)
    

Request

curl

```
curl --request DELETE \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/share-links/lnk_abc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "id": "shr_abc123",
  "postId": "pst_abc123",
  "label": "Client review",
  "allowComments": true,
  "allowDownloads": false,
  "expiresAt": null,
  "status": "revoked",
  "accessCount": 4,
  "lastAccessedAt": 1706900000000,
  "createdAt": 1706788800000,
  "createdById": "usr_def456",
  "revokedAt": 1706950000000,
  "canRevoke": true
}
```

### GET /api/v1/share-links

Scope

posts:read

Query parameters

-   `status` string
    
    active, expired, or revoked
    
-   `postId` string
    
    Only links for this post (ID, number, or identifier)
    
-   `limit` number
    
    Number of links, 1 to 100 (default 50)
    
-   `cursor` string
    
    nextCursor from the previous response. A page can hold fewer links than limit when the filters skip some, so keep following nextCursor while hasMore is true.
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/share-links' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "shareLinks": [
    {
      "id": "shr_abc123",
      "postId": "pst_abc123",
      "label": "Client review",
          "allowComments": true,
      "allowDownloads": false,
      "expiresAt": null,
      "status": "active",
      "accessCount": 4,
      "lastAccessedAt": 1706900000000,
      "createdAt": 1706788800000,
      "createdById": "usr_def456",
      "revokedAt": null,
      "canRevoke": true,
      "post": { "id": "pst_abc123", "title": "Weekly Update", "identifier": "WR-12" }
    }
  ],
  "hasMore": false,
  "nextCursor": null
}
```

### GET /api/v1/me/bookmarks

Scope

posts:read

Query parameters

-   `limit` number
    
    Number of bookmarks, 1 to 100 (default 50)
    
-   `cursor` string
    
    nextCursor from the previous response
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/me/bookmarks' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "bookmarks": [
    {
      "createdAt": 1706800000000,
      "post": {
        "id": "pst_abc123",
        "identifier": "WR-12",
        "title": "Weekly Update",
        "status": "published",
        "projectId": "prj_xyz789",
        "authorId": "usr_def456",
        "createdAt": 1706788800000,
        "webUrl": "https://projectfeed.app/acme/post/WR-12"
      }
    }
  ],
  "hasMore": false,
  "nextCursor": null
}
```

### PUT /api/v1/posts/:id/bookmark

Scope

notifications:write

Path parameters

-   `id` string required
    
    Post ID, number, or identifier (URL path)
    

Request

curl

```
curl --request PUT \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/bookmark' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{ "bookmarked": true }
```

### DELETE /api/v1/posts/:id/bookmark

Scope

notifications:write

Path parameters

-   `id` string required
    
    Post ID, number, or identifier (URL path)
    

Request

curl

```
curl --request DELETE \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/bookmark' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{ "bookmarked": false }
```

### GET /api/v1/posts/:id/activity

Scope

posts:read

Path parameters

-   `id` string required
    
    Post ID, number, or identifier (URL path)
    

Query parameters

-   `limit` number
    
    Number of events, 1 to 100 (default 50)
    
-   `cursor` string
    
    nextCursor from the previous response
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/activity' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "activity": [
    {
      "id": "act_abc123",
      "type": "new_version",
      "createdAt": 1706797800000,
      "createdVia": "api",
      "actor": { "id": "usr_def456", "name": "Jane Smith", "image": "/api/media/avatars/jane.jpg" },
      "fromValue": null,
      "toValue": "3",
      "fromProjectId": null,
      "toProjectId": null,
      "commentId": null
    }
  ],
  "hasMore": false,
  "nextCursor": null
}
```

### GET /api/v1/posts/:id/versions

Scope

posts:read

Path parameters

-   `id` string required
    
    Post ID (URL path)
    

Query parameters

-   `limit` number
    
    Number of versions, 1 to 50 (default 20)
    
-   `cursor` number
    
    nextCursor from the previous page. It is a version number.
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/versions' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "versions": [
    {
      "id": "pvr_abc123",
      "postId": "pst_abc123",
      "number": 3,
      "isCurrent": true,
      "title": "Weekly Update",
      "changeNote": "Tightened the hero crop",
      "createdAt": 1779680000000,
      "author": {
        "id": "usr_def456",
        "name": "Jane Smith",
        "image": "/api/media/avatars/jane.jpg"
      },
      "mediaCount": 1,
      "media": [
        {
          "id": "att_abc123",
          "fileName": "hero.png",
          "originalFileName": "hero.png",
          "fileType": "image",
          "fileSize": 482133,
          "mimeType": "image/png",
          "width": 1920,
          "height": 1080,
          "duration": null,
          "url": "https://projectfeed.app/api/media/signed/hero.png",
          "thumbnailUrl": "https://projectfeed.app/api/media/signed/hero-thumb.png",
          "isProcessing": false,
          "hasError": false
        }
      ]
    }
  ],
  "hasMore": true,
  "nextCursor": 3
}
```

### GET /api/v1/posts/:id/versions/:version

Scope

posts:read

Path parameters

-   `id` string required
    
    Post ID (URL path)
    
-   `version` string required
    
    Version ID or version number (URL path)
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/versions/4' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "id": "pvr_abc123",
  "postId": "pst_abc123",
  "number": 3,
  "isCurrent": true,
  "title": "Weekly Update",
  "changeNote": "Tightened the hero crop",
  "createdAt": 1779680000000,
  "author": {
    "id": "usr_def456",
    "name": "Jane Smith",
    "image": "/api/media/avatars/jane.jpg"
  },
  "mediaCount": 1,
  "media": [
    {
      "id": "att_abc123",
      "fileName": "hero.png",
      "originalFileName": "hero.png",
      "fileType": "image",
      "fileSize": 482133,
      "mimeType": "image/png",
      "width": 1920,
      "height": 1080,
      "duration": null,
      "url": "https://projectfeed.app/api/media/signed/hero.png",
      "thumbnailUrl": "https://projectfeed.app/api/media/signed/hero-thumb.png",
      "isProcessing": false,
      "hasError": false
    }
  ],
  "content": [{ "type": "p", "children": [{ "text": "Launch is on schedule." }] }],
  "mediaIncomplete": false
}
```

### POST /api/v1/posts/:id/versions

Scope

posts:write

Path parameters

-   `id` string required
    
    Post ID (URL path)
    

Headers

-   `If-Match` string
    
    Source ETag or W/"<updatedAt>". A changed source returns 412 precondition_failed.
    

Body parameters

-   `expectedUpdatedAt` number
    
    Source updatedAt in Unix milliseconds. A changed source returns 412 precondition_failed. Must match If-Match when both are sent.
    
-   `title` string
    
    New title (max 200 chars). Defaults to the current title.
    
-   `content` string|array
    
    New content. Omit it to keep the current content; an empty or blank string returns 400. The plain text it renders to can be up to 25,000 characters. In Markdown, ![caption](media:<mediaId>) shows a file inline and upload:<index> names one of uploads.
    
-   `contentFormat` string
    
    plaintext, markdown, or platejs
    
-   `changeNote` string
    
    What changed (max 500 chars)
    
-   `mediaIds` string[]
    
    Media on the post to keep, in order. Omit to keep all current media except files an upload replaces; send [] to drop it.
    
-   `uploads` object[]
    
    New files as { uploadToken, parts } from an upload prepared for this post and not completed. Add replacesMediaId, the ID of a current file, to replace that file in its position; the ID must not appear in mediaIds, and each ID can be used once (400). An ID that is not on the post returns 404. Requires media:write.
    
-   `idempotencyKey` string
    
    Up to 100 characters. A retry with the same key and body returns the version it created with status 200. Reusing the key with a different body returns 409 with the code idempotency_key_reused.
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/versions' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "changeNote": "Tightened the hero crop",
  "mediaIds": [
    "att_abc123"
  ],
  "idempotencyKey": "hero-v3"
}'
```

Response

JSON

```
{
  "id": "pvr_abc123",
  "postId": "pst_abc123",
  "number": 3,
  "isCurrent": true,
  "title": "Weekly Update",
  "changeNote": "Tightened the hero crop",
  "createdAt": 1779680000000,
  "author": {
    "id": "usr_def456",
    "name": "Jane Smith",
    "image": "/api/media/avatars/jane.jpg"
  },
  "mediaCount": 1,
  "media": [
    {
      "id": "att_abc123",
      "fileName": "hero.png",
      "originalFileName": "hero.png",
      "fileType": "image",
      "fileSize": 482133,
      "mimeType": "image/png",
      "width": 1920,
      "height": 1080,
      "duration": null,
      "url": "https://projectfeed.app/api/media/signed/hero.png",
      "thumbnailUrl": "https://projectfeed.app/api/media/signed/hero-thumb.png",
      "isProcessing": false,
      "hasError": false
    }
  ],
  "content": [{ "type": "p", "children": [{ "text": "Launch is on schedule." }] }],
  "mediaIncomplete": false
}
```

### GET /api/v1/posts/:id/tags

Scope

posts:read

Path parameters

-   `id` string required
    
    Post ID, number, or identifier (URL path)
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/tags' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "tags": [
    {
      "id": "tag_abc123",
      "name": "design",
      "color": "#F59E0B",
      "description": "Design work",
      "scope": "workspace",
      "projectId": null,
      "usageCount": 12,
      "createdAt": 1779600000000,
      "updatedAt": null
    }
  ]
}
```

### POST /api/v1/posts/:id/tags

Scope

posts:write

Path parameters

-   `id` string required
    
    Post ID, number, or identifier (URL path)
    

Body parameters

-   `tagId` string
    
    ID of the tag to add. Send tagId or tagName.
    
-   `tagName` string
    
    Name of the tag to add
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/tags' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "tagId": "tag_abc123"
}'
```

Response

JSON

```
{
  "tags": [
    {
      "id": "tag_abc123",
      "name": "design",
      "color": "#F59E0B",
      "description": "Design work",
      "scope": "workspace",
      "projectId": null,
      "usageCount": 13,
      "createdAt": 1779600000000,
      "updatedAt": null
    }
  ]
}
```

### DELETE /api/v1/posts/:id/tags/:tagId

Scope

posts:write

Path parameters

-   `id` string required
    
    Post ID, number, or identifier (URL path)
    
-   `tagId` string required
    
    Tag ID (URL path)
    

Request

curl

```
curl --request DELETE \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/tags/tag_abc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "tags": []
}
```

### PUT /api/v1/posts/:id/tags

Scope

posts:write

Path parameters

-   `id` string required
    
    Post ID (URL path)
    

Body parameters

-   `tagIds` string[]
    
    Tag IDs to set, up to 50. Send tagIds, tagNames, or both. An empty array clears the tags.
    
-   `tagNames` string[]
    
    Tag names to set, up to 50
    

Request

curl

```
curl --request PUT \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/tags' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "tagIds": [
    "tag_abc123",
    "tag_def456"
  ]
}'
```

Response

JSON

```
{
  "tags": [
    {
      "id": "tag_abc123",
      "name": "design",
      "color": "#F59E0B",
      "description": "Design work",
      "scope": "workspace",
      "projectId": null,
      "usageCount": 12,
      "createdAt": 1779600000000,
      "updatedAt": null
    }
  ]
}
```

### GET /api/v1/posts/:id/portals

Scope

posts:read

Path parameters

-   `id` string required
    
    Post ID, identifier, or number (URL path)
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/portals' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "portals": [
    {
      "id": "prt_abc123",
      "name": "Client updates",
      "access": "public",
      "sharedVersion": 1,
      "currentVersion": 2,
      "updateAvailable": true,
      "url": "https://projectfeed.app/p/client-updates/updates/12"
    }
  ]
}
```

### GET /api/v1/posts/:id/tasks

Scopes

posts:read

tasks:read

Path parameters

-   `id` string required
    
    Post ID, identifier, or number (URL path)
    

Query parameters

-   `limit` number
    
    Tasks per page (max 100, default 50)
    
-   `cursor` string
    
    The nextCursor value from the previous page. See pagination in Conventions.
    
-   `fields` string
    
    Comma-separated fields to return. id is always included. See Choosing fields in Conventions.
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/tasks' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "tasks": [
    {
      "id": "tsk_abc123",
      "taskNumber": 42,
      "identifier": "PRO-42",
      "title": "Follow up on the launch post",
      "status": "todo",
      "priority": "medium",
      "dueDate": 1709856000000,
      "webUrl": "https://projectfeed.app/acme/task/PRO-42",
      "assignee": {
        "id": "usr_def456",
        "name": "Jane Smith",
        "email": "jane@example.com",
        "image": "/api/media/avatars/jane.jpg"
      },
      "project": {
        "id": "prj_abc123",
        "name": "Product Launch",
        "color": "#3B82F6"
      },
      "linkId": "tlk_abc123",
      "linkedAt": 1709251200000
    }
  ],
  "hasMore": false,
  "nextCursor": null
}
```

### GET /api/v1/posts/:id/link-attachments

Scope

posts:read

Path parameters

-   `id` string required
    
    Post ID, identifier, or number (URL path)
    

Query parameters

-   `fields` string
    
    Comma-separated fields to return. id is always included. See Choosing fields in Conventions.
    

Request

curl

```
curl --request GET \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/link-attachments' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "linkAttachments": [{
    "id": "lnk_abc123",
    "url": "https://example.com/spec",
    "status": "ready",
    "preview": {
      "title": "Launch spec",
      "description": "What ships and when.",
      "imageUrl": "https://example.com/spec.png",
      "faviconUrl": "https://example.com/favicon.ico",
      "siteName": "Example"
    },
    "createdBy": "usr_abc123",
    "createdAt": 1709251200000
  }],
  "hasMore": false,
  "nextCursor": null
}
```

### POST /api/v1/posts/:id/link-attachments

Scope

posts:write

Path parameters

-   `id` string required
    
    Post ID, identifier, or number (URL path)
    

Body parameters

-   `url` string required
    
    The link to attach (http or https)
    
-   `idempotencyKey` string
    
    Up to 128 characters. May be sent as the Idempotency-Key header instead. See Idempotency keys in Conventions.
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/link-attachments' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "url_abc123"
}'
```

Response

JSON

```
{
  "id": "lnk_abc123",
  "url": "https://example.com/spec",
  "status": "ready",
  "preview": {
    "title": "Launch spec",
    "description": "What ships and when.",
    "imageUrl": "https://example.com/spec.png",
    "faviconUrl": "https://example.com/favicon.ico",
    "siteName": "Example"
  },
  "createdBy": "usr_abc123",
  "createdAt": 1709251200000
}
```

### DELETE /api/v1/posts/:id/link-attachments/:linkId

Scope

posts:write

Path parameters

-   `id` string required
    
    Post ID, identifier, or number (URL path)
    
-   `linkId` string required
    
    Link ID from the list (URL path)
    

Request

curl

```
curl --request DELETE \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/link-attachments/lnk_abc123' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{ "id": "lnk_abc123", "deleted": true }
```

### POST /api/v1/posts/:id/follow

Scope

notifications:write

Path parameters

-   `id` string required
    
    Post ID (URL path)
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/follow' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "postId": "post_abc123",
  "status": "following"
}
```

### POST /api/v1/posts/:id/mute

Scope

notifications:write

Path parameters

-   `id` string required
    
    Post ID (URL path)
    

Request

curl

```
curl --request POST \
  --url 'https://projectfeed.app/api/v1/posts/pst_abc123/mute' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY'
```

Response

JSON

```
{
  "postId": "post_abc123",
  "status": "muted"
}
```

## Response fields

List, get, create, and update return posts with an `id`. The list leaves out `content`. Get, create, and update return the same post, with the content and the project. They also return `webUrl`, a link that opens the post in Project Feed. A draft opens only for its author. Get also returns `linkAttachments`, the web links on the post.

Delete returns `{ "success": true }`. Posts are soft deleted.

## Content limits

-   A request body can be up to 512 KB. A larger body returns 413.
-   Post text can be up to 25,000 characters. The limit applies to the plain text the content renders to, so formatting marks and Markdown syntax do not count. It is the same for plain text, Markdown, and Plate JSON content. Longer content returns 400.
-   A title can be up to 200 characters.

## Post status

-   `draft` posts are visible only to the author. New posts are drafts unless you send `status: "published"`. Drafts are not listed in the project feed, so open one in the app with its `webUrl`.
-   `published` posts are visible to project members and notify followers the first time they are published.

Listing drafts returns only your own. For pagination see [conventions](https://projectfeed.app/docs/api/conventions#pagination). A page can be short while `hasMore` is true.

## Versions

Each post starts at version 1. Publishing a version snapshots the title, content, and media, moves the post to the top of the feed, and notifies followers the same way the app does. Earlier versions keep their media, so reviewers can compare them. Post responses include `currentVersion` and `versionCount`.

Only the post author can publish a version, and publishing a draft also publishes the post. A new version returns 201. A retry with the same idempotency key returns the same version with 200.

To add a file, prepare an upload with `POST /api/v1/media/uploads` and the destination `{ "type": "post", "id": "pst_abc123" }`, transfer the bytes, then pass the upload token and part ETags in `uploads` instead of completing the upload. A completed upload is already on the current version, so list its media ID in `mediaIds` instead. A post has at most 10 files per version. See [files](https://projectfeed.app/docs/api/files).

To replace a file, add `replacesMediaId` with the current file's media ID to its upload item. The new file takes the replaced file's position among the files you keep, and reviewers can compare it with the file it replaced. The replaced file leaves the new version, so leave its ID out of `mediaIds`.

The version list is newest first. Media URLs are short-lived signed links, so fetch the version again for fresh ones.

## Release details

A post can carry `release` details for a build or version. The version is free text, so it does not have to be semver. Post responses include `release` when it is set. Release details belong to the post, not to a post version.

## Next steps

-   [Comments](https://projectfeed.app/docs/api/comments) and [reactions](https://projectfeed.app/docs/api/reactions) are added to a post by its ID.
-   [Tags](https://projectfeed.app/docs/api/tags) covers the tag catalog that post tags come from.
