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

# List accounts

> The workspace's connected social accounts: where posts can go. Use an account's id as socialAccountId. One with status "needs_reauth" has to be reconnected in the app first. Needs accounts:read.



## OpenAPI

````yaml GET /v1/accounts
openapi: 3.1.1
info:
  title: Postinger API
  description: >-
    Schedule and publish posts, upload media and read analytics for one
    workspace. Authenticate with an API key from API Keys in the app:
    Authorization: Bearer pst_live_…
  version: v1
servers:
  - url: https://api.postinger.dev
    description: Production
security:
  - apiKey: []
tags:
  - name: Accounts
  - name: Analytics
  - name: Workspace
  - name: Media
  - name: Posts
paths:
  /v1/accounts:
    get:
      tags:
        - Accounts
      summary: List accounts
      description: >-
        The workspace's connected social accounts: where posts can go. Use an
        account's id as socialAccountId. One with status "needs_reauth" has to
        be reconnected in the app first. Needs accounts:read.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SocialAccountResponse'
              example:
                - id: 0192f0c1-5a4e-7b3d-9c2f-1e8a6d4b7f20
                  platform: instagram
                  externalId: '17841400000000000'
                  handle: acme
                  displayName: Acme
                  avatarUrl: null
                  status: active
                  tokenExpiresAt: null
                  connectedAt: '2026-09-14T08:30:00+00:00'
components:
  schemas:
    SocialAccountResponse:
      required:
        - id
        - platform
        - externalId
        - handle
        - displayName
        - avatarUrl
        - status
        - tokenExpiresAt
        - connectedAt
      type: object
      properties:
        id:
          type: string
          format: uuid
        platform:
          enum:
            - instagram
            - facebook
            - youtube
            - tiktok
          type: string
        externalId:
          type: string
        handle:
          type:
            - 'null'
            - string
        displayName:
          type:
            - 'null'
            - string
        avatarUrl:
          type:
            - 'null'
            - string
        status:
          enum:
            - active
            - needs_reauth
            - disconnected
          type: string
        tokenExpiresAt:
          type:
            - 'null'
            - string
          format: date-time
        connectedAt:
          type: string
          format: date-time
  securitySchemes:
    apiKey:
      type: http
      description: A workspace API key (pst_live_…).
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.