---
title: "Add a website in the collection with form data"
method: POST
path: "/website"
tags: ["websites"]
---

# Add a website in the collection with form data

`POST /website`

## Request body

- WebsiteInput
  - `url` string
  - `mobile` boolean
  - `pageInsights` boolean
  - `ua` string
  - `standard` string
  - `robots` string
  - `subdomains` boolean
  - `tld` boolean
  - `customHeaders` string[]

## Response `200`

successful operation

- object
  - `data` Websites
    - `_id` integer
    - `userId` integer
    - `url` string
    - `domain` string
    - `crawlDuration` integer
    - `cdnConnected` boolean
    - `pageInsights` boolean
    - `online` boolean
    - `mobile` boolean
    - `robots` boolean
    - `insight` object
      - `json` string
    - `pageHeaders` string[]
    - `pageLoadTime` PageLoadTime
      - `duration` number
      - `durationFormated` string
      - `color` string
    - `issuesInfo` IssuesInfo
      - `accessScoreAverage` integer
      - `possibleIssuesFixedByCdn` integer
      - `totalIssues` integer
      - `issuesFixedByCdn` integer
      - `errorCount` integer
      - `warningCount` integer
      - `noticeCount` integer
      - `pageCount` integer

## Other responses

- `405` — Invalid input

## Changes

- **2026-07-17** `83861b057739` — 1 breaking
  - the `data/pageLoadTime/duration` response's property type/format changed from `int32`/`` to `number`/`` for status `200`
- **2023-01-15** `ce9cb8170318` — 1 warning, 1 info
  - removed the optional property `data/issuesInfo/adaScoreAverage` from the response with the `200` status
  - added the optional property `data/issuesInfo/accessScoreAverage` to the response with the `200` status
- **2022-07-17** `2685f549f670` — 1 breaking
  - the `data/pageLoadTime/duration` response's property type/format changed from `string`/`` to `int32`/`` for status `200`
- **2022-07-06** `3abdf8ec2b20` — 2 info
  - added the new optional request property `subdomains`
  - added the new optional request property `tld`
- **2022-06-14** `dbb7bce5ffbe` — 1 warning, 7 info
  - removed the request property `domain`
  - added the new optional request property `customHeaders`
  - added the new optional request property `mobile`
  - added the new optional request property `pageInsights`
  - …4 more

[Full history](https://skmtc.dev/a11ywatch/apis/a11ywatch-client/changes/website/post.md)

---

[API](https://skmtc.dev/a11ywatch/apis/a11ywatch-client.md) · [All operations](https://skmtc.dev/a11ywatch/apis/a11ywatch-client/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/a11ywatch/a11ywatch-client/revisions/83861b057739/schema)
