# Bluesky API without AT Protocol boilerplate

Publish Bluesky posts, threads, website cards, quote posts, videos and content labels via REST API without manual AT Protocol facets or blob uploads.

Building directly on Bluesky’s AT Protocol means hand-calculating UTF-8 byte-offset facets for every link, hashtag and @mention, fetching Open Graph thumbnails for website cards, compressing blobs under Bluesky’s image ceiling, and managing session JWT renewals. PostSyncer handles all of it in one REST call.

**REST API:** https://postsyncer.com/api/v1 · **MCP server:** https://postsyncer.com/mcp · **Docs:** https://postsyncer.com/docs/platforms/bluesky

## Example Bluesky request

```bash
curl -X POST "https://postsyncer.com/api/v1/posts" \
  -H "Authorization: Bearer $POSTSYNCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workspace_id": 4815,
    "schedule_type": "schedule",
    "schedule_for": {
      "date": "2026-12-09",
      "time": "10:30",
      "timezone": "America/Los_Angeles"
    },
    "content": [
      {
        "text": "Our spring espresso menu is live today. #coffee"
      },
      {
        "text": "Washed Guji and honey-processed Caturra are both on bar all week."
      }
    ],
    "accounts": [
      {
        "id": 16245,
        "settings": {
          "website_card": {
            "uri": "https://haldencoffee.example/menu",
            "title": "Spring Menu at Halden Coffee"
          },
          "languages": [
            "en"
          ],
          "reply_rules": [
            "followers"
          ],
          "allow_quotes": true
        }
      }
    ]
  }'
```

```json
{
  "id": 81426,
  "status": "SCHEDULED",
  "platforms": [
    {
      "account_id": 16245,
      "platform": "bluesky",
      "status": "PENDING",
      "settings": {
        "languages": [
          "en"
        ],
        "reply_rules": [
          "followers"
        ]
      }
    }
  ],
  "skipped_accounts": [],
  "needs_media": []
}
```

## Quick start

1. **Connect Bluesky with an app password.** Authorize your Bluesky handle with an app password inside PostSyncer or send a hosted connect link via POST /accounts/connect-links with provider: bluesky.

2. **Send threads, cards, quotes or media.** Call POST /posts with text, up to 4 photos or one video, optional website_card, quote_post_url, reply_rules, languages and content_labels.

3. **Sync replies and track engagement.** Read Bluesky replies on schedule or via POST /comments/sync, reply with up to 4 photos or a video, and query likes, replies, reposts, quotes and saves via /analytics.

## Bluesky endpoints

- `POST /api/v1/posts` (`posts:create / schedule / publish`): Publish Bluesky single posts, threads, website cards, quote posts, photos and videos.

- `POST /api/v1/accounts/connect-links` (`accounts:create`): Create a hosted connect link with provider: bluesky for handle and app-password setup.

- `DELETE /api/v1/posts/{id}` (`posts:delete`): Cancel scheduled posts or ask Bluesky to delete the first post of a published thread.

- `GET /api/v1/comments` (`comments:read`): Read Bluesky replies synced on schedule or on demand via POST /comments/sync.

- `POST /api/v1/comments` (`comments:create`): Reply to a Bluesky comment with text, up to 4 photos or one video.

- `GET /api/v1/analytics/posts/{id}` (`analytics:read`): Read likes, comments, shares (reposts), quotes and saves for a Bluesky post.

## Bluesky media and text specs

- **Photos** (JPG, PNG, GIF, WebP, Up to 4 · 5 MB upload): Photos over 1.5 MB are compressed automatically to fit Bluesky’s blob size ceiling.

- **Video & solo GIF** (MP4, MOV, WebM · GIF, 1 video · up to 100 MB): MOV and WebM convert to MP4 automatically; a lone GIF uploads as a looping video so it animates.

- **Text & facets** (Plain text + auto facets, 300 characters per post): Links, valid @handles and #hashtags auto-convert to AT Protocol facets; split longer text into content[] items.

- **Website card** (uri + optional title/desc, First post without media): Missing card title, description and thumbnail image are scraped automatically from the target URL.

- **Languages & labels** (ISO 639-1 · content_labels, Up to 3 languages): content_labels (sexual, nudity, porn, graphic-media) apply to posts with media or a website card.

- **platform key:** bluesky

- **Threads & first comment:** Multi-item content[] publishes as chained replies; is_first_comment posts at the end of the thread (delay 0 sends inline).

- **Session handling:** Connects with handle + app password; PostSyncer refreshes expired sessions automatically unless the app password is revoked.

- **Deleting posts:** DELETE /posts/{id} requests Bluesky to delete the first post; remaining thread replies stay live.

- **Comments API:** Synced on schedule; reply (+4 photos or 1 video) and delete own replies. Bluesky cannot hide comments (returns 422).

- **Analytics metrics:** likes, comments, shares (reposts), quotes and saves (Bluesky does not expose impressions, so engagement_rate is null).

## Bluesky capabilities and settings

AT Protocol gives developers rich primitives — threadgates, postgates, self-labels, external link cards and DID quotes — and PostSyncer exposes them as plain JSON.

- **Zero-math AT Protocol facets.** Bluesky requires exact UTF-8 byte ranges for every clickable URL, #hashtag and @handle DID. PostSyncer parses your text, resolves active handles and builds every facet record automatically.

- **Automatic website link cards.** Supply settings.website_card with a URI on a text-only first post; if you leave out title or description, PostSyncer reads the page’s metadata and preview image and uploads the blob for you.

- **Threadgates & quote controls.** Restrict who can reply across an entire thread via reply_rules (mentioned, followers, following or ["nobody"]), and disable quote posts across every item with allow_quotes: false.

- **Automatic photo compression & MP4 conversion.** Bluesky enforces strict blob limits on images and MP4 video uploads. PostSyncer compresses images over 1.5 MB, transcodes MOV and WebM into MP4, and sends standalone GIFs as video so animations play.

- **Quote posts by URL or at:// URI.** Pass any bsky.app post link (with handle or DID) or raw at:// URI in quote_post_url; PostSyncer verifies the target post exists before publishing so broken links fail cleanly.

- **Self-labels & multi-language tagging.** Tag up to 3 ISO 639-1 language codes across your thread for Bluesky’s language feeds, and apply sexual, nudity, porn or graphic-media warnings on media posts and link cards.

- `title` (string (cut at 300 chars)): Bluesky-specific copy for the first post, overriding content[0].text.

- `website_card` ({ uri, title?, description? }): Rich link card on a media-free first post; missing metadata and image are fetched from the page.

- `quote_post_url` (string (URL or at://)): bsky.app URL or at:// URI of a Bluesky post to quote alongside media or a website card.

- `languages` (string[] (max 3)): Up to 3 ISO 639-1 codes (for example en, pt-BR) applied across every post in the thread.

- `reply_rules` (string[]): Threadgate rules: any mix of mentioned, followers, following, or ["nobody"] to close replies.

- `allow_quotes` (boolean): Set false to attach a postgate preventing other users from quoting the thread or first comment.

- `content_labels` (string[]): Content warning on media/cards: sexual, nudity or porn, and/or graphic-media.

- `media` (number[]): Replace the first item’s media with Bluesky-specific media library IDs.

## Why teams wrap AT Protocol instead of hand-coding facets and blobs

Bluesky’s AT Protocol is open and well documented, yet shipping reliable cross-posting on top of it introduces subtle failure modes: facets are indexed by UTF-8 byte offsets rather than JavaScript UTF-16 code units (meaning a single emoji shifts every downstream link offset), website cards require scraping Open Graph tags and uploading a separate image blob before creating the record, and images above about 2 MB fail unless resized.

PostSyncer runs that entire pipeline reliably behind POST /api/v1/posts. Your application sends plain text, media URLs and high-level settings while PostSyncer handles DID resolution, byte-accurate facets, blob compression, MOV/WebM transcoding and automatic app-password session renewal.

## How reply_rules, allow_quotes and quote_post_url behave in production

Bluesky applies threadgates (reply_rules) and postgates (allow_quotes: false) via follow-up records right after creating the post. If the Bluesky PDS refuses a gate record, your post remains published and PostSyncer returns a setting_not_applied diagnostic naming the exact rule and reason so nothing fails silently.

By contrast, quote_post_url is checked twice. A link that is not a Bluesky post link or at:// address is refused with 422 when you save the post, and at publish PostSyncer finds the quoted post before any record is created: if it was deleted, the post fails with that reason instead of going out as a broken empty quote.

## Replies, self-labels and analytics on Bluesky

PostSyncer reads Bluesky replies an hour after publishing, every 6 hours on day one, and daily through day seven (plus on-demand POST /comments/sync). Replies sent through POST /comments can attach up to 4 photos or one video. Because Bluesky has no hide-reply feature, PATCH /comments/{id}/hide returns 422 telling you to delete the comment instead (Bluesky removes only replies your account wrote).

For metrics, Bluesky exposes likes, comments, shares (reposts), quotes and saves — because Bluesky does not publish impression counts, engagement_rate stays null rather than being fabricated.

## Write Bluesky threads and website cards from an AI agent via MCP

Connect ChatGPT, Claude, Claude Code or Cursor to PostSyncer’s MCP server so your agent splits long posts into 300-character Bluesky threads, attaches website cards and answers replies.

Related pages: [Bluesky MCP](https://postsyncer.com/bluesky-mcp), [Bluesky scheduler](https://postsyncer.com/bluesky-scheduler), [Unified social media API](https://postsyncer.com/unified-social-media-api).

## Limits and plans

| Plan | Social accounts | Posts | API posts a day, per network |
| --- | --- | --- | --- |
| Free | 2 | 20 a month | Within the 20 |
| Starter ($29 a month) | 10 | Unlimited | Unlimited |
| Pro ($49 a month) | 30 | Unlimited | Unlimited |
| Agency ($99 a month) | 100, then $1/mo each | Unlimited | Unlimited |

Every plan: 60 requests a minute for each PostSyncer user, across all their keys, the API and the MCP server together.

## FAQ

### How does a Bluesky account authenticate with PostSyncer?

Bluesky connects using the account handle and a Bluesky app password created in Bluesky settings. PostSyncer renews expired sessions automatically unless that app password is deleted.

### Do I have to build AT Protocol facets for links, mentions and hashtags?

No. PostSyncer automatically detects URLs, valid @handles and #hashtags in your text and generates byte-accurate AT Protocol facets before publishing.

### Can I attach a website link preview card on Bluesky?

Yes. Pass settings.website_card with a uri (plus optional title and description) on a media-free first post. PostSyncer fetches missing metadata and preview images automatically.

### Can I publish animated GIFs and videos to Bluesky?

Yes. A standalone GIF is uploaded as a video so it plays automatically, and MOV or WebM videos up to 100 MB are converted to MP4 before upload.

### How do Bluesky threads and first comments work?

Multiple items in content[] publish as chained replies on Bluesky, and an is_first_comment item posts at the end of the thread (immediately when first_comment_delay is 0).

### Why does Bluesky analytics omit impressions?

Bluesky does not expose impression counts through its API. PostSyncer returns likes, comments, reposts (shares), quotes and saves, leaving impressions and engagement_rate as null.

---

Page: https://postsyncer.com/bluesky-api · Updated 2026-11-27
