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

# Create an internal network

> Creates a new internal network for the specified workspace. Only the workspace owner can perform this action.



## OpenAPI

````yaml /api-reference/openapi.json post /api/internal-networks
openapi: 3.0.0
info:
  title: Open Attack Surface Management
  description: Open-source platform for cybersecurity Attack Surface Management (ASM)
  version: '1.0'
  contact: {}
servers:
  - url: https://{baseUrl}/api/v1
    variables:
      baseUrl:
        default: localhost:3000
        description: API server hostname with port (e.g. localhost:3000, api.example.com)
security: []
tags: []
externalDocs:
  description: Authentication Docs
  url: auth/docs
paths:
  /api/internal-networks:
    post:
      tags:
        - InternalNetworks
      summary: Create an internal network
      description: >-
        Creates a new internal network for the specified workspace. Only the
        workspace owner can perform this action.
      operationId: InternalNetworksController_createInternalNetwork
      parameters:
        - name: X-Workspace-Id
          in: header
          description: Workspace ID
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateInternalNetworkDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DefaultMessageResponseDto'
                allOf:
                  - $ref: '#/components/schemas/AppResponseSerialization'
components:
  schemas:
    CreateInternalNetworkDto:
      type: object
      properties:
        name:
          type: string
          example: Internal Network 1
          description: The name of the internal network
      required:
        - name
    DefaultMessageResponseDto:
      type: object
      properties:
        message:
          type: string
          example: Success
      required:
        - message

````