> ## Documentation Index
> Fetch the complete documentation index at: https://developer.surefeedback.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create site

> Add a new site to a project.

Creates a new site and generates a site token (`sc_...`) for use with the SureFeedback widget.

<Note>
  Requires authentication. Domain must be unique across the platform.
</Note>

## Request body

<ParamField body="name" type="string" required>
  Display name for the site. Max 255 characters.
</ParamField>

<ParamField body="domain" type="string" required>
  The domain where the widget will be embedded (e.g., `example.com`). Must be unique.
</ParamField>

<ParamField body="project_id" type="string" required>
  UUID of the project this site belongs to.
</ParamField>

## Response

<ResponseField name="data" type="object">
  <Expandable title="Site fields">
    <ResponseField name="id" type="string">UUID of the site.</ResponseField>
    <ResponseField name="api_token" type="string">Widget site token (`sc_...`). Use this when initializing the widget.</ResponseField>
    <ResponseField name="domain" type="string">The registered domain.</ResponseField>
    <ResponseField name="is_active" type="boolean">Whether the site is active.</ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json 201 theme={null}
  {
    "success": true,
    "data": {
      "id": "880e8400-e29b-41d4-a716-446655440003",
      "name": "Main Website",
      "domain": "example.com",
      "api_token": "sc_AbCdEfGh123456",
      "is_active": true,
      "project_id": "770e8400-e29b-41d4-a716-446655440002"
    }
  }
  ```
</ResponseExample>
