Platforms / Bluesky
Bluesky API
Post to Bluesky with images, video and link cards, manage replies, read mentions and chat.
At a glance
- Platform id
bluesky- Connects
- account
- Sign-in
- Credentials the user enters (no OAuth app needed)
- Post types
- Text · Reply · Link card · Images (up to 4) · Video
Capabilities
| Publishing | Yes |
|---|---|
| Scheduling | Yes |
| Comments | Yes |
| Direct messages | Yes |
| Mentions | Yes |
| Reviews | No |
| Analytics | Yes |
Required on every post
- Text or media.
Options
Send these in platform_data.bluesky on the post, or flat in a target's own platform_data (the target's keys win). See Publishing.
| Key | Type | What it does |
|---|---|---|
reply_to | at:// URI | Publish as a reply to this post. |
langs | string[] | Up to 3 BCP-47 language tags. |
link | URL | Link card (only when the post has no media). |
link_title, link_description | string | Card title (default: the URL) and description. |
link_thumb | URL | Image for the card thumbnail. |
Limits
- 300 characters per post.
- Up to 4 images of 2 MB each, or one MP4 video up to 300 MB and 10 minutes; never both.
- This server caps each account at 25 posts an hour and 50 a day.
Text over the limit fails validation before anything is sent. The caps of this server are explained in Rate limits.
Good to know
- Connect with metadata.handle and metadata.password (an app password). Tick 'Allow access to your direct messages' when creating it to use DMs; it cannot be added later, so create a new app password and connect again.
- Accounts with email two-factor sign-in: the first connect answers platform.bluesky.auth_factor_required and Bluesky emails a code. Connect again with the code in metadata.auth_factor_token.
- Video needs a verified email on the Bluesky account.
- Links, @mentions and #hashtags in the text become live links. No edit after publishing: delete and post again.
- Hiding works only on replies in threads you started; deleting only on your own replies. No likes and no private replies.
- Disconnecting removes the session here; delete the app password on Bluesky to cut off access completely.
Publish with the API
curl https://api.zaynstack.com/v1/posts \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{
"text": "Hello from SocialWire",
"media": [{ "type": "image", "source_type": "url", "source": "https://example.com/file.jpg" }],
"targets": [{ "account_id": "<Bluesky account id>" }],
"publish_now": true
}'An operation Bluesky cannot do answers 501 resource.not_supported. Agents can do the same through the MCP server.
Connection errors
A connection that fails comes back to your redirect_uri with status=error, error=<code> and error_description, or as the error of the connect call. All codes: Connect accounts.
| Code | Meaning |
|---|---|
platform.bluesky.auth_factor_required | Bluesky emailed a sign-in code, or did not accept the one sent. Connect again with the newest code in metadata.auth_factor_token. |
platform.bluesky.auth | Wrong handle or app password. |
platform.bluesky.account_takedown | Bluesky has taken the account down. |
account.already_linked | The brand already holds a different account on this platform, or the account belongs to another brand while lock_accounts_to_brand is on. |
billing.brands_limit | No brand_id was sent, so a new brand was needed, and the plan has no room for another brand. |
Webhook events
Every platform sends the post.* and account.* events. Bluesky also sends:
comment.receivedmention.receiveddm.received
Not supported yet
- Editing posts.
- Liking replies and private replies.
Developer setup (self-hosting)
Only the operator of this server does this, once. Users then just click Connect.
- Nothing to register. Each user creates an app password at bsky.app → Settings → App passwords and enters it with their handle (never the main password).
Permissions requested
App password (no OAuth scopes)
When a reconnect grants fewer permissions than before, an account.updated event with change permissions_reduced is sent. Accounts connected before a permission was added keep working but must reconnect to use the features it unlocks.
Before anyone can connect (review)
- None.
Typical wait: None. Until then the app works for your own accounts and the testers you add in the console.