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

# Create a new domain

> Creates a domain in a project.



## OpenAPI

````yaml https://api.concord.tech/docs/json/privacy-v1/ post /organizations/{organizationId}/projects/{projectId}/domains
openapi: 3.1.0
info:
  title: Concord Privacy API
  description: >-
    The Concord Privacy API provide full access to the Concord platform for
    registered organizations.
  version: 3.29.6
  contact:
    email: support@concord.tech
    name: Concord Technologies Inc.
    url: https://www.concord.tech
  license:
    name: Proprietary
    url: https://www.concord.tech/legal/saas-agreement
  termsOfService: https://www.concord.tech/legal/saas-agreement
servers:
  - url: https://api.concord.tech/privacy-v1
    description: Concord Privacy API
security:
  - ApiKeyAuth: []
tags:
  - name: API Keys
    description: API Key endpoints.
  - name: Consent Events
    description: Consent event endpoints.
  - name: Consent Types
    description: Consent type endpoints.
  - name: Compliance Requests
    description: Compliance request endpoints.
  - name: Data Systems
    description: Data System endpoints.
  - name: Domains
    description: Domain endpoints.
  - name: Emails
    description: Emails endpoints.
  - name: GCM Scans
    description: GCM Scan endpoints.
  - name: Health Check
    description: Health Check endpoints.
  - name: Metrics
    description: Metrics endpoints.
  - name: Permissions
    description: Permission endpoints.
  - name: Policies
    description: Policy endpoints.
  - name: Projects
    description: Project endpoints.
  - name: Languages
    description: Language endpoints.
  - name: Organizations
    description: Organization endpoints.
  - name: Regions
    description: Region template endpoints.
  - name: Sessions
    description: Session endpoints.
  - name: Trackers
    description: Tracker endpoints.
  - name: Tracker Scans
    description: Tracker Scan endpoints.
  - name: Users
    description: Users endpoints.
  - name: Subscriptions
    description: Subscription endpoints.
paths:
  /organizations/{organizationId}/projects/{projectId}/domains:
    post:
      tags:
        - Domains
      summary: Create a new domain
      description: Creates a domain in a project.
      operationId: post_privacy_v1_organizations_organizationid_projects_projectid_domains
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: organizationId
          required: true
        - schema:
            type: string
            format: uuid
          in: path
          name: projectId
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  maxLength: 256
                domain:
                  anyOf:
                    - type: string
                      enum:
                        - localhost
                        - 127.0.0.1
                        - '::1'
                    - type: string
              required:
                - domain
              additionalProperties: false
        required: true
      responses:
        '201':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  organizationId:
                    type: string
                    format: uuid
                  projectId:
                    type: string
                    format: uuid
                  name:
                    type: string
                  domain:
                    anyOf:
                      - type: string
                        enum:
                          - localhost
                          - 127.0.0.1
                          - '::1'
                      - type: string
                  dateCreated:
                    type: integer
                  dateUpdated:
                    type: integer
                required:
                  - id
                  - organizationId
                  - projectId
                  - domain
                  - dateCreated
                  - dateUpdated
                additionalProperties: false
        '400':
          description: Bad request response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    format: int32
                    default: 404
                    description: The status code of the request.
                  error:
                    type: string
                    default: Not Found
                    description: The error string for the status code.
                  message:
                    type: string
                    description: Description of the error encounted.
                required:
                  - statusCode
                  - error
                  - message
        '401':
          description: Unauthorized response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    format: int32
                    default: 404
                    description: The status code of the request.
                  error:
                    type: string
                    default: Not Found
                    description: The error string for the status code.
                  message:
                    type: string
                    default: Forbidden
                required:
                  - statusCode
                  - error
                  - message
        '403':
          description: Forbidden response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    format: int32
                    default: 403
                    description: The status code of the request.
                  error:
                    type: string
                    default: Forbidden
                  message:
                    type: string
                    default: Forbidden
                required:
                  - statusCode
                  - error
                  - message
        '404':
          description: Not found response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    format: int32
                    default: 404
                  error:
                    type: string
                    default: Not Found
                  message:
                    type: string
                    default: Not Found
                required:
                  - statusCode
                  - error
                  - message
        '422':
          description: Unprocessable Entity response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    format: int32
                    default: 422
                  error:
                    type: string
                    default: Unprocessable Entity
                  message:
                    type: string
                    description: Description of the error encounted.
                required:
                  - statusCode
                  - error
                  - message
        '500':
          description: Internal server error response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    format: int32
                    default: 500
                  error:
                    type: string
                    default: Internal Server Error
                  message:
                    type: string
                    default: Internal Server Error
                    description: Will always be "Internal Server Error"
                required:
                  - statusCode
                  - error
                  - message
components:
  securitySchemes:
    ApiKeyAuth:
      name: x-api-key
      type: apiKey
      in: header
      description: ''

````