يُحمّل البحث عند استخدامه فقط. تصفّح جميع الفئات أدناه.

الحسابات ومساحات العمل

عرض الحسابات المتصلة

عرض حسابات Instagram و Threads و Facebook و YouTube المتصلة بمساحة عمل، مع صحة الاتصال وحقائق الإمكانات. استخدم معرّفاتها كـ social_account_id للجدولة أوالتعليق. مرّر workspace_id: يُرفض غيابه عند فرض الاستهداف الصريح.

POST /identity-api/user/social-accounts/list

مراجعة العقد: · sha256:563d2d581da0ad29

نظرة عامة

عرض حسابات Instagram و Threads و Facebook و YouTube المتصلة بمساحة عمل، مع صحة الاتصال وحقائق الإمكانات. استخدم معرّفاتها كـ social_account_id للجدولة أوالتعليق. مرّر workspace_id: يُرفض غيابه عند فرض الاستهداف الصريح.

قد يعني نجاح HTTP قبول الطلب لا اكتماله. للعمل الخلفي، احفظ المعرّف المُعاد وتابع العملية نفسها حتى تنتهي. لا يُعدّ المنشور المجدول أوالمقبول منشوراً حتى تأكيد المنصة؛ انتهاء مهلة العميل لا يثبت النتيجة.

المصادقة والأذونات

فئات بيانات الاعتماد المقبولة
user_session, delegated_oauth, personal_access_token
إمكانية مفوّضة
agent:operate
الحد الأدنى لدور مساحة العمل
لا حد أدنى لدور مساحة العمل في هذا العقد؛ تظل فحوص الملكية والتفويض سارية.
نطاق الوصول
الموارد التي يحق لهذا المستخدم الوصول إليها
تلزم موافقة تشمل جميع مساحات العمل
لا
يغيّر الحالة
لا
متى تُعدّ العملية مكتملة
synchronous_http_response

لا يستخدم الرمز إلا حقوق مالكه. يفحص كل طلب عضوية مساحة العمل وملكية المورد والمساحات المحددة والإمكانات الممنوحة. يغيّر core و full الأدوات المعروضة؛ ولا يمنحان وصولاً.

حقول الطلب

تعني «مطلوب» داخل الكائن الأب والفرع المختار. الحقل الابن المطلوب لا يجعل الأب الاختياري مطلوباً. نُسخت القواعد وأسماء الحقول أدناه من العقد.

حقول الطلب
الحقل / الفرعالنوع / مطلوبالقيود
$objectمطلوب في العنصر الأب
  • additionalProperties: false
workspace_idstringاختياري / عنصر
  • format: "uuid"
  • pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
include_authorization_grantbooleanاختياري / عنصر—
مخطط JSON Schema الكامل
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "include_authorization_grant": {
      "type": "boolean"
    }
  },
  "additionalProperties": false
}

الاستجابة والاكتمال

رموز نجاح HTTP: 200. عندما تكتمل العملية: synchronous_http_response.

قد يعني نجاح HTTP قبول الطلب لا اكتماله. للعمل الخلفي، احفظ المعرّف المُعاد وتابع العملية نفسها حتى تنتهي. لا يُعدّ المنشور المجدول أوالمقبول منشوراً حتى تأكيد المنصة؛ انتهاء مهلة العميل لا يثبت النتيجة.

تعني «مطلوب» داخل الكائن الأب والفرع المختار. الحقل الابن المطلوب لا يجعل الأب الاختياري مطلوباً. نُسخت القواعد وأسماء الحقول أدناه من العقد.

الاستجابة والاكتمال
الحقل / الفرعالنوع / مطلوبالقيود
$objectمطلوب في العنصر الأب—
accountsarrayمطلوب في العنصر الأب—
accounts[]objectاختياري / عنصر—
accounts[].idstringمطلوب في العنصر الأب
  • format: "uuid"
  • pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
accounts[].platformstringمطلوب في العنصر الأب
  • enum: ["instagram","threads","facebook","tiktok","linkedin","youtube","x"]
accounts[].handlestring | nullمطلوب في العنصر الأب—
accounts[].handleanyOf 1stringمطلوب في العنصر الأب—
accounts[].handleanyOf 2nullمطلوب في العنصر الأب—
accounts[].statusstringمطلوب في العنصر الأب
  • enum: ["valid","expiring_soon","expired","disconnected"]
accounts[].expires_atstring | nullمطلوب في العنصر الأب—
accounts[].expires_atanyOf 1stringمطلوب في العنصر الأب—
accounts[].expires_atanyOf 2nullمطلوب في العنصر الأب—
accounts[].created_atstringمطلوب في العنصر الأب—
accounts[].avatar_urlstring | nullاختياري / عنصر—
accounts[].avatar_urlanyOf 1stringاختياري / عنصر—
accounts[].avatar_urlanyOf 2nullاختياري / عنصر—
accounts[].follower_countinteger | nullاختياري / عنصر—
accounts[].follower_countanyOf 1integerاختياري / عنصر
  • minimum: 0
  • maximum: 9007199254740991
accounts[].follower_countanyOf 2nullاختياري / عنصر—
accounts[].post_countinteger | nullاختياري / عنصر—
accounts[].post_countanyOf 1integerاختياري / عنصر
  • minimum: 0
  • maximum: 9007199254740991
accounts[].post_countanyOf 2nullاختياري / عنصر—
accounts[].auto_sync_enabledbooleanاختياري / عنصر—
accounts[].last_synced_atstring | nullاختياري / عنصر—
accounts[].last_synced_atanyOf 1stringاختياري / عنصر—
accounts[].last_synced_atanyOf 2nullاختياري / عنصر—
accounts[].workspace_idstring | nullاختياري / عنصر—
accounts[].workspace_idanyOf 1stringاختياري / عنصر
  • format: "uuid"
  • pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
accounts[].workspace_idanyOf 2nullاختياري / عنصر—
accounts[].platform_user_idstring | nullاختياري / عنصر—
accounts[].platform_user_idanyOf 1stringاختياري / عنصر
  • minLength: 1
accounts[].platform_user_idanyOf 2nullاختياري / عنصر—
accounts[].instagram_login_modestring | nullاختياري / عنصر—
accounts[].instagram_login_modeanyOf 1stringاختياري / عنصر
  • enum: ["instagram_login","facebook_login"]
accounts[].instagram_login_modeanyOf 2nullاختياري / عنصر—
accounts[].facebook_page_idstring | nullاختياري / عنصر—
accounts[].facebook_page_idanyOf 1stringاختياري / عنصر
  • minLength: 1
accounts[].facebook_page_idanyOf 2nullاختياري / عنصر—
accounts[].blocked_untilstring | nullاختياري / عنصر—
accounts[].blocked_untilanyOf 1stringاختياري / عنصر—
accounts[].blocked_untilanyOf 2nullاختياري / عنصر—
accounts[].block_reasonstring | nullاختياري / عنصر—
accounts[].block_reasonanyOf 1stringاختياري / عنصر
  • enum: ["transient","account_block","auth_invalid","permanent"]
accounts[].block_reasonanyOf 2nullاختياري / عنصر—
accounts[].block_subcodeinteger | nullاختياري / عنصر—
accounts[].block_subcodeanyOf 1integerاختياري / عنصر
  • minimum: -9007199254740991
  • maximum: 9007199254740991
accounts[].block_subcodeanyOf 2nullاختياري / عنصر—
accounts[].block_countintegerاختياري / عنصر
  • minimum: 0
  • maximum: 9007199254740991
accounts[].last_block_atstring | nullاختياري / عنصر—
accounts[].last_block_atanyOf 1stringاختياري / عنصر—
accounts[].last_block_atanyOf 2nullاختياري / عنصر—
accounts[].health_statestringمطلوب في العنصر الأب
  • enum: ["ready","action_required","temporarily_unavailable","publishing_restricted","disconnected","unknown"]
accounts[].health_messagestringمطلوب في العنصر الأب
  • minLength: 1
  • maxLength: 500
accounts[].health_observed_atstring | nullمطلوب في العنصر الأب—
accounts[].health_observed_atanyOf 1stringمطلوب في العنصر الأب—
accounts[].health_observed_atanyOf 2nullمطلوب في العنصر الأب—
accounts[].authorization_grantobjectاختياري / عنصر—
accounts[].authorization_grantoneOf 1objectاختياري / عنصر—
accounts[].authorization_grant.granted_permissionsoneOf 1arrayمطلوب في العنصر الأب—
accounts[].authorization_grant.granted_permissions[]oneOf 1stringاختياري / عنصر
  • minLength: 1
accounts[].authorization_grant.inventory_sourceoneOf 1stringمطلوب في العنصر الأب
  • enum: ["oauth_token_response","provider_token_debug","provider_permissions_endpoint"]
accounts[].authorization_grant.inventory_exactoneOf 1booleanمطلوب في العنصر الأب
  • const: true
accounts[].authorization_grant.observed_atoneOf 1stringمطلوب في العنصر الأب
  • minLength: 1
accounts[].authorization_grant.provider_api_versiononeOf 1stringمطلوب في العنصر الأب
  • minLength: 1
  • maxLength: 40
accounts[].authorization_grant.oauth_provideroneOf 1stringمطلوب في العنصر الأب
  • enum: ["instagram","threads","meta","google"]
accounts[].authorization_grant.oauth_subject_idoneOf 1stringمطلوب في العنصر الأب
  • minLength: 1
accounts[].authorization_grantoneOf 2objectاختياري / عنصر—
accounts[].authorization_grant.granted_permissionsoneOf 2arrayمطلوب في العنصر الأب
  • minItems: 0
  • maxItems: 0
accounts[].authorization_grant.granted_permissions[]oneOf 2any JSON valueاختياري / عنصر—
accounts[].authorization_grant.inventory_sourceoneOf 2stringمطلوب في العنصر الأب
  • const: "unavailable"
accounts[].authorization_grant.inventory_exactoneOf 2booleanمطلوب في العنصر الأب
  • const: false
accounts[].authorization_grant.observed_atoneOf 2nullمطلوب في العنصر الأب—
accounts[].authorization_grant.provider_api_versiononeOf 2nullمطلوب في العنصر الأب—
accounts[].authorization_grant.oauth_provideroneOf 2string | nullمطلوب في العنصر الأب—
accounts[].authorization_grant.oauth_provideroneOf 2 / anyOf 1stringمطلوب في العنصر الأب
  • enum: ["instagram","threads","meta","google"]
accounts[].authorization_grant.oauth_provideroneOf 2 / anyOf 2nullمطلوب في العنصر الأب—
accounts[].authorization_grant.oauth_subject_idoneOf 2string | nullمطلوب في العنصر الأب—
accounts[].authorization_grant.oauth_subject_idoneOf 2 / anyOf 1stringمطلوب في العنصر الأب
  • minLength: 1
accounts[].authorization_grant.oauth_subject_idoneOf 2 / anyOf 2nullمطلوب في العنصر الأب—
accounts[].current_capability_snapshot_idstring | nullمطلوب في العنصر الأب—
accounts[].current_capability_snapshot_idanyOf 1stringمطلوب في العنصر الأب
  • format: "uuid"
  • pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
accounts[].current_capability_snapshot_idanyOf 2nullمطلوب في العنصر الأب—
accounts[].capability_factsarrayمطلوب في العنصر الأب—
accounts[].capability_facts[]objectاختياري / عنصر—
accounts[].capability_facts[].capabilitystringمطلوب في العنصر الأب
  • enum: ["can_publish_text","can_publish_image","can_publish_video","can_publish_reel","can_publish_carousel","can_publish_first_comment","can_publish_topic_tag","can_publish_link","can_upload_video","can_set_title","can_set_description","can_set_thumbnail","can_set_privacy_status","can_publish_story","can_invite_collaborators","can_tag_products","can_publish_trial_reel","can_publish_partnership","can_delete_media","can_publish_reply","can_quote_post","can_repost","can_publish_poll","can_publish_gif","can_publish_text_attachment","can_publish_ghost_post","can_tag_location","can_crossshare_to_instagram","can_auto_publish_text","can_delete_post","can_publish_multi_image","can_target_post","can_backdate_post","can_manage_native_schedule","can_update_video","can_delete_video","can_set_brand_partner"]
accounts[].capability_facts[].observed_allowedboolean | nullمطلوب في العنصر الأب—
accounts[].capability_facts[].observed_allowedanyOf 1booleanمطلوب في العنصر الأب—
accounts[].capability_facts[].observed_allowedanyOf 2nullمطلوب في العنصر الأب—
accounts[].capability_facts[].availabilitystringمطلوب في العنصر الأب
  • enum: ["available","unavailable","unknown","documented_ambiguous"]
accounts[].capability_facts[].reason_codestringمطلوب في العنصر الأب
  • pattern: "^[a-z0-9_]+$"
accounts[].capability_facts[].observed_atstringمطلوب في العنصر الأب—
accounts[].capability_facts[].valid_untilstringمطلوب في العنصر الأب—
accounts[].capability_facts[].provider_api_versionstringمطلوب في العنصر الأب
  • minLength: 1
  • maxLength: 40
accounts[].capability_facts[].required_permissionsarrayمطلوب في العنصر الأب—
accounts[].capability_facts[].required_permissions[]stringاختياري / عنصر
  • minLength: 1
accounts[].capability_facts[].granted_permissionsarrayمطلوب في العنصر الأب—
accounts[].capability_facts[].granted_permissions[]stringاختياري / عنصر
  • minLength: 1
accounts[].capability_facts[].account_eligibilityobjectمطلوب في العنصر الأب
  • additionalProperties: {}
accounts[].capability_facts[].account_eligibility.*any JSON valueاختياري / عنصر—
مخطط JSON Schema الكامل
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "accounts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "platform": {
            "type": "string",
            "enum": [
              "instagram",
              "threads",
              "facebook",
              "tiktok",
              "linkedin",
              "youtube",
              "x"
            ]
          },
          "handle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "valid",
              "expiring_soon",
              "expired",
              "disconnected"
            ]
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "follower_count": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "post_count": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "auto_sync_enabled": {
            "type": "boolean"
          },
          "last_synced_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "workspace_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "platform_user_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "instagram_login_mode": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "instagram_login",
                  "facebook_login"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "facebook_page_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "blocked_until": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "block_reason": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "transient",
                  "account_block",
                  "auth_invalid",
                  "permanent"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "block_subcode": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "block_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "last_block_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "health_state": {
            "type": "string",
            "enum": [
              "ready",
              "action_required",
              "temporarily_unavailable",
              "publishing_restricted",
              "disconnected",
              "unknown"
            ]
          },
          "health_message": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "health_observed_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "authorization_grant": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "granted_permissions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "inventory_source": {
                    "type": "string",
                    "enum": [
                      "oauth_token_response",
                      "provider_token_debug",
                      "provider_permissions_endpoint"
                    ]
                  },
                  "inventory_exact": {
                    "type": "boolean",
                    "const": true
                  },
                  "observed_at": {
                    "type": "string",
                    "minLength": 1
                  },
                  "provider_api_version": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40
                  },
                  "oauth_provider": {
                    "type": "string",
                    "enum": [
                      "instagram",
                      "threads",
                      "meta",
                      "google"
                    ]
                  },
                  "oauth_subject_id": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "granted_permissions",
                  "inventory_source",
                  "inventory_exact",
                  "observed_at",
                  "provider_api_version",
                  "oauth_provider",
                  "oauth_subject_id"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "granted_permissions": {
                    "minItems": 0,
                    "maxItems": 0,
                    "type": "array",
                    "items": {
                      "not": {}
                    }
                  },
                  "inventory_source": {
                    "type": "string",
                    "const": "unavailable"
                  },
                  "inventory_exact": {
                    "type": "boolean",
                    "const": false
                  },
                  "observed_at": {
                    "type": "null"
                  },
                  "provider_api_version": {
                    "type": "null"
                  },
                  "oauth_provider": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "instagram",
                          "threads",
                          "meta",
                          "google"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "oauth_subject_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "granted_permissions",
                  "inventory_source",
                  "inventory_exact",
                  "observed_at",
                  "provider_api_version",
                  "oauth_provider",
                  "oauth_subject_id"
                ]
              }
            ]
          },
          "current_capability_snapshot_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "capability_facts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "capability": {
                  "type": "string",
                  "enum": [
                    "can_publish_text",
                    "can_publish_image",
                    "can_publish_video",
                    "can_publish_reel",
                    "can_publish_carousel",
                    "can_publish_first_comment",
                    "can_publish_topic_tag",
                    "can_publish_link",
                    "can_upload_video",
                    "can_set_title",
                    "can_set_description",
                    "can_set_thumbnail",
                    "can_set_privacy_status",
                    "can_publish_story",
                    "can_invite_collaborators",
                    "can_tag_products",
                    "can_publish_trial_reel",
                    "can_publish_partnership",
                    "can_delete_media",
                    "can_publish_reply",
                    "can_quote_post",
                    "can_repost",
                    "can_publish_poll",
                    "can_publish_gif",
                    "can_publish_text_attachment",
                    "can_publish_ghost_post",
                    "can_tag_location",
                    "can_crossshare_to_instagram",
                    "can_auto_publish_text",
                    "can_delete_post",
                    "can_publish_multi_image",
                    "can_target_post",
                    "can_backdate_post",
                    "can_manage_native_schedule",
                    "can_update_video",
                    "can_delete_video",
                    "can_set_brand_partner"
                  ]
                },
                "observed_allowed": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "availability": {
                  "type": "string",
                  "enum": [
                    "available",
                    "unavailable",
                    "unknown",
                    "documented_ambiguous"
                  ]
                },
                "reason_code": {
                  "type": "string",
                  "pattern": "^[a-z0-9_]+$"
                },
                "observed_at": {
                  "type": "string"
                },
                "valid_until": {
                  "type": "string"
                },
                "provider_api_version": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 40
                },
                "required_permissions": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "granted_permissions": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "account_eligibility": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                }
              },
              "required": [
                "capability",
                "observed_allowed",
                "availability",
                "reason_code",
                "observed_at",
                "valid_until",
                "provider_api_version",
                "required_permissions",
                "granted_permissions",
                "account_eligibility"
              ]
            }
          }
        },
        "required": [
          "id",
          "platform",
          "handle",
          "status",
          "expires_at",
          "created_at",
          "health_state",
          "health_message",
          "health_observed_at",
          "current_capability_snapshot_id",
          "capability_facts"
        ]
      }
    }
  },
  "required": [
    "accounts"
  ]
}

الأخطاء وإعادة المحاولة بأمان

افحص حالة HTTP والجسم. قد يحوي خطأ التحقق 400 ‏ZodError؛ تستخدم أخطاء المعالج error و message و code. احتفظ بـ request_id أو x-request-id للتشخيص دون اعتماد. أصلح أخطاء وصول 401/403 قبل المحاولة واتّبع Retry-After لـ 429. لكتابة غير مؤكدة أو 5xx، اقرأ الموجود أولاً. أعِد مفتاح منع التكرار حيث يُدعم فقط؛ تختلف المحاولة حسب العملية ولا تضمن التسليم مرة واحدة بالضبط.

دليل استكشاف الأخطاء وإصلاحها

أمثلة

تستخدم الأمثلة قيماً خيالية مفحوصة بالمخططات. استبدل المعرّفات بالمفوّض لك، والوسائط بأصول جاهزة، والتواريخ بوقت نشر مؤكد. افحص أهلية الحساب قبل الكتابة. لا تُرسل الصفحة طلبات API.

اضبط SOSOAPI_ACCESS_TOKEN على خادمك ببيانات اعتماد تقبلها العملية، وأبقِه خارج شيفرة المتصفح. للوكيل، استخدم sosoapi auth login للدخول بالمتصفح ودع CLI يحدّث بيانات اعتماده.

request.json

{}

cURL

curl --request POST \
  "https://gqeshlawtcexsapabaui.supabase.co/functions/v1/identity-api/user/social-accounts/list" \
  -H "Authorization: Bearer $SOSOAPI_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary @request.json

JavaScript

// Server-side JavaScript. Do not print tokens or credential-bearing responses.
const token = process.env.SOSOAPI_ACCESS_TOKEN;
if (!token) throw new Error("Set an accepted credential for this operation");
const response = await fetch("https://gqeshlawtcexsapabaui.supabase.co/functions/v1/identity-api/user/social-accounts/list", {
  method: "POST",
  headers: { "Content-Type": "application/json", Authorization: "Bearer " + token },
  body: JSON.stringify({})
});
const result = await response.json();
// Check response.ok, the operation-specific body and completion state before continuing.

CLI

npx sosoapi api post /identity-api/user/social-accounts/list < request.json

مثال استجابة اصطناعية

{
  "accounts": []
}

MCP: sosoapi_list_connected_accounts