Accounts

List Connections

Lists the workspace's connections, newest first. Results are paginated.

GET
/v1/connections

Authorization

headerx-api-key<token>

Workspace API key, sent in the x-api-key header. Keys start with op_ and are created in the dashboard.

Query Parameters

limit?integer

Connections per page. Defaults to 500. Maximum 500.

Range1 <= value <= 500
page?integer

Page to return, starting at 1. Defaults to 1.

Range1 <= value
q?string

Searches display name, handle and platform. Matching ignores case.

Lengthlength <= 200
profile?string

Returns only accounts filed under this profile name. An unknown name matches nothing.

Lengthlength <= 60
platform?string

Returns only accounts on this platform.

Lengthlength <= 64
addedWithinDays?integer

Returns only accounts connected within the last N days.

Range0 < value <= 3650
sort?string

Sort order. Defaults to newest.

Value in"newest""oldest"

Response Body

Connected accounts

application/json
  1. response
connections*array<>
total*integer

Number of connections that match the filters, across all pages.

page*integer

The page number of this response, starting at 1.

hasMore*boolean

True when more connections follow this page. Request the next page while it is true.

Example Request
import { Configuration, ConnectionsApi } from "@onepostly/sdk";const connectionsApi = new ConnectionsApi(  new Configuration({ apiKey: process.env.ONEPOSTLY_API_KEY }));const response = await connectionsApi.listConnections({  limit: 20,  page: 2,  profile: "Business",  platform: "instagram",  addedWithinDays: 90,  sort: "newest",});console.log(response);
Example Response
{  "connections": [    {      "id": "a1b2c3d4-e5f6-4a7b-8c9d-e0f1a2b3c4d5",      "platform": "instagram",      "displayName": "Onepostly",      "handle": "@onepostly",      "avatarUrl": "https://cdn.onepostly.com/avatars/onepostly.jpg",      "status": "active",      "tokenExpiresAt": "2026-10-25T10:00:00.000Z",      "canAutoRenew": true,      "authHealth": "healthy",      "profileName": "Business",      "xSubscriptionType": "Premium",      "createdAt": "2026-08-25T10:00:00.000Z",      "updatedAt": "2026-08-25T10:00:00.000Z"    }  ],  "total": 2000,  "page": 1,  "hasMore": true}