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

# Add crawl subdomain

> Allow the crawler to map and analyze pages on another exact subdomain, such as `admin.example.com`. Returns the existing entry if the subdomain is already allowed.



## OpenAPI

````yaml /api-reference/api.json post /v1/crawl-subdomains
openapi: 3.0.0
info:
  title: QA.tech API
  version: 1.0.0
  contact:
    name: QA.tech
    url: https://qa.tech
    email: support@qa.tech
  description: API for triggering and managing AI-powered test runs
servers:
  - url: https://api.qa.tech
    description: Production
    variables: {}
security:
  - BearerAuth: []
tags:
  - name: Runs
  - name: Infrastructure
  - name: Test Cases
  - name: Application Builds
  - name: Status badge
  - name: Remote Tunnels
  - name: Chat
  - name: Applications
  - name: Features
  - name: Metrics
  - name: Projects
  - name: Knowledge
  - name: Rules
  - name: Configs
  - name: Labels
  - name: Scenarios
  - name: Crawling
  - name: Issues
  - name: Todos
  - name: Automations
  - name: Test plans
paths:
  /v1/crawl-subdomains:
    post:
      tags:
        - Crawling
      summary: Add crawl subdomain
      description: >-
        Allow the crawler to map and analyze pages on another exact subdomain,
        such as `admin.example.com`. Returns the existing entry if the subdomain
        is already allowed.
      operationId: CreateCrawlSubdomain
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCrawlSubdomainRequest'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateCrawlSubdomainResponse'
components:
  schemas:
    CreateCrawlSubdomainRequest:
      type: object
      required:
        - subdomain
      properties:
        subdomain:
          type: string
          maxLength: 253
          pattern: ^[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
          description: >-
            Hostname to allow, such as `admin.example.com`, without scheme or
            path.
        projectShortId:
          allOf:
            - $ref: '#/components/schemas/ProjectShortId'
          description: >-
            Target a specific project by its prefixed short ID
            (proj-slug_shortId or proj_shortId), as returned by the projects
            API. Required for organization-scoped API keys; project-scoped keys
            may only pass their own project's short ID.
    CreateCrawlSubdomainResponse:
      type: object
      required:
        - success
        - subdomain
      properties:
        success:
          type: boolean
        subdomain:
          $ref: '#/components/schemas/CrawlSubdomain'
    ProjectShortId:
      type: string
      pattern: ^proj(-.+_.+|_.+)$
    CrawlSubdomain:
      type: object
      required:
        - id
        - subdomain
        - createdAt
      properties:
        id:
          type: string
          description: Subdomain id (UUID)
        subdomain:
          type: string
          description: Lowercase hostname such as `app.example.com`.
        createdAt:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.