> ## Documentation Index
> Fetch the complete documentation index at: https://docs.woopsocial.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List social accounts

> Returns social accounts that can currently be used for publishing.

When `projectId` is provided, only social accounts usable within that project are returned.




## OpenAPI

````yaml /openapi.yaml get /social-accounts
openapi: 3.1.0
info:
  title: WoopSocial API
  version: 1.0.0
  summary: API for WoopSocial integrations.
  description: >
    This is the public-facing OpenAPI contract for WoopSocial. It supports
    scheduling posts for various social media platforms such as Facebook,
    Instagram, LinkedIn, LinkedIn Pages, Pinterest, Threads, TikTok, X (formerly
    Twitter) and YouTube.
servers:
  - url: https://api.woopsocial.com/v1
    description: WoopSocial API URL.
  - url: http://localhost:9123/api/external/v1
    description: Local WoopSocial API URL.
security: []
tags:
  - name: Posts
    description: Post scheduling endpoints.
  - name: Projects
    description: Project discovery endpoints.
  - name: Social Accounts
    description: Connected social account discovery endpoints.
  - name: Media
    description: Media upload endpoints.
  - name: Webhooks
    description: Webhook endpoint management.
  - name: Health
    description: Basic connectivity endpoints.
paths:
  /social-accounts:
    get:
      tags:
        - Social Accounts
      summary: List social accounts
      description: >
        Returns social accounts that can currently be used for publishing.


        When `projectId` is provided, only social accounts usable within that
        project are returned.
      operationId: listSocialAccounts
      parameters:
        - $ref: '#/components/parameters/ProjectIdFilter'
      responses:
        '200':
          description: Social accounts.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SocialAccount'
      security:
        - ApiKey: []
components:
  parameters:
    ProjectIdFilter:
      name: projectId
      in: query
      required: false
      schema:
        type: string
      description: Filter to resources that belong to a specific project.
  schemas:
    SocialAccount:
      type: object
      additionalProperties: false
      required:
        - id
        - externalAccountId
        - platform
        - username
        - imageUrl
        - status
      properties:
        id:
          type: string
          description: Social account identifier.
        externalAccountId:
          type: string
          description: Platform-specific account, page, profile, or channel identifier.
        platform:
          $ref: '#/components/schemas/SocialPlatform'
          description: Social platform for the connected account.
        username:
          type: string
          description: Display name or username for the connected account.
        imageUrl:
          type: string
          format: uri
          description: Profile image URL for the connected account.
        status:
          $ref: '#/components/schemas/SocialAccountStatus'
          description: Connection status of the account.
    SocialPlatform:
      type: string
      enum:
        - PINTEREST
        - LINKEDIN
        - LINKEDIN_PAGES
        - INSTAGRAM
        - FACEBOOK
        - THREADS
        - TIKTOK
        - X
        - YOUTUBE
        - WOOPTEST
      description: |
        Identifies which social media platform this data structure targets.
    SocialAccountStatus:
      type: string
      enum:
        - CONNECTED
        - DISCONNECTED
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      bearerFormat: API key

````