Connect Bluesky account
Connect a Bluesky account using identifier (handle or email) and an app password. To get your userId for the state parameter, call GET /v1/users which includes a currentUserId field.
API key authentication - use your Zernio API key as a Bearer token
In: header
Your Bluesky handle (e.g. user.bsky.social) or email address
App password generated from Bluesky Settings > App Passwords
Required state formatted as {userId}-{profileId}. Get userId from GET /v1/users and profileId from GET /v1/profiles.
Optional URL to redirect to after successful connection
uriResponse Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.connect.bluesky.connectBlueskyCredentials({ body: { identifier: 'string', appPassword: 'string', state: '6507a1b2c3d4e5f6a7b8c9d0-6507a1b2c3d4e5f6a7b8c9d1', },});console.log(data);{
"message": "Bluesky connected successfully",
"account": {
"platform": "bluesky",
"username": "yourhandle.bsky.social",
"displayName": "Your Name",
"isActive": true
},
"redirectUrl": "https://zernio.com/dashboard/profiles/64f0.../accounts"
}{
"error": "Unauthorized"
}Set default subreddit PUT
Sets the default subreddit used when publishing posts for this Reddit account.
Generate Telegram code GET
Generate an access code (valid 15 minutes) for connecting a Telegram channel or group. Add the bot as admin, then send the code + @yourchannel to the bot. Poll PATCH /v1/connect/telegram to check status.