{
  "url": "https://telipot.com/catalog/capabilities/search-console.sites.list",
  "id": "search-console.sites.list",
  "description": "Sites on the connected Search Console account and the permission level on each",
  "platform": "search-console",
  "providers": [
    {
      "slug": "google-search-console",
      "name": "Google Search Console"
    }
  ],
  "tasks": 1,
  "taskPages": [
    {
      "id": "google-search-console.sites.list",
      "name": "Sites and permission levels on the connected account",
      "provider": {
        "slug": "google-search-console",
        "name": "Google Search Console"
      },
      "capability": "search-console.sites.list",
      "platform": "search-console",
      "kind": "utility",
      "tier": "core",
      "identity": "account",
      "identityLabel": "Company account",
      "price": {
        "amount": "Free",
        "state": "free",
        "label": "Free",
        "detail": "Free from the tool",
        "type": "free"
      },
      "providers": 1,
      "retention": "standard",
      "runsOn": "free",
      "live": true,
      "summary": "Lists the user's Search Console sites.",
      "method": "GET",
      "path": "/webmasters/v3/sites",
      "host": "https://searchconsole.googleapis.com",
      "docsUrl": "https://developers.google.com/webmaster-tools/v1/sites/list",
      "auth": {
        "scheme": "oauth",
        "label": "oauth · OAuth 2.0 with PKCE",
        "short": "oauth · OAuth 2.0"
      },
      "scope": "own_account",
      "principal": "organization",
      "requiredScopes": [
        "webmasters.readonly"
      ],
      "verification": {
        "state": "none",
        "label": "Not verified yet",
        "detail": "Not checked yet. We test with a real request before we mark it."
      },
      "input": [],
      "sampleInput": {},
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "output": [
        {
          "name": "siteEntry",
          "type": "object[]",
          "description": "Absent when the account has no site"
        }
      ],
      "outputSchema": {
        "type": "object",
        "properties": {
          "siteEntry": {
            "type": "array",
            "description": "Absent when the account has no site",
            "items": {
              "type": "object",
              "required": [
                "siteUrl",
                "permissionLevel"
              ],
              "properties": {
                "siteUrl": {
                  "type": "string",
                  "description": "A URL-prefix property with its trailing slash, or a domain property written sc-domain:example.com"
                },
                "permissionLevel": {
                  "type": "string",
                  "description": "siteOwner, siteFullUser, siteRestrictedUser or siteUnverifiedUser"
                }
              }
            }
          }
        }
      },
      "example": {
        "file": "examples/google-search-console.sites.list.json",
        "json": {
          "siteEntry": [
            {
              "siteUrl": "sc-domain:example.com",
              "permissionLevel": "siteOwner"
            },
            {
              "siteUrl": "https://www.example.com/",
              "permissionLevel": "siteFullUser"
            }
          ]
        }
      },
      "commands": {
        "mode": "run",
        "cli": "telipot run google-search-console.sites.list \\\n  --input-json '{}'",
        "http": "curl https://api.telipot.com/v1/tasks/google-search-console.sites.list/run \\\n  -H \"Authorization: Bearer $TELIPOT_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{}'",
        "quote": "telipot run google-search-console.sites.list \\\n  --input-json '{}' \\\n  --quote"
      },
      "siblings": []
    }
  ]
}
