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

# Duplicate Application

> Creates a copy of an existing application and returns the new
application. The copy can target a different workflow template, client,
or set of assigned users, and can optionally carry over the original
application's documents.



## OpenAPI

````yaml /openapi.yaml post /api/applications/{application_id}/duplicate
openapi: 3.0.3
info:
  title: Lendflow API docs
  description: ''
  version: 1.0.0
servers:
  - url: https://api.lendflow.com
security:
  - default: []
tags:
  - name: Authentication
    description: >-

      Lendflow uses API Bearer Tokens to permit access to our API. You can
      register for a new Lendflow API key on our <a style="color:blue;"
      href="https://app.lendflow.com/login">client portal</a> in less than 60
      seconds. The Bearer Token needs to be included in all API requests made to
      the API Service in the following form: <div
      id="auth-example">Authorization: Bearer [YOUR_TOKEN]</div><div
      id="auth-reminder"><div id="edge-green"></div><div
      id="auth-reminder-text">You must replace [YOUR_TOKEN] with your personal
      API key.</div></div>
  - name: Access Tokens
    description: |-

      Create and manage the personal access tokens used to authenticate API
      requests.
  - name: Workflow Management
    description: |-

      Create applications and manage them through every stage of their workflow,
      from intake through decision.
  - name: Documents
    description: |-

      Upload, retrieve, and manage the files attached to an application.
  - name: Placements
    description: |-

      Submit applications to lenders and manage each placement through its
      lifecycle.
  - name: Offers
    description: |-

      Create and manage offers on an application, from initial terms through
      funding.
  - name: Smartviews
    description: |-

      Save and manage reusable application filters that organize your pipeline.
  - name: Workflow Templates
    description: |-

      Browse the workflow templates available for creating applications.
  - name: Consent Templates
    description: |-

      Manage the consent documents presented to applicants for signature.
  - name: Offer Templates
    description: |-

      Manage the templates that define the structure and fields of your offers.
  - name: Data Orchestration
    description: |-

      Run data orchestration templates against applications and review their
      execution logs.
  - name: Attributes
    description: |-

      Define computed attributes and evaluate them against your applications.
  - name: Scorecards
    description: |-

      Run scorecards and scorecard groups against applications and retrieve
      their results.
  - name: Entity Profiles
    description: |-

      Manage the reusable business and individual profiles shared across
      applications.
  - name: Organization
    description: |-

      Manage the users in your organization.
  - name: Metadata
    description: |-

      Attach custom key-value data to your applications and files.
paths:
  /api/applications/{application_id}/duplicate:
    parameters:
      - in: path
        name: application_id
        description: The ID of the application.
        example: architecto
        required: true
        schema:
          type: string
    post:
      tags:
        - Workflow Management
      summary: Duplicate Application
      description: |-
        Creates a copy of an existing application and returns the new
        application. The copy can target a different workflow template, client,
        or set of assigned users, and can optionally carry over the original
        application's documents.
      parameters: []
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                funding_advisor_id:
                  type: integer
                  description: Funding advisor for application.
                  example: 16
                  nullable: true
                underwriter_id:
                  type: integer
                  description: Underwriter for application.
                  example: 16
                  nullable: true
                analyst_id:
                  type: integer
                  description: Analyst for application.
                  example: 16
                  nullable: true
                client_funding_advisor_id:
                  type: integer
                  description: Client funding advisor for application.
                  example: 16
                  nullable: true
                client_underwriter_id:
                  type: integer
                  description: Client underwriter for application.
                  example: 16
                  nullable: true
                client_analyst_id:
                  type: integer
                  description: Client analyst for application.
                  example: 16
                  nullable: true
                client_id:
                  type: string
                  description: >-
                    Client (Organization) for application. Must match an
                    existing stored value.
                  example: null
                  nullable: true
                workflow_template_id:
                  type: string
                  description: >-
                    ID of the workflow template to apply to the new application.
                    Must match an existing stored value.
                  example: null
                sync_documents:
                  type: boolean
                  description: >-
                    Whether documents from the original application are copied
                    onto the duplicate. Defaults to true.
                  example: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  data:
                    id: null
                    client_id: null
                    brand_name_id: null
                    workflow_segment: null
                    client_tracking_token: null
                    status: null
                    closing_status_id: null
                    progress: 0
                    use_of_fund_id: null
                    docusign_placeholder_id: null
                    contract_template_id: null
                    consent_template_id: null
                    funds_needed_time_id: null
                    is_business_credit: false
                    is_equipment_rental: false
                    is_data_capture: false
                    is_discovery_complete: null
                    finished_type: null
                    finished_at: null
                    amount_needed: null
                    referrer_url: null
                    source: null
                    underwriter_review_needed: null
                    created_at: null
                    updated_at: null
                    offers_declined_feedback: null
                    offers_declined_at: null
                    has_bank_data: false
                    moneythumb_book: null
                    stage: null
                    is_client_funded: false
                    repayment_percentage: 0
                    score_card_id: null
                    score_card_group_id: null
                    has_insurance: null
                    deal_mode: 1
                    workflow: 1
                    has_death_notification: false
                    tracking_tokens: []
                    priority: null
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        example: null
                        nullable: true
                      client_id:
                        type: string
                        example: null
                        nullable: true
                      brand_name_id:
                        type: string
                        example: null
                        nullable: true
                      workflow_segment:
                        type: string
                        example: null
                        nullable: true
                      client_tracking_token:
                        type: string
                        example: null
                        nullable: true
                      status:
                        type: string
                        example: null
                        nullable: true
                      closing_status_id:
                        type: string
                        example: null
                        nullable: true
                      progress:
                        type: integer
                        example: 0
                      use_of_fund_id:
                        type: string
                        example: null
                        nullable: true
                      docusign_placeholder_id:
                        type: string
                        example: null
                        nullable: true
                      contract_template_id:
                        type: string
                        example: null
                        nullable: true
                      consent_template_id:
                        type: string
                        example: null
                        nullable: true
                      funds_needed_time_id:
                        type: string
                        example: null
                        nullable: true
                      is_business_credit:
                        type: boolean
                        example: false
                      is_equipment_rental:
                        type: boolean
                        example: false
                      is_data_capture:
                        type: boolean
                        example: false
                      is_discovery_complete:
                        type: string
                        example: null
                        nullable: true
                      finished_type:
                        type: string
                        example: null
                        nullable: true
                      finished_at:
                        type: string
                        example: null
                        nullable: true
                      amount_needed:
                        type: string
                        example: null
                        nullable: true
                      referrer_url:
                        type: string
                        example: null
                        nullable: true
                      source:
                        type: string
                        example: null
                        nullable: true
                      underwriter_review_needed:
                        type: string
                        example: null
                        nullable: true
                      created_at:
                        type: string
                        example: null
                        nullable: true
                      updated_at:
                        type: string
                        example: null
                        nullable: true
                      offers_declined_feedback:
                        type: string
                        example: null
                        nullable: true
                      offers_declined_at:
                        type: string
                        example: null
                        nullable: true
                      has_bank_data:
                        type: boolean
                        example: false
                      moneythumb_book:
                        type: string
                        example: null
                        nullable: true
                      stage:
                        type: string
                        example: null
                        nullable: true
                      is_client_funded:
                        type: boolean
                        example: false
                      repayment_percentage:
                        type: integer
                        example: 0
                      score_card_id:
                        type: string
                        example: null
                        nullable: true
                      score_card_group_id:
                        type: string
                        example: null
                        nullable: true
                      has_insurance:
                        type: string
                        example: null
                        nullable: true
                      deal_mode:
                        type: integer
                        example: 1
                      workflow:
                        type: integer
                        example: 1
                      has_death_notification:
                        type: boolean
                        example: false
                      tracking_tokens:
                        type: array
                        example: []
                      priority:
                        type: string
                        example: null
                        nullable: true
components:
  securitySchemes:
    default:
      type: http
      scheme: bearer
      description: >-
        <br>You can register for a new Lendflow API key on our <a
        style="color:blue;" href="https://app.lendflow.com/login">client
        portal</a> in less than 60 seconds. The Bearer Token needs to be
        included in all API requests made to the API Service in the following
        form: <div id="auth-example">Authorization: Bearer
        [YOUR_TOKEN]</div><div id="auth-reminder"><div
        id="edge-green"></div><div id="auth-reminder-text">You must replace
        [YOUR_TOKEN] with your personal API key.</div></div>

````