# List sites

Retrieves a list of available sites with their basic information including name, display name, and URL.

Endpoint: GET /api/v1/sites
Version: v2.0
Security: HTTPBearer

## Security:

  - `HTTPBearer` (unknown)
    http bearer JWT

## Header parameters:

  - `x-sc-job-id` (any)
    A unique identifier for the job, used to trace, audit, and revert actions performed by an AI agent through the Agent API.

## Response 200:

  - `200` (unknown)
    Successful response

## Response 200 fields (application/json):

  - `sites` (array)
    A list of sites.

  - `sites.id` (string)
    The unique identifier of the site.
    Example: 3f2504e0-4f89-11d3-9a0c-0305e82c3301

  - `sites.name` (string)
    The name of the site.
    Example: skate-park

  - `sites.targetHostname` (string)
    The target hostname of the site.
    Example: skate-park.example.com

  - `sites.rootPath` (string)
    The root path of the site.
    Example: /sitecore/content/SkatePark

## Response 422:

  - `422` (unknown)
    Unprocessable entity

## Response 422 fields (application/json):

  - `detail` (array)

  - `detail.loc` (array)
    The location of the error in the request.

  - `detail.msg` (string)
    The error message.

  - `detail.type` (string)
    The type of error.

  - `detail.input` (any)
    The input that caused the error.

  - `detail.ctx` (object)
    The context in which the error occurred.

