Messages
List Inbox Messages
Lists the messages in one conversation, newest first. Supported on Bluesky, Instagram and Facebook.
GET
header
x-api-key<token>Workspace API key, sent in the x-api-key header. Keys start with op_ and are created in the dashboard.
convoId*stringLength
1 <= lengthaccountId*stringConnection id.
Length
1 <= lengthlimit?integerRange
1 <= value <= 100cursor?stringCursor from the previous response. Omit it to get the first page.
Length
1 <= lengthMessages
application/json- response
accountId*stringconvoId*stringmessages*array<>cursor*string|nullExample Request
import { Configuration, InboxApi } from "@onepostly/sdk";const inboxApi = new InboxApi( new Configuration({ apiKey: process.env.ONEPOSTLY_API_KEY }));const response = await inboxApi.listInboxMessages({ convoId: "3k7x...", accountId: "a1b2c3d4-e5f6-4a7b-8c9d-e0f1a2b3c4d5", limit: 50,});console.log(response);Example Response
{ "accountId": "a1b2c3d4-e5f6-4a7b-8c9d-e0f1a2b3c4d5", "convoId": "3k7x...", "messages": [ { "id": "3k7y...", "text": "Hey, loved your latest post!", "senderId": "did:plc:alice", "sentAt": "2026-09-08T12:00:00.000Z", "attachments": [ { "type": "image", "url": "https://cdn.example.com/photo.jpg" } ] } ], "cursor": "string"}Create Inbox Conversation
Starts a one-to-one conversation on Bluesky, Instagram or Facebook. Identify the recipient by their username, user id, handle or DID on that platform.
Send Inbox Message
Sends a message to a conversation on Bluesky, Instagram or Facebook. Instagram and Facebook also support attachments, quick replies, buttons and carousels.