Bluesky API: post text and images with APIWings
Status: live. Available to private beta teams today.
Accounts
Any Bluesky account, connected with its handle (or email) and an app password. The user creates the app password in Bluesky under Settings → Privacy and security → App passwords; their main password is never used.
Connecting
- Hosted page:
POST /v1/profiles/{id}/connect/blueskyreturns aconnect_urlwith a form for the handle and the app password. - Directly: send
{"bluesky": {"identifier": "yourname.bsky.social", "app_password": "…"}}in the same request; the response has theaccount_id.
APIWings keeps the Bluesky session and renews it by itself, so the account stays connected until the user deletes or revokes the app password. Then publishing fails with auth_expired and you get account.disconnected.
Supported content
| Rule | |
|---|---|
| Text | Up to 300 graphemes (what a person sees as one character; an emoji counts as one). Links and @mentions become rich text; a mention that cannot be resolved stays plain text. |
| Text or media | A post needs text, images or both. |
| Images | Up to 4. JPEG, PNG, WebP or GIF as uploaded to APIWings. |
| Image size | Bluesky allows about 1 MB per image. APIWings re-encodes every image to JPEG, at most 2000 px on the longest side, lowering the quality until it fits under 1 MB. This also removes EXIF and location metadata. An animated GIF becomes a still image. |
| Video | Not supported yet (validation_failed). |
Options
platforms[].options for "platform": "bluesky":
| Option | Type | Meaning |
|---|---|---|
alt |
string or array of strings | Alt text for screen readers. A string applies to every image; an array gives one text per image, in order. |
{ "platform": "bluesky", "options": { "alt": ["A red jacket", "The same jacket, back view"] } }
Result and visibility
visibility: alwayspublic(Bluesky posts are public).remote_id: the post'sat://URI.url:https://bsky.app/profile/<did>/post/<id>.
Limits
Bluesky allows about 1,666 record creations per hour per account. APIWings does not add a lower limit. GET /v1/accounts/{id}/limits returns this as a note (Bluesky has no live counter).
Errors
| When | Code |
|---|---|
Text over 300 graphemes, more than 4 images, a video, or an alt that is not a string or a list of strings |
validation_failed (when creating the post) |
| The app password was revoked or is wrong | auth_expired, then account.disconnected |
| An image is corrupt, cannot be read, or cannot be reduced under 1 MB | media_invalid |
| Bluesky's rate limit | rate_limited (retried) |
| Bluesky unavailable | platform_down (retried) |
