Bluesky

Create posts, view profiles, and search content on Bluesky.

Social mediaCredentials form5 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (5)
  4. createPost
  5. findPost
  6. findThread
  7. likePost
  8. repostPost
  9. Details

Connect

Auth type: Credentials form (custom_auth). Pass the fields the provider needs (listed below) as the connection's credentials. They are sealed at rest.

FieldTypeDescription
handlerequiredtextYour Bluesky handle (e.g. user.bsky.social)
appPasswordrequiredsecretGenerate an App Password in Bluesky Settings > App Passwords
  • From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
  • Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
  • Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.

Call it from a workflow

step.ctx.integrations.invoke("bluesky", action, input) resolves with the provider's answer and rejects when Bluesky isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "bluesky"} says whether yours can call it.

Workflow
// workflows/notify.ts: call Bluesky when a booking is confirmed
import { on } from "@appbricx/workflows";

export const tellBluesky = on.transition("booking", "status", "confirmed", async (_event, step) => {
  // Recorded once: a retry doesn't send it twice. Rejects when Bluesky isn't connected.
  const output = await step.run("Bluesky", () =>
    step.ctx.integrations.invoke("bluesky", "createPost", {
      "text": "<post text>"
    }),
  );
  step.ctx.log("Bluesky answered", output);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "bluesky",
    "piece_action": "createPost",
    "input": {
      "text": "<post text>"
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/bluesky/createPost" \
  -H "Authorization: Bearer $APP_KEY" \
  -H "content-type: application/json" \
  -d '{"props":{"text":"<post text>"}}'

Actions

createPost

Create Post. Create a new post on Bluesky

Also accepted as create_post.

InputTypeDescription
postTypeoptionalone of "text" | "photo" | "link" | "reply" | "quote"Type of content you're sharing
textrequiredlong textWhat do you want to post? (Max 300 characters)
languageoptionalone of "en" | "es" | "fr" | "de" | "it" | "pt" | "ja" | "ko" | "zh" | "ru" | "ar" | "hi"Language of your post
imageUrlsoptionalarrayAdd up to 4 images by URL
imageDescriptionsoptionalarrayDescribe each image for accessibility
videoUrloptionaltextLink to video file (MP4, max 100MB)
videoAltTextoptionallong textDescribe the video for accessibility
videoCaptionsoptionalarrayCaption file URLs (optional)
linkUrloptionaltextURL to share with your post
replyToPostoptionaltextURL of post to reply to
threadContentoptionalarrayCreate additional connected posts
additionalHashtagsoptionaltextAdd hashtags (e.g., tech,bluesky)
contentWarningsoptionallist ofAdd warnings for sensitive content
audienceoptionalone of "public" | "followers" | "unlisted"Who can see this post

findPost

Find Post. Get detailed information about a specific post

InputTypeDescription
postUrlrequiredtextPaste the Bluesky post URL (e.g., https://bsky.app/profile/username.bsky.social/post/xxx)

findThread

Find Thread. Get a full conversation thread with replies

InputTypeDescription
postUrlrequiredtextPaste the Bluesky post URL (e.g., https://bsky.app/profile/username.bsky.social/post/xxx)
depthoptionalone of "1" | "2" | "3" | "5" | "10" | "20" | "50" | "100"How many levels deep to retrieve replies
parentHeightoptionalone of "0" | "1" | "2" | "3" | "5" | "10" | "20" | "80"How many parent posts to retrieve

likePost

Like Post. Like a post on Bluesky

InputTypeDescription
selectionMethodrequiredone of "timeline" | "manual"How to choose the post
postSelectionoptionalid (picked from your account)Choose from your recent timeline posts (only when "From my timeline" is selected above)
postUrloptionaltextPaste the Bluesky post URL

repostPost

Repost Post. Share someone else's post to your timeline

InputTypeDescription
selectionMethodrequiredone of "timeline" | "manual"How to choose the post
postSelectionoptionalid (picked from your account)Choose from your recent timeline posts (only when "From my timeline" is selected above)
postUrloptionaltextPaste the Bluesky post URL

Details

Id
bluesky
Category
Social media
Tags
social, microblogging, decentralized, at-protocol
Package
@activepieces/piece-bluesky@0.1.3
Runs
Through the integration runner