Skip to content

Connect Bluesky with an app password

Connect a Bluesky account safely, publish text, images, galleries, threads, and video, and read public post analytics.

Bluesky uses AT Protocol sessions rather than OAuth. PubNio connects with a handle and an app password, stores the issued session tokens encrypted, and refreshes them before they expire. Your main Bluesky password is never stored or sent to PubNio.

Create an app password

  1. Open Bluesky and go to Settings → Privacy and security → App passwords.
  2. Create a password for PubNio and copy it once.
  3. Keep two-factor authentication enabled. App passwords work alongside 2FA; the main password is only needed to create them.

Connect the account

Send an owner-authorized request with an app password:

POST /api/v1/integrations/bluesky/session?workspaceId={workspaceId}
Content-Type: application/json

{
  "handle": "you.bsky.social",
  "appPassword": "xxxx-xxxx-xxxx-xxxx"
}

The optional service field selects a self-hosted PDS. It must be a public HTTPS address; it defaults to https://bsky.social.

The response is a ConnectionLaunch. The session endpoint completes the connection immediately and returns a workspace URL. The generic POST /api/v1/integrations/{provider}/connect endpoint opens a browser form for Bluesky instead, so a person can enter the handle and app password without handing them to an agent. The same form is used by the Connect account menu in the PubNio app. POST /api/v1/integrations/bluesky/session also accepts handle, appPassword, and service for a one-call connection.

To reconnect an existing Bluesky account, send accountId in the session body. Reconnecting preserves the PubNio account ID; a different Bluesky DID is rejected with an account mismatch error.

Publishing

Bluesky targets use the feed placement. A post can contain:

  • Up to 300 characters of text, and a thread of up to 24 additional posts.
  • One video, up to 100 MB, processed by Bluesky’s hosted video service.
  • Up to four images, each up to 1 MB, in one gallery.
  • A firstComment that replies to the published root post.

Video upload is asynchronous. PubNio authorizes the upload with a short-lived service token, waits for the video job to finish, and only then creates the record, so a failed processing job never publishes a broken post. Thread entries are created in order with the previous record as the parent and the root record as the thread root.

Analytics and comments

Post analytics read the public AppView and map likes, replies, reposts plus quotes, and bookmarks onto PubNio’s normalized likes, comments, shares, and saves metrics. Bluesky does not expose account-level analytics, so PubNio declares account analytics unsupported instead of returning zeros.

Outbound replies accept an app.bsky.feed.post AT URI or a https://bsky.app/profile/{handle}/post/{rkey} permalink. PubNio resolves the parent CID and thread root before creating the reply record.

Type to search…

↑↓ navigate↵ selectEsc close