Guide

Bluesky API: How to Post, Rate Limits and Auth (2026)

The Bluesky API has no fee and no app review. A post is one createRecord call, but links need facets and images need blobs. Auth, limits and what breaks.

·
2026-11-27
·
11 min read

Bluesky API: How to Post, Rate Limits and Auth (2026)

Posting through the Bluesky API is one call: com.atproto.repo.createRecord, writing a record to the app.bsky.feed.post collection. Bluesky's developer docs describe no app review and no developer approval for it, and list no fee.

The work sits around that call. A URL in your text stays plain text until you mark it with a facet. Images go up as blobs first. Video goes through a separate processing service. And there are two ways to sign in: app passwords and OAuth.

This page covers auth, the post record, images, link cards, video, the rate limits, and what broke when we built Bluesky posting for Socialync. Bluesky's facts come from its developer docs and the lexicon files in its official atproto repository, checked on 27 November 2026. Bluesky moved its docs from docs.bsky.app to bsky.network, and the old links redirect. Every page we used is listed in the sources at the end.

What the Bluesky API costs

Nothing, as far as the documentation says. The docs list no price and no paid tier. Your ceiling is the rate limits, covered below.

What you pay in is work: auth, rich text facets, blob uploads, a video job you poll, and image shapes. None of it needs anyone's approval.

How to sign in to the Bluesky API

App passwords and createSession

The quickest route is a session. POST com.atproto.server.createSession with an identifier (the handle) and a password returns a session with two tokens. Bluesky's API page describes them:

  • accessJwt authenticates requests and "expires after a few minutes."
  • refreshJwt "lasts longer and is used only to update the session with a new access token."

Use an app password here, never the account's main password. The user makes one in Bluesky's settings under App passwords, and can revoke it at any time without touching their main login.

Logins have their own tight limit: 30 sessions per 5 minutes and 300 per day for each account. Bluesky's bot guide says to log in once and reuse the session. Save the session and refresh it. Do not log in once per post.

OAuth

Bluesky's API page is direct about apps that sign users in: "Use OAuth for authentication instead of password auth (bots and command-line tools can stick with passwords)."

The atproto auth spec says OAuth "is the primary mechanism in atproto for clients to make authorized requests to PDS instances," and that "most user-facing software is expected to use OAuth." It is a strict profile of OAuth:

  • The client_id is a URL where your client metadata JSON lives. There is no client secret.
  • PKCE is mandatory, and every client must use PAR for authorization requests.
  • DPoP is mandatory for token requests and for authorized requests.
  • Access tokens last less than 30 minutes in all cases.

The spec also defines transitional scopes that mirror the old app password permission levels, and says "the goal is to deprecate and eventually remove these transitional scopes."

Socialync connects Bluesky with an app password today. If you are building something new for other people's accounts, start with OAuth.

How a Bluesky post is created

A post is a record in the user's repository. Send it to the account's PDS, the server that hosts it:

  • repo: the account's DID.
  • collection: app.bsky.feed.post.
  • record: an object with $type, text and createdAt.

The posts guide says every post requires text and createdAt. The response gives you the record's uri, which looks like at://did:plc:.../app.bsky.feed.post/<rkey>, and its cid.

Text limit

The app.bsky.feed.post lexicon caps text at 300 graphemes and 3,000 bytes. A grapheme is what a reader sees as one character, so an emoji made of several code points counts once against the 300. The text can be an empty string when the post has an embed.

Links, mentions and hashtags need facets

Bluesky has no markup. The rich text page says "Bluesky does not use a markup language." A link, mention or hashtag only works when you add a facet that points at it.

A facet is a byte range in the UTF-8 text plus a feature:

  • app.bsky.richtext.facet#link with a uri.
  • app.bsky.richtext.facet#mention with a did. It notifies the person.
  • app.bsky.richtext.facet#tag with a tag.

The ranges are byte offsets, which differ from JavaScript string indexes as soon as the text holds an emoji or any character outside ASCII. Measure with a UTF-8 encoder.

Images

Upload each image with com.atproto.repo.uploadBlob. You get a blob reference back, and you embed that in the post with app.bsky.embed.images. A post holds up to 4 images, each with its own alt text and aspect ratio.

The size limit depends on which page you read. The app.bsky.embed.images lexicon allows 2,000,000 bytes per image and notes it was "formerly limited to 1 MB." The prose of the posts guide still says 1,000,000 bytes. Socialync keeps Bluesky images under 1 MB and recompresses anything larger, which satisfies both.

Send aspectRatio with every image. The lexicon marks it optional, and without it the app does not know the image's shape before it loads.

Link cards

A link card is an app.bsky.embed.external embed. Bluesky does not build it for you. The posts guide says "each client fetches and embeds this card metadata, including blob upload if needed." Your code fetches the page, reads its title, description and image, uploads the image as a blob, and builds the card.

Video

The app.bsky.embed.video lexicon accepts an MP4 of up to 300 MB, "formerly limited to 100mb." The video guide recommends four steps:

Post to all your platforms in one click

Socialync lets you cross-post to TikTok, Instagram, YouTube, X, Facebook, LinkedIn, Threads, Bluesky, and Pinterest, with AI-powered captions for each platform. Free to start.

  1. Create a service token with your PDS as its audience, a scope that allows uploadBlob, and an expiry of about 30 minutes.
  2. Upload the file to https://video.bsky.app with app.bsky.video.uploadVideo.
  3. Poll app.bsky.video.getJobStatus until it returns the blob reference of the processed video.
  4. Embed that blob in the post with app.bsky.embed.video, plus an aspect ratio.

Accounts hosted by Bluesky must verify their email before they can upload video, and there is a daily limit on video posts. The guide gives no number for it. If the same video was processed before, getJobStatus answers already_exists and still returns the earlier blob, so check for a blob whether the job reports success or failure.

Bluesky API rate limits

From Bluesky's rate limits page, for accounts hosted by Bluesky:

Limit Value
Record writes per account 5,000 points an hour and 35,000 a day
Cost per write Create 3 points, update 2, delete 1
Most records created 1,666 an hour and 11,666 a day
createSession per account 30 per 5 minutes and 300 a day
All API requests per IP 3,000 per 5 minutes
One blob on the PDS 52,428,800 bytes (50 MB)

Requests over a limit usually get a 429. Bluesky says the limits "are likely to evolve over time," and accounts on other PDS hosts can have different limits. For a scheduler, the write limit is far away. The login limit is the one you hit first.

What breaks when you post to Bluesky

Auth errors that arrive as 400s

Bluesky often returns an expired or invalid session as HTTP 400, with an error name in the body: ExpiredToken, InvalidToken or AuthenticationRequired. Code that checks for 401 alone misses all three. Read the body.

Links shown as plain text

A user told us the links in their posts did not open. Each URL sat in the text with no facet, so Bluesky showed it as plain text. We now build link and hashtag facets for every post, measuring each range in UTF-8 bytes.

Images in a square frame

A support report on 1 October 2026 showed every image we posted sitting in a square frame with bars at the sides. Posts the user made in the Bluesky app carried aspectRatio and ours did not. We now send it whenever we can read the image's size.

Video that posts as text

Our first video posts went out with the MP4 uploaded through plain uploadBlob. createRecord succeeded, and the post showed up with text only, because the app had nothing it could play. Video has to go through video.bsky.app and use the processed blob it returns.

A service token aimed at the wrong place

The video service wants a token whose audience is the user's own PDS, scoped to com.atproto.repo.uploadBlob. We first minted it for the video service itself with a video scope. Every PDS refused it with a 401, and for weeks those refusals read like dead user sessions. Resolve the user's PDS host from their DID document and aim the token there.

Files over the limit

A video over the cap fails with 413 PayloadTooLarge. Check sizes before you upload so the user gets a clear message instead of a network error.

Build against Bluesky directly, or not

Bluesky is the easiest of the big platforms to start on. A script with an app password can post within the hour, and nobody has to approve it.

A product for other people adds OAuth with PAR, PKCE and DPoP, session storage that respects the login limit, facet building in UTF-8 bytes, blob uploads, image recompression, link cards, the video job, and auth errors that arrive as 400s.

If Bluesky is one platform of several, the work repeats elsewhere. We wrote the same kind of guide for Threads, Facebook Pages, Pinterest, X and LinkedIn. For posting through an assistant, see run your social media with an AI agent.

Posting to Bluesky through Socialync

Socialync connects Bluesky with your handle and an app password, and never asks for your main password. It posts text, up to 4 images, video and link cards, and turns links and hashtags into facets so they click. Bluesky is on the free plan, which gives you 3 posts a month with no card. Paid plans start at $20 a month for 5 connected accounts.

You can also drive it from an AI assistant. Socialync runs an MCP server at https://mcp.socialync.io/mcp, included on every plan. Text and image posts to Bluesky publish immediately from an assistant, and video goes through scheduled posts. Every post needs your approval in chat before it goes out. See the MCP server page and the recipes.

You can also call Socialync from code. The Socialync API publishes, schedules and drafts posts with one API key, and it is included on every plan. Add bluesky to the platforms list of a post. The same API ships as the socialync package on npm, with a command line tool that posts in one line. A draft holds a post until a person approves it.

Start free at socialync.io.

Bluesky API FAQ

Is the Bluesky API free?

Bluesky's documentation lists no fee. The limits are rate limits: 5,000 write points an hour per account, with a post costing 3.

Do I need approval to use the Bluesky API?

Bluesky's docs describe no app review or developer approval for posting. You sign in as the account, with an app password or OAuth, and call createRecord.

What is the Bluesky API character limit?

300 graphemes and 3,000 bytes, per the app.bsky.feed.post lexicon.

Should I use an app password or OAuth for the Bluesky API?

Bluesky says to use OAuth for apps where users sign in, and that bots and command line tools can stick with passwords. If you use passwords, use an app password and never the main one.

Why are the links in my Bluesky posts not clickable?

Bluesky has no markup, so a URL in the text only becomes a link when the post includes a link facet with the URL's byte range.

Can an AI assistant post to Bluesky?

Yes. Socialync's MCP server posts text and images to Bluesky from Claude, ChatGPT and other MCP clients, and schedules video. You approve every post in chat before it goes out.

Sources checked on 27 November 2026

Related Topics

bluesky api
bluesky api posting
bluesky api rate limit
at protocol api
bluesky app password
bluesky oauth

Subscribe to Newsletter

Weekly tips on growing your social media, delivered straight to your inbox.

No spam. Unsubscribe anytime.

Ready to Put This Into Action?

Stop juggling platforms. Socialync posts to 9 platforms at once, and the free plan covers 3 posts a month with no credit card. Unlimited posting, AI captions, and analytics start at $20 a month, with an optional 7-day trial at checkout.