---
title: List the websites in the authenticated account
slug: list-the-websites-in-the-authenticated-account
docTags: 
createdAt: 2026-05-04T13:13:49.254Z
---

{
  "id": "WsTxRAIs87Ob394qf-5rQ",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "/v1/websites",
    "servers": [],
    "name": "List the websites in the authenticated account",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "bearer",
          "name": "bearer",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Returned when successful",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "description": "",
            "customType": "Website[]",
            "schema": [
              {
                "name": "id",
                "kind": "optional",
                "type": "integer",
                "description": ""
              },
              {
                "name": "domain",
                "kind": "required",
                "type": "string",
                "description": "",
                "pattern": "((?=[a-z0-9-]{1,63}\\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\\.)+[a-z]{2,63}"
              }
            ],
            "modelRef": "#/components/schemas/Website",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "VvCXaZB2FUhxRLH2_XbDN",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url /v1/websites \\\n     --header 'accept: application/json'"
        },
        {
          "id": "HrYGTLPp0hK76VM4J_aUu",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"/v1/websites\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "H_wTlOc7aZFFnFoVQkKWV",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/v1/websites\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "BbZ6QUB-nB-I7etvSAMsk",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/v1/websites\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "VvCXaZB2FUhxRLH2_XbDN"
    },
    "results": {
      "languages": [
        {
          "id": "sIr_cLGfghY2tynPi4KG0",
          "language": "200",
          "code": "// Returned when successful\n[\n  {\n    \"id\": 0,\n    \"domain\": \"\"\n  }\n]"
        }
      ],
      "selectedLanguageId": "sIr_cLGfghY2tynPi4KG0"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}