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

# Generate a production export for a completed nest

> Generates an export from a completed nesting result and delivers it **asynchronously to your webhook**.

This call does **not** return the export in the response body. It validates the request, queues the export, and returns immediately with `{ "Success": true }`. When the export has been generated it is `POST`ed to the `WebHookUri` you supply.

Use `ResponseType` to choose what is produced:

- `Result` (0) — part-placement details for the result
- `Render` (1) — a base64-encoded render (SVG or PNG) of the layout
- `DXF` (2) — a base64-encoded DXF file of the nested layout
- `ReportSource` (3) — statistics and base64 renderings for report generation
- `RemnantExport` (4) — a base64-encoded zip of DXF files representing the remnants
- `Runtime` (5) — information about the result together with a render; requires runtime render settings to have been supplied on the original nesting request
- `PartsExport` (6) — a DXF export of the individual part geometry from the nesting request

Each `ResponseType` may be requested once per result by default; requesting an export you have already requested returns an error.



## OpenAPI

````yaml /openapi.json get /v1/nesting/export
openapi: 3.0.0
info:
  title: NestAPI
  version: '1.0'
servers:
  - url: https://api.nestapi.com
    description: Production
security: []
tags:
  - name: account
    description: API key and account management
  - name: admin
  - name: ApiAdmin
  - name: auth
  - name: billing
  - name: fairness
    description: >-
      Per-customer nesting-minutes fairness config, weights and usage (requires
      an Admin API key)
  - name: importer
  - name: nesting
    description: Submit nesting jobs, retrieve results and exports
  - name: plan
  - name: proxy
  - name: public
    description: Health check and public utility endpoints
  - name: subscriptionstatus
paths:
  /v1/nesting/export:
    parameters:
      - $ref: '#/components/parameters/Accept'
    get:
      tags:
        - nesting
      summary: Generate a production export for a completed nest
      description: >-
        Generates an export from a completed nesting result and delivers it
        **asynchronously to your webhook**.


        This call does **not** return the export in the response body. It
        validates the request, queues the export, and returns immediately with
        `{ "Success": true }`. When the export has been generated it is `POST`ed
        to the `WebHookUri` you supply.


        Use `ResponseType` to choose what is produced:


        - `Result` (0) — part-placement details for the result

        - `Render` (1) — a base64-encoded render (SVG or PNG) of the layout

        - `DXF` (2) — a base64-encoded DXF file of the nested layout

        - `ReportSource` (3) — statistics and base64 renderings for report
        generation

        - `RemnantExport` (4) — a base64-encoded zip of DXF files representing
        the remnants

        - `Runtime` (5) — information about the result together with a render;
        requires runtime render settings to have been supplied on the original
        nesting request

        - `PartsExport` (6) — a DXF export of the individual part geometry from
        the nesting request


        Each `ResponseType` may be requested once per result by default;
        requesting an export you have already requested returns an error.
      operationId: GenerateNestApiExport
      parameters:
        - name: RequestId
          in: query
          description: >-
            The completed job to export. This is `NestIdentifier` in the webhook
            payload, and is the id returned from the nesting endpoint.
          required: true
          x-nullable: false
          schema:
            type: string
        - name: ResultId
          in: query
          description: >-
            The specific result to export. This is `ResultIdentity` in the
            webhook payload and in `GET /v1/nesting/status`.
          required: true
          x-nullable: false
          schema:
            type: string
        - name: ResponseType
          in: query
          description: >-
            Which export to generate. Accepts the name or the integer — see the
            endpoint description for the meaning of each value.
          required: true
          x-nullable: false
          schema:
            type: string
            enum:
              - Result
              - Render
              - DXF
              - ReportSource
              - RemnantExport
              - Runtime
              - PartsExport
        - name: WebHookUri
          in: query
          schema:
            $ref: '#/components/schemas/Uri'
            type: string
          description: >-
            The URL the generated export is `POST`ed to when it is ready.
            Required — without it the export has nowhere to be delivered.
          required: true
      responses:
        '200':
          description: >-
            The export request was accepted and queued for delivery to your
            webhook.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NestApiExport'
        '401':
          description: API key is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NestApiExport'
        '429':
          description: >-
            The per-type export limit for this result has been reached. Each
            `ResponseType` may be requested once per result by default.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NestApiExport'
      deprecated: false
      security:
        - Bearer: []
components:
  parameters:
    Accept:
      name: Accept
      in: header
      description: Accept Header
      required: true
      schema:
        type: string
        enum:
          - application/json
  schemas:
    Uri:
      title: Uri
      properties: {}
      description: Uri
      type: object
    NestApiExport:
      title: NestApiExport
      properties:
        Success:
          description: >-
            `true` if the export request was accepted and queued. This is an
            acknowledgement only — the export itself is delivered later as a
            `POST` to your `WebHookUri`.
          type: boolean
          nullable: false
        Error:
          description: Error detail when `Success` is `false`; otherwise null.
          type: string
      description: NestApiExport
      type: object
  securitySchemes:
    Bearer:
      type: apiKey
      name: Authorization
      in: header

````