Zoeken wordt pas geladen wanneer je het gebruikt. Bekijk hieronder alle categorieën.

Accounts en werkruimten

Verbonden accounts weergeven

Toon de socialmedia-accounts (Instagram, Threads, Facebook, YouTube) die met een werkruimte zijn verbonden, met verbindingsgezondheid en vastgestelde mogelijkheden. Gebruik hun ids als social_account_id bij inplannen of reageren. Geef workspace_id mee: een verzoek zonder dit veld wordt geweigerd zodra expliciete selectie wordt afgedwongen.

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

Contract beoordeeld: · sha256:563d2d581da0ad29

Overzicht

Toon de socialmedia-accounts (Instagram, Threads, Facebook, YouTube) die met een werkruimte zijn verbonden, met verbindingsgezondheid en vastgestelde mogelijkheden. Gebruik hun ids als social_account_id bij inplannen of reageren. Geef workspace_id mee: een verzoek zonder dit veld wordt geweigerd zodra expliciete selectie wordt afgedwongen.

Een geslaagd HTTP-antwoord kan acceptatie betekenen in plaats van voltooiing. Bewaar bij achtergrondwerk de teruggegeven ID en controleer dezelfde bewerking totdat die klaar is. Een ingepland of geaccepteerd bericht is pas gepubliceerd na platformbevestiging; een client-time-out bepaalt het resultaat niet.

Authenticatie en machtigingen

Toegestane soorten inloggegevens
user_session, delegated_oauth, personal_access_token
Gedelegeerde bevoegdheid
agent:operate
Minimale werkruimterol
Dit contract vereist geen minimale werkruimterol; eigendoms- en machtigingscontroles blijven gelden.
Toegangsbereik
Resources waartoe deze gebruiker toegang heeft
Toestemming voor alle werkruimten vereist
Nee
Wijzigt status
Nee
Wanneer de bewerking voltooid is
synchronous_http_response

Een token kan alleen rechten van de eigenaar gebruiken. Elk verzoek controleert werkruimtelidmaatschap, resource-eigendom, geselecteerde werkruimten en verleende bevoegdheden. De profielen core en full bepalen welke tools zichtbaar zijn; ze verlenen geen toegang.

Verzoekvelden

Verplicht betekent verplicht binnen het bovenliggende object en de gekozen variant. Een verplicht onderliggend veld maakt een optioneel bovenliggend object niet verplicht. Onderstaande regels en veldnamen zijn uit het contract gekopieerd.

Verzoekvelden
Veld / variantType / verplichtBeperkingen
$objectVerplicht in bovenliggend object
  • additionalProperties: false
workspace_idstringOptioneel / item
  • 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_grantbooleanOptioneel / item—
Volledig 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
}

Antwoord en voltooiing

HTTP-statuscodes bij succes: 200. Wanneer de bewerking voltooid is: synchronous_http_response.

Een geslaagd HTTP-antwoord kan acceptatie betekenen in plaats van voltooiing. Bewaar bij achtergrondwerk de teruggegeven ID en controleer dezelfde bewerking totdat die klaar is. Een ingepland of geaccepteerd bericht is pas gepubliceerd na platformbevestiging; een client-time-out bepaalt het resultaat niet.

Verplicht betekent verplicht binnen het bovenliggende object en de gekozen variant. Een verplicht onderliggend veld maakt een optioneel bovenliggend object niet verplicht. Onderstaande regels en veldnamen zijn uit het contract gekopieerd.

Antwoord en voltooiing
Veld / variantType / verplichtBeperkingen
$objectVerplicht in bovenliggend object—
accountsarrayVerplicht in bovenliggend object—
accounts[]objectOptioneel / item—
accounts[].idstringVerplicht in bovenliggend object
  • 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[].platformstringVerplicht in bovenliggend object
  • enum: ["instagram","threads","facebook","tiktok","linkedin","youtube","x"]
accounts[].handlestring | nullVerplicht in bovenliggend object—
accounts[].handleanyOf 1stringVerplicht in bovenliggend object—
accounts[].handleanyOf 2nullVerplicht in bovenliggend object—
accounts[].statusstringVerplicht in bovenliggend object
  • enum: ["valid","expiring_soon","expired","disconnected"]
accounts[].expires_atstring | nullVerplicht in bovenliggend object—
accounts[].expires_atanyOf 1stringVerplicht in bovenliggend object—
accounts[].expires_atanyOf 2nullVerplicht in bovenliggend object—
accounts[].created_atstringVerplicht in bovenliggend object—
accounts[].avatar_urlstring | nullOptioneel / item—
accounts[].avatar_urlanyOf 1stringOptioneel / item—
accounts[].avatar_urlanyOf 2nullOptioneel / item—
accounts[].follower_countinteger | nullOptioneel / item—
accounts[].follower_countanyOf 1integerOptioneel / item
  • minimum: 0
  • maximum: 9007199254740991
accounts[].follower_countanyOf 2nullOptioneel / item—
accounts[].post_countinteger | nullOptioneel / item—
accounts[].post_countanyOf 1integerOptioneel / item
  • minimum: 0
  • maximum: 9007199254740991
accounts[].post_countanyOf 2nullOptioneel / item—
accounts[].auto_sync_enabledbooleanOptioneel / item—
accounts[].last_synced_atstring | nullOptioneel / item—
accounts[].last_synced_atanyOf 1stringOptioneel / item—
accounts[].last_synced_atanyOf 2nullOptioneel / item—
accounts[].workspace_idstring | nullOptioneel / item—
accounts[].workspace_idanyOf 1stringOptioneel / item
  • 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 2nullOptioneel / item—
accounts[].platform_user_idstring | nullOptioneel / item—
accounts[].platform_user_idanyOf 1stringOptioneel / item
  • minLength: 1
accounts[].platform_user_idanyOf 2nullOptioneel / item—
accounts[].instagram_login_modestring | nullOptioneel / item—
accounts[].instagram_login_modeanyOf 1stringOptioneel / item
  • enum: ["instagram_login","facebook_login"]
accounts[].instagram_login_modeanyOf 2nullOptioneel / item—
accounts[].facebook_page_idstring | nullOptioneel / item—
accounts[].facebook_page_idanyOf 1stringOptioneel / item
  • minLength: 1
accounts[].facebook_page_idanyOf 2nullOptioneel / item—
accounts[].blocked_untilstring | nullOptioneel / item—
accounts[].blocked_untilanyOf 1stringOptioneel / item—
accounts[].blocked_untilanyOf 2nullOptioneel / item—
accounts[].block_reasonstring | nullOptioneel / item—
accounts[].block_reasonanyOf 1stringOptioneel / item
  • enum: ["transient","account_block","auth_invalid","permanent"]
accounts[].block_reasonanyOf 2nullOptioneel / item—
accounts[].block_subcodeinteger | nullOptioneel / item—
accounts[].block_subcodeanyOf 1integerOptioneel / item
  • minimum: -9007199254740991
  • maximum: 9007199254740991
accounts[].block_subcodeanyOf 2nullOptioneel / item—
accounts[].block_countintegerOptioneel / item
  • minimum: 0
  • maximum: 9007199254740991
accounts[].last_block_atstring | nullOptioneel / item—
accounts[].last_block_atanyOf 1stringOptioneel / item—
accounts[].last_block_atanyOf 2nullOptioneel / item—
accounts[].health_statestringVerplicht in bovenliggend object
  • enum: ["ready","action_required","temporarily_unavailable","publishing_restricted","disconnected","unknown"]
accounts[].health_messagestringVerplicht in bovenliggend object
  • minLength: 1
  • maxLength: 500
accounts[].health_observed_atstring | nullVerplicht in bovenliggend object—
accounts[].health_observed_atanyOf 1stringVerplicht in bovenliggend object—
accounts[].health_observed_atanyOf 2nullVerplicht in bovenliggend object—
accounts[].authorization_grantobjectOptioneel / item—
accounts[].authorization_grantoneOf 1objectOptioneel / item—
accounts[].authorization_grant.granted_permissionsoneOf 1arrayVerplicht in bovenliggend object—
accounts[].authorization_grant.granted_permissions[]oneOf 1stringOptioneel / item
  • minLength: 1
accounts[].authorization_grant.inventory_sourceoneOf 1stringVerplicht in bovenliggend object
  • enum: ["oauth_token_response","provider_token_debug","provider_permissions_endpoint"]
accounts[].authorization_grant.inventory_exactoneOf 1booleanVerplicht in bovenliggend object
  • const: true
accounts[].authorization_grant.observed_atoneOf 1stringVerplicht in bovenliggend object
  • minLength: 1
accounts[].authorization_grant.provider_api_versiononeOf 1stringVerplicht in bovenliggend object
  • minLength: 1
  • maxLength: 40
accounts[].authorization_grant.oauth_provideroneOf 1stringVerplicht in bovenliggend object
  • enum: ["instagram","threads","meta","google"]
accounts[].authorization_grant.oauth_subject_idoneOf 1stringVerplicht in bovenliggend object
  • minLength: 1
accounts[].authorization_grantoneOf 2objectOptioneel / item—
accounts[].authorization_grant.granted_permissionsoneOf 2arrayVerplicht in bovenliggend object
  • minItems: 0
  • maxItems: 0
accounts[].authorization_grant.granted_permissions[]oneOf 2any JSON valueOptioneel / item—
accounts[].authorization_grant.inventory_sourceoneOf 2stringVerplicht in bovenliggend object
  • const: "unavailable"
accounts[].authorization_grant.inventory_exactoneOf 2booleanVerplicht in bovenliggend object
  • const: false
accounts[].authorization_grant.observed_atoneOf 2nullVerplicht in bovenliggend object—
accounts[].authorization_grant.provider_api_versiononeOf 2nullVerplicht in bovenliggend object—
accounts[].authorization_grant.oauth_provideroneOf 2string | nullVerplicht in bovenliggend object—
accounts[].authorization_grant.oauth_provideroneOf 2 / anyOf 1stringVerplicht in bovenliggend object
  • enum: ["instagram","threads","meta","google"]
accounts[].authorization_grant.oauth_provideroneOf 2 / anyOf 2nullVerplicht in bovenliggend object—
accounts[].authorization_grant.oauth_subject_idoneOf 2string | nullVerplicht in bovenliggend object—
accounts[].authorization_grant.oauth_subject_idoneOf 2 / anyOf 1stringVerplicht in bovenliggend object
  • minLength: 1
accounts[].authorization_grant.oauth_subject_idoneOf 2 / anyOf 2nullVerplicht in bovenliggend object—
accounts[].current_capability_snapshot_idstring | nullVerplicht in bovenliggend object—
accounts[].current_capability_snapshot_idanyOf 1stringVerplicht in bovenliggend object
  • 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 2nullVerplicht in bovenliggend object—
accounts[].capability_factsarrayVerplicht in bovenliggend object—
accounts[].capability_facts[]objectOptioneel / item—
accounts[].capability_facts[].capabilitystringVerplicht in bovenliggend object
  • 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 | nullVerplicht in bovenliggend object—
accounts[].capability_facts[].observed_allowedanyOf 1booleanVerplicht in bovenliggend object—
accounts[].capability_facts[].observed_allowedanyOf 2nullVerplicht in bovenliggend object—
accounts[].capability_facts[].availabilitystringVerplicht in bovenliggend object
  • enum: ["available","unavailable","unknown","documented_ambiguous"]
accounts[].capability_facts[].reason_codestringVerplicht in bovenliggend object
  • pattern: "^[a-z0-9_]+$"
accounts[].capability_facts[].observed_atstringVerplicht in bovenliggend object—
accounts[].capability_facts[].valid_untilstringVerplicht in bovenliggend object—
accounts[].capability_facts[].provider_api_versionstringVerplicht in bovenliggend object
  • minLength: 1
  • maxLength: 40
accounts[].capability_facts[].required_permissionsarrayVerplicht in bovenliggend object—
accounts[].capability_facts[].required_permissions[]stringOptioneel / item
  • minLength: 1
accounts[].capability_facts[].granted_permissionsarrayVerplicht in bovenliggend object—
accounts[].capability_facts[].granted_permissions[]stringOptioneel / item
  • minLength: 1
accounts[].capability_facts[].account_eligibilityobjectVerplicht in bovenliggend object
  • additionalProperties: {}
accounts[].capability_facts[].account_eligibility.*any JSON valueOptioneel / item—
Volledig 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"
  ]
}

Fouten en veilig opnieuw proberen

Controleer de HTTP-status en antwoordinhoud. Een 400-validatiefout kan een ZodError bevatten; afhandelingsfouten gebruiken de velden error, message en code. Bewaar request_id of x-request-id voor diagnose, zonder inloggegevens. Los 401/403-toegangsfouten op voordat je opnieuw probeert en volg Retry-After bij 429. Lees bij een onzekere schrijfhandeling of 5xx eerst het bestaande resultaat. Hergebruik een idempotentiesleutel alleen waar dit wordt ondersteund; het gedrag bij opnieuw proberen verschilt per bewerking en garandeert geen precies eenmalige aflevering.

Handleiding voor probleemoplossing

Voorbeelden

Deze voorbeelden gebruiken fictieve waarden die tegen de schema's zijn gecontroleerd. Vervang IDs door toegestane IDs, media door gereedstaande bestanden en datums door je bevestigde publicatietijd. Controleer accountgeschiktheid vóór een schrijfhandeling. Deze pagina verstuurt geen API-verzoeken.

Stel SOSOAPI_ACCESS_TOKEN op je server in op inloggegevens die deze bewerking accepteert en houd deze uit browsercode. Gebruik voor een agent sosoapi auth login om via de browser aan te melden en laat de CLI de inloggegevens vernieuwen.

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

Voorbeeld van een synthetisch antwoord

{
  "accounts": []
}

MCP: sosoapi_list_connected_accounts