Søk lastes bare når du bruker det. Bla gjennom alle kategoriene nedenfor.

Kontoer og arbeidsområder

Vis tilkoblede kontoer

Vis kontoene i sosiale medier (Instagram, Threads, Facebook, YouTube) som er koblet til et arbeidsområde, med tilkoblingstilstand og funksjonsfakta. Bruk ID-ene deres som social_account_id ved planlegging eller kommentering. Oppgi workspace_id: en forespørsel uten avvises når eksplisitt målvalg håndheves.

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

Kontrakt gjennomgått: · sha256:563d2d581da0ad29

Oversikt

Vis kontoene i sosiale medier (Instagram, Threads, Facebook, YouTube) som er koblet til et arbeidsområde, med tilkoblingstilstand og funksjonsfakta. Bruk ID-ene deres som social_account_id ved planlegging eller kommentering. Oppgi workspace_id: en forespørsel uten avvises når eksplisitt målvalg håndheves.

Et vellykket HTTP-svar kan bety at en forespørsel er akseptert fremfor fullført. For bakgrunnsarbeid, lagre returnert ID og kontroller samme operasjon til den er ferdig. Et planlagt eller akseptert innlegg er først publisert når plattformen bekrefter det; et klienttidsavbrudd fastslår ikke resultatet.

Autentisering og tillatelser

Godtatte legitimasjonsklasser
user_session, delegated_oauth, personal_access_token
Delegert funksjon
agent:operate
Minste arbeidsområderolle
Ingen minste arbeidsområderolle i denne kontrakten; eierskaps- og tillatelseskontroller gjelder fortsatt.
Tilgangsomfang
Ressurser denne brukeren er autorisert til å bruke
Samtykke for alle arbeidsområder kreves
Nei
Endrer tilstand
Nei
Når operasjonen er fullført
synchronous_http_response

Et token kan bare bruke rettighetene eieren har. Hver forespørsel kontrollerer arbeidsområdemedlemskap, ressurseierskap, valgte arbeidsområder og gitte funksjoner. Profilene core og full endrer hvilke verktøy som vises; de gir ikke tilgang.

Forespørselsfelter

Påkrevd betyr påkrevd i foreldreobjektet og valgt gren. Et påkrevd underfelt gjør ikke en valgfri forelder påkrevd. Reglene og feltnavnene nedenfor er kopiert fra kontrakten.

Forespørselsfelter
Felt / grenType / påkrevdBegrensninger
$objectPåkrevd i forelder
  • additionalProperties: false
workspace_idstringValgfritt / element
  • 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_grantbooleanValgfritt / element—
Fullstendig 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
}

Svar og fullføring

HTTP-statuser ved suksess: 200. Når operasjonen er fullført: synchronous_http_response.

Et vellykket HTTP-svar kan bety at en forespørsel er akseptert fremfor fullført. For bakgrunnsarbeid, lagre returnert ID og kontroller samme operasjon til den er ferdig. Et planlagt eller akseptert innlegg er først publisert når plattformen bekrefter det; et klienttidsavbrudd fastslår ikke resultatet.

Påkrevd betyr påkrevd i foreldreobjektet og valgt gren. Et påkrevd underfelt gjør ikke en valgfri forelder påkrevd. Reglene og feltnavnene nedenfor er kopiert fra kontrakten.

Svar og fullføring
Felt / grenType / påkrevdBegrensninger
$objectPåkrevd i forelder—
accountsarrayPåkrevd i forelder—
accounts[]objectValgfritt / element—
accounts[].idstringPåkrevd i forelder
  • 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[].platformstringPåkrevd i forelder
  • enum: ["instagram","threads","facebook","tiktok","linkedin","youtube","x"]
accounts[].handlestring | nullPåkrevd i forelder—
accounts[].handleanyOf 1stringPåkrevd i forelder—
accounts[].handleanyOf 2nullPåkrevd i forelder—
accounts[].statusstringPåkrevd i forelder
  • enum: ["valid","expiring_soon","expired","disconnected"]
accounts[].expires_atstring | nullPåkrevd i forelder—
accounts[].expires_atanyOf 1stringPåkrevd i forelder—
accounts[].expires_atanyOf 2nullPåkrevd i forelder—
accounts[].created_atstringPåkrevd i forelder—
accounts[].avatar_urlstring | nullValgfritt / element—
accounts[].avatar_urlanyOf 1stringValgfritt / element—
accounts[].avatar_urlanyOf 2nullValgfritt / element—
accounts[].follower_countinteger | nullValgfritt / element—
accounts[].follower_countanyOf 1integerValgfritt / element
  • minimum: 0
  • maximum: 9007199254740991
accounts[].follower_countanyOf 2nullValgfritt / element—
accounts[].post_countinteger | nullValgfritt / element—
accounts[].post_countanyOf 1integerValgfritt / element
  • minimum: 0
  • maximum: 9007199254740991
accounts[].post_countanyOf 2nullValgfritt / element—
accounts[].auto_sync_enabledbooleanValgfritt / element—
accounts[].last_synced_atstring | nullValgfritt / element—
accounts[].last_synced_atanyOf 1stringValgfritt / element—
accounts[].last_synced_atanyOf 2nullValgfritt / element—
accounts[].workspace_idstring | nullValgfritt / element—
accounts[].workspace_idanyOf 1stringValgfritt / element
  • 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 2nullValgfritt / element—
accounts[].platform_user_idstring | nullValgfritt / element—
accounts[].platform_user_idanyOf 1stringValgfritt / element
  • minLength: 1
accounts[].platform_user_idanyOf 2nullValgfritt / element—
accounts[].instagram_login_modestring | nullValgfritt / element—
accounts[].instagram_login_modeanyOf 1stringValgfritt / element
  • enum: ["instagram_login","facebook_login"]
accounts[].instagram_login_modeanyOf 2nullValgfritt / element—
accounts[].facebook_page_idstring | nullValgfritt / element—
accounts[].facebook_page_idanyOf 1stringValgfritt / element
  • minLength: 1
accounts[].facebook_page_idanyOf 2nullValgfritt / element—
accounts[].blocked_untilstring | nullValgfritt / element—
accounts[].blocked_untilanyOf 1stringValgfritt / element—
accounts[].blocked_untilanyOf 2nullValgfritt / element—
accounts[].block_reasonstring | nullValgfritt / element—
accounts[].block_reasonanyOf 1stringValgfritt / element
  • enum: ["transient","account_block","auth_invalid","permanent"]
accounts[].block_reasonanyOf 2nullValgfritt / element—
accounts[].block_subcodeinteger | nullValgfritt / element—
accounts[].block_subcodeanyOf 1integerValgfritt / element
  • minimum: -9007199254740991
  • maximum: 9007199254740991
accounts[].block_subcodeanyOf 2nullValgfritt / element—
accounts[].block_countintegerValgfritt / element
  • minimum: 0
  • maximum: 9007199254740991
accounts[].last_block_atstring | nullValgfritt / element—
accounts[].last_block_atanyOf 1stringValgfritt / element—
accounts[].last_block_atanyOf 2nullValgfritt / element—
accounts[].health_statestringPåkrevd i forelder
  • enum: ["ready","action_required","temporarily_unavailable","publishing_restricted","disconnected","unknown"]
accounts[].health_messagestringPåkrevd i forelder
  • minLength: 1
  • maxLength: 500
accounts[].health_observed_atstring | nullPåkrevd i forelder—
accounts[].health_observed_atanyOf 1stringPåkrevd i forelder—
accounts[].health_observed_atanyOf 2nullPåkrevd i forelder—
accounts[].authorization_grantobjectValgfritt / element—
accounts[].authorization_grantoneOf 1objectValgfritt / element—
accounts[].authorization_grant.granted_permissionsoneOf 1arrayPåkrevd i forelder—
accounts[].authorization_grant.granted_permissions[]oneOf 1stringValgfritt / element
  • minLength: 1
accounts[].authorization_grant.inventory_sourceoneOf 1stringPåkrevd i forelder
  • enum: ["oauth_token_response","provider_token_debug","provider_permissions_endpoint"]
accounts[].authorization_grant.inventory_exactoneOf 1booleanPåkrevd i forelder
  • const: true
accounts[].authorization_grant.observed_atoneOf 1stringPåkrevd i forelder
  • minLength: 1
accounts[].authorization_grant.provider_api_versiononeOf 1stringPåkrevd i forelder
  • minLength: 1
  • maxLength: 40
accounts[].authorization_grant.oauth_provideroneOf 1stringPåkrevd i forelder
  • enum: ["instagram","threads","meta","google"]
accounts[].authorization_grant.oauth_subject_idoneOf 1stringPåkrevd i forelder
  • minLength: 1
accounts[].authorization_grantoneOf 2objectValgfritt / element—
accounts[].authorization_grant.granted_permissionsoneOf 2arrayPåkrevd i forelder
  • minItems: 0
  • maxItems: 0
accounts[].authorization_grant.granted_permissions[]oneOf 2any JSON valueValgfritt / element—
accounts[].authorization_grant.inventory_sourceoneOf 2stringPåkrevd i forelder
  • const: "unavailable"
accounts[].authorization_grant.inventory_exactoneOf 2booleanPåkrevd i forelder
  • const: false
accounts[].authorization_grant.observed_atoneOf 2nullPåkrevd i forelder—
accounts[].authorization_grant.provider_api_versiononeOf 2nullPåkrevd i forelder—
accounts[].authorization_grant.oauth_provideroneOf 2string | nullPåkrevd i forelder—
accounts[].authorization_grant.oauth_provideroneOf 2 / anyOf 1stringPåkrevd i forelder
  • enum: ["instagram","threads","meta","google"]
accounts[].authorization_grant.oauth_provideroneOf 2 / anyOf 2nullPåkrevd i forelder—
accounts[].authorization_grant.oauth_subject_idoneOf 2string | nullPåkrevd i forelder—
accounts[].authorization_grant.oauth_subject_idoneOf 2 / anyOf 1stringPåkrevd i forelder
  • minLength: 1
accounts[].authorization_grant.oauth_subject_idoneOf 2 / anyOf 2nullPåkrevd i forelder—
accounts[].current_capability_snapshot_idstring | nullPåkrevd i forelder—
accounts[].current_capability_snapshot_idanyOf 1stringPåkrevd i forelder
  • 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 2nullPåkrevd i forelder—
accounts[].capability_factsarrayPåkrevd i forelder—
accounts[].capability_facts[]objectValgfritt / element—
accounts[].capability_facts[].capabilitystringPåkrevd i forelder
  • 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 | nullPåkrevd i forelder—
accounts[].capability_facts[].observed_allowedanyOf 1booleanPåkrevd i forelder—
accounts[].capability_facts[].observed_allowedanyOf 2nullPåkrevd i forelder—
accounts[].capability_facts[].availabilitystringPåkrevd i forelder
  • enum: ["available","unavailable","unknown","documented_ambiguous"]
accounts[].capability_facts[].reason_codestringPåkrevd i forelder
  • pattern: "^[a-z0-9_]+$"
accounts[].capability_facts[].observed_atstringPåkrevd i forelder—
accounts[].capability_facts[].valid_untilstringPåkrevd i forelder—
accounts[].capability_facts[].provider_api_versionstringPåkrevd i forelder
  • minLength: 1
  • maxLength: 40
accounts[].capability_facts[].required_permissionsarrayPåkrevd i forelder—
accounts[].capability_facts[].required_permissions[]stringValgfritt / element
  • minLength: 1
accounts[].capability_facts[].granted_permissionsarrayPåkrevd i forelder—
accounts[].capability_facts[].granted_permissions[]stringValgfritt / element
  • minLength: 1
accounts[].capability_facts[].account_eligibilityobjectPåkrevd i forelder
  • additionalProperties: {}
accounts[].capability_facts[].account_eligibility.*any JSON valueValgfritt / element—
Fullstendig 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"
  ]
}

Feil og trygge nye forsøk

Kontroller HTTP-status og svarinnhold. En 400-valideringsfeil kan inneholde en ZodError; håndteringsfeil bruker feltene error, message og code. Behold request_id eller x-request-id for feilsøking, uten påloggingsopplysninger. Rett 401/403-tilgangsfeil før nye forsøk, og følg Retry-After ved 429. Hvis en skriveoperasjon er usikker eller returnerer 5xx, les det eksisterende resultatet først. Gjenbruk bare en idempotensnøkkel der det støttes; virkemåten ved nye forsøk varierer mellom operasjoner og garanterer ikke levering nøyaktig én gang.

Feilsøkingsveiledning

Eksempler

Disse eksemplene bruker fiktive verdier kontrollert mot skjemaene. Erstatt ID-ene med noen du har lov til å bruke, mediene med klare ressurser og datoene med bekreftet publiseringstidspunkt. Kontroller kontoens kvalifikasjon før en skriveoperasjon sendes inn. Siden sender ingen API-forespørsler.

Angi SOSOAPI_ACCESS_TOKEN på serveren din til legitimasjon som operasjonen godtar, og hold den unna nettleserkode. For en agent, bruk sosoapi auth login for innlogging gjennom nettleseren, og la CLI-et fornye legitimasjonen.

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

Syntetisk svareksempel

{
  "accounts": []
}

MCP: sosoapi_list_connected_accounts