Skip to main content
Social Accounts

List

Retrieve a paginated list of social accounts connected to your project, with filtering and search.

Endpoint

GET https://api.postpeer.dev/v1/connect/integrations

Query Parameters

ParameterTypeDefaultDescription
platformstringFilter by platform (e.g. twitter, instagram, youtube, tiktok, pinterest, linkedin, bluesky, facebook, threads)
profileIdstringFilter to integrations bound to this profile. Pass null (literal string) to filter to integrations with no profile.
qstringCase-insensitive search across displayName and platformUserId
limitinteger20Page size (1–100)
offsetinteger0Number of integrations to skip
sortstring"desc"Sort by createdAt: "asc" or "desc"

Example

curl "https://api.postpeer.dev/v1/connect/integrations?platform=twitter&limit=10" \
  -H "x-access-key: YOUR_API_KEY"

Response

{
  "success": true,
  "total": 42,
  "integrations": [
    {
      "id": "abc123",
      "platform": "twitter",
      "platformUserId": "123456789",
      "displayName": "@yourhandle",
      "imageUrl": "https://pbs.twimg.com/profile_images/.../photo.jpg",
      "profileId": null,
      "createdAt": "2026-03-28T10:00:00.000Z"
    },
    {
      "id": "def456",
      "platform": "youtube",
      "platformUserId": "UCxxxxxxxx",
      "displayName": "My Channel",
      "imageUrl": "https://yt3.ggpht.com/.../photo.jpg",
      "profileId": "profile_acme",
      "createdAt": "2026-03-28T10:05:00.000Z"
    }
  ]
}

total is the total number of integrations matching the filter (across all pages). Walk the result set by incrementing offset by limit until you've fetched total items.

Response Fields

FieldTypeDescription
idstringIntegration ID — use this as accountId when creating posts
platformstringPlatform name
platformUserIdstring | nullThe user/account ID on the platform
displayNamestring | nullDisplay name or handle
imageUrlstring | nullProfile image URL
profileIdstring | nullProfile this integration belongs to, if any
createdAtstringISO 8601 connection timestamp

Status Codes

CodeMeaning
200Success
400Invalid query parameters

On this page