OpenSocialDocumentação

accounts_list

Listar contas e recursos disponíveis. Identifique canais do YouTube pelo handle (@) ou pelo remote_id, pois o nome exibido pode ser diferente.

REST · POST /api/v1/operations/accounts_list · MCP · accounts_list

Permissão necessária · read. Esta operação consulta dados.

Exemplo de entrada

{
  "verify": true
}

O REST retorna a saída abaixo diretamente. No MCP leia structuredContent.result. Consulte o contrato atual em /api/v1/openapi.json.

Em 401 confira a validade da credencial. Em 403 confira papel, escopos e contas. Em 409 releia o registro antes de tentar novamente.

JSON Schema · Entrada

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "verify": {
      "default": false,
      "type": "boolean"
    }
  },
  "additionalProperties": false
}

JSON Schema · Saída

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string"
      },
      "name": {
        "type": "string"
      },
      "platform": {
        "type": "string"
      },
      "remote_id": {
        "type": "string"
      },
      "handle": {
        "type": [
          "string",
          "null"
        ]
      },
      "status": {
        "type": "string"
      },
      "capabilities": {
        "type": "object",
        "properties": {
          "connected": {
            "type": "boolean"
          },
          "publish": {
            "type": "boolean"
          },
          "analytics": {
            "type": "boolean"
          },
          "nativeSchedule": {
            "type": "boolean"
          },
          "simulation": {
            "type": "boolean"
          }
        },
        "required": [
          "connected",
          "publish",
          "analytics",
          "nativeSchedule",
          "simulation"
        ],
        "additionalProperties": {}
      },
      "diagnosis": {
        "type": "object",
        "properties": {
          "publish": {
            "type": "boolean"
          },
          "schedule": {
            "type": "boolean"
          },
          "verification": {
            "type": "string"
          },
          "mode": {
            "type": [
              "string",
              "null"
            ]
          },
          "publicPosting": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "ownerConsentRequired": {
            "type": "boolean"
          },
          "remoteListing": {
            "type": [
              "string",
              "null"
            ]
          },
          "blocked": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string"
                  },
                  "operation": {
                    "type": "string"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "action",
                  "operation"
                ],
                "additionalProperties": {}
              },
              {
                "type": "null"
              }
            ]
          },
          "confirmation": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "publish",
          "schedule",
          "verification",
          "mode",
          "blocked",
          "confirmation"
        ],
        "additionalProperties": {}
      }
    },
    "required": [
      "id",
      "name",
      "platform",
      "remote_id",
      "handle",
      "status",
      "capabilities",
      "diagnosis"
    ],
    "additionalProperties": {}
  }
}