Connect

Connect Bluesky via App Password

Connects a Bluesky account with its handle and an App Password. Create the App Password in Bluesky under Settings, App Passwords.

POST
/v1/connections/bluesky/connect

Authorization

headerx-api-key<token>

Workspace API key, sent in the x-api-key header. Keys start with op_ and are created in the dashboard.

Request Body

application/json
  1. body
identifier*string

Bluesky handle, email or DID, such as alice.bsky.social.

Length1 <= length <= 253
appPassword*string

A Bluesky App Password, in the form xxxx-xxxx-xxxx-xxxx.

Length1 <= length <= 200
reconnectId?string

Id of an existing connection to re-authorize. Reconnecting does not use a plan slot.

Length1 <= length
profileName?string

Profile to file the new connection under. It is created if it does not exist. When omitted, the workspace default profile is used. Ignored on reconnect.

Length1 <= length <= 60

Response Body

Connected Bluesky account

application/json
  1. response
connection*
Example Request
import { Configuration, ConnectionsApi } from "@onepostly/sdk";const connectionsApi = new ConnectionsApi(  new Configuration({ apiKey: process.env.ONEPOSTLY_API_KEY }));const response = await connectionsApi.connectBluesky({  body: {    "identifier": "alice.bsky.social",    "appPassword": "abcd-efgh-ijkl-mnop",    "profileName": "Business"  },});console.log(response);
Example Response
{  "connection": {    "id": "a1b2c3d4-e5f6-4a7b-8c9d-e0f1a2b3c4d5",    "platform": "instagram",    "displayName": "Onepostly",    "handle": "@onepostly",    "avatarUrl": "https://cdn.onepostly.com/avatars/onepostly.jpg",    "status": "active",    "tokenExpiresAt": "2026-10-25T10:00:00.000Z",    "canAutoRenew": true,    "authHealth": "healthy",    "profileName": "Business",    "xSubscriptionType": "Premium",    "createdAt": "2026-08-25T10:00:00.000Z",    "updatedAt": "2026-08-25T10:00:00.000Z"  }}