{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/post-bridge-com/json-schema/post-bridge-com-social-account-dto-schema.json",
  "title": "SocialAccountDto",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/post-bridge-com-openapi.yml#/components/schemas/SocialAccountDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "number",
      "description": "The unique identifier of the social account"
    },
    "platform": {
      "type": "string",
      "description": "The platform of the social account"
    },
    "username": {
      "type": "string",
      "description": "The platform's username of the social account"
    },
    "profile_picture_url": {
      "type": [
        "object",
        "null"
      ],
      "description": "The account's profile picture URL, or null when the platform didn't provide one. Updated when the account is reconnected or refreshed."
    },
    "needs_reconnect": {
      "type": "boolean",
      "description": "True when repeated dead-token failures have paused posting to this account (Meta platforms). Posts to it are skipped until the account is reconnected in the dashboard; any reconnect clears it automatically. Pause your automation for accounts in this state instead of retrying."
    },
    "external_ref": {
      "type": [
        "object",
        "null"
      ],
      "description": "Your reference from the connect link that connected this account (POST /social-accounts/connect-link), or null for accounts connected in the dashboard."
    },
    "connected_via_link_at": {
      "type": [
        "object",
        "null"
      ],
      "description": "When this account was last connected or reconnected through a connect link (ISO 8601), or null if it never was."
    },
    "workspace_id": {
      "type": [
        "object",
        "null"
      ],
      "description": "The dashboard workspace this account sits in, or null for the default Main workspace. Pass it as ?workspace_id= to list only that workspace's accounts."
    },
    "workspace_name": {
      "type": [
        "object",
        "null"
      ],
      "description": "Name of that workspace (\"Main\" for the default one)."
    },
    "has_x_premium": {
      "type": [
        "object",
        "null"
      ],
      "description": "X (Twitter) accounts only: true when the account is on X Premium, which allows posts up to 25,000 characters instead of 280. Refreshed when the user reconnects or clicks Refresh on X. null for every other platform."
    },
    "supports_instagram_music": {
      "type": [
        "object",
        "null"
      ],
      "description": "Instagram accounts only: true when the account is connected through Facebook login, which is the only connection Meta lets attach Instagram music (platform_configurations.instagram.audio_id, tracks from GET /v1/social-accounts/{id}/instagram-audio). false for accounts connected with Instagram login. null for every other platform."
    }
  },
  "required": [
    "id",
    "platform",
    "username",
    "profile_picture_url",
    "needs_reconnect",
    "external_ref",
    "connected_via_link_at",
    "workspace_id",
    "workspace_name",
    "has_x_premium",
    "supports_instagram_music"
  ]
}