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

# Deploy network

> Copies `agents`, `workflows`, and `sdk_ui` from the source network (`:id`) to the target network (`target_copilot_id`). Both must belong to the caller's org. Use this to promote dev → staging → prod.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/copilots/{id}/deploy
openapi: 3.1.0
info:
  title: Sidenet API
  version: 1.0.0
  description: >-
    Sidenet HTTP endpoints exposed by the Sidenet Studio. All routes require an
    api key that can be generated through the studio in studio.sidenet.ai.
servers:
  - url: https://api.sidenet.ai
security:
  - bearerAuth: []
paths:
  /v1/copilots/{id}/deploy:
    post:
      tags:
        - Networks
      summary: Deploy network
      description: >-
        Copies `agents`, `workflows`, and `sdk_ui` from the source network
        (`:id`) to the target network (`target_copilot_id`). Both must belong to
        the caller's org. Use this to promote dev → staging → prod.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            example: a5e91c07-3f24-4b68-9d15-8c72e0b4a396
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - target_copilot_id
              properties:
                target_copilot_id:
                  type: string
                  description: >-
                    The network to overwrite — staging or prod, never the
                    source.
                  example: 0b8d4f19-5a37-4c62-8e01-6d93b2a7f584
      responses:
        '200':
          description: The target network after the copy
          content:
            application/json:
              schema:
                type: object
                properties:
                  deployed:
                    type: boolean
                  from:
                    type: string
                    format: uuid
                    description: The source network.
                  to:
                    type: string
                    format: uuid
                    description: The network that was written.
                  copilot:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      agents:
                        type: array
                        description: >-
                          Attached agents, as stored: `[{ agentId }]`, in
                          routing order.
                        items:
                          type: object
                      workflows:
                        type: array
                        description: 'Attached workflows, as stored: `[{ workflowId }]`.'
                        items:
                          type: object
                      sdk_ui:
                        type: object
                        nullable: true
                        description: The chat-widget configuration the SDK reads.
                      handoff_prompt:
                        type: string
                        nullable: true
                        description: The routing prompt the handoff classifier runs.
                      followup_instructions:
                        type: array
                        nullable: true
                        description: >-
                          Instruction blocks appended when the network handles a
                          follow-up turn.
                        items:
                          type: object
                    description: The target, now carrying the source's configuration.
        '400':
          description: Invalid body or missing headers
        '404':
          description: Source or target network not found
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Organization API key, generated in studio.sidenet.ai. Backend only —
        never in a browser.

````