> ## 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.

# 1D Nesting Request

> This endpoint requires calling with your ApiKey <br />Returns a <b>RequestId</b>. Poll <b>/nesting/status</b> and, once it reports Completed, fetch the cutting plan from <b>/nesting/1D/result</b> — or supply a <b>ResultsWebhookUri</b> to be called instead. A rejected request returns the standard <b>ResponseStatus</b> error object carrying the reason.



## OpenAPI

````yaml /openapi.json post /v1/nesting/1D
openapi: 3.0.0
info:
  title: NestAPI
  version: '1.0'
servers:
  - description: Production
    url: https://api.nestapi.com
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/1D:
    parameters:
      - $ref: '#/components/parameters/Accept'
    post:
      tags:
        - nesting
      summary: 1D Nesting Request
      description: >-
        This endpoint requires calling with your ApiKey <br />Returns a
        <b>RequestId</b>. Poll <b>/nesting/status</b> and, once it reports
        Completed, fetch the cutting plan from <b>/nesting/1D/result</b> — or
        supply a <b>ResultsWebhookUri</b> to be called instead. A rejected
        request returns the standard <b>ResponseStatus</b> error object carrying
        the reason.
      operationId: NestingRequest1D
      parameters:
        - name: Request
          in: query
          schema:
            type: string
        - name: ResultsWebhookUri
          in: query
          schema:
            type: string
        - name: AutomaticallyStartNesting
          in: query
          x-nullable: false
          schema:
            type: boolean
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NestingRequest1D'
      responses:
        '200':
          description: Request accepted. Use RequestId to track it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiNestingResult'
        '400':
          description: Invalid request — see ResponseStatus.Message.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiNestingResult'
        '401':
          description: API key is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiNestingResult'
      deprecated: false
      security:
        - Bearer: []
components:
  parameters:
    Accept:
      name: Accept
      in: header
      description: Accept Header
      required: true
      schema:
        type: string
        enum:
          - application/json
  schemas:
    NestingRequest1D:
      title: NestingRequest1D
      properties:
        Request:
          $ref: '#/components/schemas/Nesting1DRequest'
        ResultsWebhookUri:
          $ref: '#/components/schemas/Uri'
        AutomaticallyStartNesting:
          type: boolean
          nullable: false
      description: >-
        Submit a 1D (linear) nesting request for bar, tube, or profile stock.
        Returns a RequestId; collect the cutting plan from /nesting/1D/result
        once /nesting/status reports Completed.
      type: object
    ApiNestingResult:
      title: ApiNestingResult
      properties:
        RequestId:
          type: string
          nullable: false
      description: ApiNestingResult
      type: object
    Nesting1DRequest:
      title: Nesting1DRequest
      properties:
        SourceLength:
          type: number
          format: double
          nullable: false
        SourceWidth:
          type: number
          format: double
          nullable: false
        CutGap:
          type: number
          format: double
          nullable: false
        SourceQuantity:
          type: integer
          format: int32
          nullable: false
        ComputationTime:
          type: integer
          format: int32
          nullable: false
        Lengths:
          type: array
          items:
            $ref: '#/components/schemas/Nesting1DRequestLength'
      description: Nesting1DRequest
      type: object
    Uri:
      title: Uri
      properties: {}
      description: Uri
      type: object
    Nesting1DRequestLength:
      title: Nesting1DRequestLength
      properties:
        Quantity:
          type: integer
          format: int32
          nullable: false
        Length:
          type: number
          format: double
          nullable: false
      description: Nesting1DRequestLength
      type: object
  securitySchemes:
    Bearer:
      type: apiKey
      name: Authorization
      in: header

````