---
title: "POST /user/listMainSites"
method: POST
path: "/user/listMainSites"
tags: ["User"]
---

# POST /user/listMainSites

`POST /user/listMainSites`

Get main sites from user list

## Request body

- string[]

## Response `200`

Json with user's main sites data

- object[]
  - `userId` string
  - `username` string
  - `mainSite` MainSite
    - `id` string
    - `name` string
    - `url` string
    - `icon` string
    - `isTemplate` boolean
    - `showInPortfolio` boolean
    - `description` string
    - `tags` string
    - `imageUrl` string
    - `readmeContent` string

## Other responses

- `404` — Error not found
- `500` — Server error

## Changes

- **2023-06-13** `c9159f20c562` — 2 breaking
  - the request's body type changed from no type to `array`
  - the response's body type changed from no type to `array` for status `200`
- **2023-06-09** `b7c6ba235941` — 2 breaking
  - the request's body type changed from `array` to no type
  - the response's body type changed from `array` to no type for status `200`

[Change history](https://skmtc.dev/bohr-io/apis/bohr-io-api/changes/user/listMainSites/post.md)

---

[API](https://skmtc.dev/bohr-io/apis/bohr-io-api.md) · [All operations](https://skmtc.dev/bohr-io/apis/bohr-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bohr-io/bohr-io-api/revisions/926405b5dade/schema)
