List connected social accounts

Retrieve all social accounts connected to your organization.

Retrieve all social accounts connected to your organization. This endpoint returns all social media profiles that have been connected and authorized through OAuth flows.

Use Cases:

  • View all connected social media accounts for your organization
  • Check which platforms have accounts connected
  • Verify account status and metadata
  • Get account information for use in post creation endpoints
  • Filter accounts by tenant ID, network, username, or unique platform ID

Filtering:

  • id - Filter by encoded social account ID (exact match)
  • tenantId - Filter by tenant ID for multi-tenant applications (exact match)
  • network - Filter by social network platform, e.g. x, linkedin, instagram (exact match)
  • networkUniqueId - Filter by the account's unique ID on the platform (exact match)
  • username - Filter by username or handle (case-insensitive partial match)
  • All filters can be combined for precise queries

Pagination:

  • Use limit and offset query parameters to paginate results
  • Default limit is 50, maximum is 100
  • total is the number of accounts matching your filters across all pages; count is the number returned in this page
  • Results are always ordered by connection order (oldest connected first), so paging through every offset returns each account exactly once. Accounts connected while you are paginating are appended after the last page rather than shifting the pages you already fetched

Tokens: By default, OAuth tokens are never exposed. Pass includeTokens=true to include the account's access_token nested under a tokens object in each result. Only access_token is returned - refresh tokens and other sensitive fields remain hidden.

Permissions: Requires accounts:read. Access is limited by the API key creator's current organization membership and stored key ceiling. See Organization permissions. includeTokens=true additionally requires sensitive accounts:read_tokens; normal responses omit provider credentials.

GET
/v1/social-accounts

Query Parameters

id?string

Filter by social account ID (exact match, encoded ID as returned by the API)

tenantId?string

Filter by tenant ID (exact match)

network?string

Filter by social network platform (exact match, e.g. 'x', 'linkedin', 'instagram', 'threads', 'bluesky', 'facebook', 'tiktok', 'tiktok-business', 'youtube', 'pinterest', 'vimeo', 'reddit')

networkUniqueId?string

Filter by the account's unique identifier on the social network platform (exact match)

username?string

Filter by username or handle (case-insensitive partial match)

limit?number

Maximum number of results to return (1-100)

Range1 <= value <= 100
Default50
offset?number

Number of results to skip for pagination

Range0 <= value
Default0
includeTokens?string

When true, include the account's access_token (from network_data) under a tokens object in each result. Defaults to false; tokens are never returned otherwise.

Value in"true""false"

Response Body

List of social accounts retrieved successfully

application/json
  1. response

Successful list operation response

success*boolean
data*array<>
count*number

Number of social accounts returned in this page

total*number

Total number of social accounts matching the filters, across all pages

limit*number

Maximum number of results per page

offset*number

Number of results to skip

Example Request
curl -X GET 'https://api.outstand.so/v1/social-accounts'
Example Response
{  "success": true,  "data": [    {      "id": "string",      "orgId": "string",      "tenant_id": "string",      "nickname": "string",      "network": "string",      "username": "string",      "profile_picture_url": "string",      "network_unique_id": "string",      "network_webhook_reference_id": "string",      "customer_social_network_id": 0,      "accountType": "string",      "isActive": 0,      "createdAt": "2019-08-24T14:15:22Z",      "tokens": {        "access_token": "string"      }    }  ],  "count": 0,  "total": 0,  "limit": 0,  "offset": 0}