Accounts
List Accounts
Lists the workspace's connected accounts, newest first.
BearerAuthorizationBearer <op_>Workspace API key, sent as Authorization: Bearer op_... Keys are created in the dashboard.
limit?integerItems per page. Defaults to 50. Maximum 100.
1 <= value <= 10050cursor?stringThe nextCursor of the previous page. Omit it for the first page.
1 <= lengthq?stringSearches display name, handle and platform. Matching ignores case.
length <= 200profile?stringOnly accounts filed under the profile with this name. Letter case does not matter. Use none for accounts without a profile.
length <= 60platform?stringOnly accounts on this platform.
length <= 64since?stringOnly accounts connected at or after this time.
date-timeuntil?stringOnly accounts connected before this time.
date-timesort?stringOrder by connection time. Defaults to created_desc.
"created_desc""created_asc"include?stringComma-separated extras to add to the response: total.
Accounts
application/json- response
data*array<>nextCursor*|Cursor for the next page, or null on the last page.
hasMore*booleanTrue when another page follows this one.
total?integerItems matching the filters across every page. Present when include has total.
import { Configuration, AccountsApi } from "@onepostly/sdk";const accountsApi = new AccountsApi( new Configuration({ accessToken: process.env.ONEPOSTLY_API_KEY }));const response = await accountsApi.listAccounts();console.log(response);{ "data": [ { "id": "acc_1699f4157fb643f49d2ac447491f3203", "platform": "bluesky", "displayName": "Your Brand", "handle": "yourbrand.bsky.social", "avatarUrl": "https://cdn.onepostly.com/avatars/yourbrand.jpg", "status": "active", "canAutoRenew": true, "tokenExpiresAt": "2027-03-01T12:10:00.000Z", "profile": "Business", "metadata": { "userId": "user_8412" }, "createdAt": "2027-03-01T10:10:00.000Z", "updatedAt": "2027-03-01T10:10:00.000Z" }, { "id": "acc_1699f4157fb643f49d2ac447491f3202", "platform": "instagram", "displayName": "Your Brand", "handle": "yourbrand", "avatarUrl": "https://cdn.onepostly.com/avatars/yourbrand.jpg", "status": "active", "canAutoRenew": true, "tokenExpiresAt": "2027-05-14T10:00:00.000Z", "profile": "Default", "metadata": {}, "createdAt": "2027-03-01T10:05:00.000Z", "updatedAt": "2027-03-01T10:05:00.000Z" }, { "id": "acc_1699f4157fb643f49d2ac447491f32a8", "platform": "x", "displayName": "Your Brand", "handle": "yourbrand", "avatarUrl": "https://cdn.onepostly.com/avatars/yourbrand.jpg", "status": "active", "canAutoRenew": true, "tokenExpiresAt": "2027-05-14T10:00:00.000Z", "profile": "Business", "metadata": {}, "xSubscriptionType": "None", "createdAt": "2027-03-01T10:00:00.000Z", "updatedAt": "2027-03-01T10:00:00.000Z" } ], "nextCursor": null, "hasMore": false}