Bluesky publishing API
Bluesky is in beta on PubNio. One API call publishes posts, threads, and up to 4 images or one video, from the REST API, the TypeScript SDK, the CLI, or the hosted MCP server.
Rules by placement
| Placement | Media | Items per post | Caption limit |
|---|---|---|---|
feed | image, video | 1 video, or up to 4 images | 300 characters |
- A post needs text, and may add up to 4 images or one video.
threadadds up to 24 replies under the root post;altTextdescribes the images.
Connect a Bluesky account
- Connect with your Bluesky handle and an app password; a self-hosted PDS needs its public address.
| Scope PubNio requests | What Bluesky says it allows |
|---|
Account kind: account. Status: Beta.
Publish request
One image with alt text.
POST /api/v1/posts?workspaceId=4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b
Authorization: Bearer pn_live_***
Idempotency-Key: bluesky-garden-photos
Content-Type: application/json
{
"text": "First frost on the allotment.",
"publishNow": true,
"targets": [
{
"accountId": "7f3c2a10-5b4e-4d6f-8a9b-0c1d2e3f4a5b",
"provider": "bluesky",
"placement": "feed",
"settings": {
"altText": "Frosted kale leaves in low sun"
},
"media": [
{
"mediaId": "2d6e8f10-3a5b-4c7d-9e1f-a2b3c4d5e6f7"
}
]
}
]
}
The Idempotency-Key makes a retried request publish once. The response is 202 Accepted with a postId to read.
Limits
- Bluesky is in beta: accounts connect and publish, and behavior may still change.
- A media URL fails with
media_upload_required: import the file into the workspace from its URL, or send up to 8 MiB inline, then pass itsmediaIdto the post.

