OverviewProductsPlatformsAPI ReferenceResources

Connect Bluesky account

POSThttps://zernio.com/api/v1/connect/bluesky/credentials

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.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Body

application/json

What every request needs

identifierstringRequired

Your Bluesky handle (e.g. user.bsky.social) or email address

appPasswordstringRequired

App password generated from Bluesky Settings > App Passwords

statestringRequired

Required state formatted as {userId}-{profileId}. Get userId from GET /v1/users and profileId from GET /v1/profiles.

Optional parameters2 fields
redirect_urlstring (uri)

Optional URL to redirect to after successful connection. Used when the state carries no redirect (a state minted by GET /v1/connect/bluesky with redirect_url already carries one, and that one wins).

redirectUriDeprecatedstring (uri)

Alias of redirect_url, kept for existing callers

Responses

Success· the request worked

Errors· the request failed

POST/v1/connect/bluesky/credentials
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"}
OpenAPI specification
Was this page helpful?