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

# Get Signature Request File

> Obtain the file of the Signature Request by id — agreement, CoC, or merged PDF.

<Accordion title="Required scopes (OAuth 2.0)" icon="key">
  This endpoint requires one of the following scopes:

  `sign:requests.read` or `sign:requests`
</Accordion>


## OpenAPI

````yaml GET /signature_request/{signature_request_id}/file
openapi: 3.1.0
info:
  version: 1.0.0
  title: Lumin API Reference
  description: >
    The Lumin API Reference provides a comprehensive set of tools to integrate
    document workflows — including editing, eSignatures, and automation — into
    your applications.


    Useful links:

    - [Document Repository](https://github.com/luminpdf/luminsign-docs)

    - [API
    Definition](https://github.com/luminpdf/luminsign-docs/blob/main/openapi.yaml)

    - [Authentication Guide](/tabs/guides/authentication/overview)
  termsOfService: https://www.luminpdf.com/terms-of-use/
  contact:
    name: API Support
    email: integration@luminpdf.com
    url: https://help.luminpdf.com
servers:
  - url: https://api.luminpdf.com/v1
    description: Production server
security: []
tags:
  - name: Signature Requests
    description: Everything about Signature Requests
  - name: Users
    description: Everything about Users
  - name: Templates
    description: Everything about Templates
  - name: Documents
    description: Everything about Documents
  - name: Workspaces
    description: Everything about Workspaces
  - name: Agreements
    description: Everything about Agreements
paths:
  /signature_request/{signature_request_id}/file:
    get:
      tags:
        - Signature Requests
      summary: Get Signature Request File
      description: >
        Obtain the file of the Signature Request by id. This endpoint supports
        returning different types of files:

        - The **agreement** itself

        - The **Certificate of Completion (CoC)**

        - A **merged PDF** which combines both the agreement and the CoC


        **Preconditions by file type:**

        - For `agreement` file type: None

        - For `coc` file type: Requires the status to be **APPROVED** and a
        certificate must exist for that request

        - For `merged` file type: Requires the status to be **APPROVED** and
        both artifacts must exist. Lazy-generation is not performed for legacy
        requests, and developers should see errors in such cases.
      parameters:
        - in: path
          name: signature_request_id
          schema:
            type: string
          required: true
          description: ID of the Signature Request.
        - in: query
          name: type
          schema:
            type: string
            enum:
              - agreement
              - coc
              - merged
            default: agreement
          required: false
          description: |
            Which artifact to return:
            - `agreement`: The completed/signed agreement PDF
            - `coc`: The Certificate of Completion PDF  
            - `merged`: A single PDF with agreement **followed by** the CoC
      responses:
        '200':
          description: Returns the downloadable file of the Signature Request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  signed_url:
                    type: string
                    description: >-
                      Signed HTTPS URL to the requested artifact. Expires in 30
                      minutes.
                  expires_at:
                    type: integer
                    format: unix-epoch
                    description: >-
                      Unix epoch timestamp (in seconds) indicating when
                      `signed_url` will no longer work.
              example:
                signed_url: >-
                  https://files.luminpdf.com/download/nda-acmecorp-abc123.pdf?expires=20...
                expires_at: 1766726700
            application/pdf:
              schema:
                type: string
                format: binary
        4XX:
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKey: []
        - BearerAuth:
            - sign:requests.read
        - BearerAuth:
            - sign:requests
components:
  schemas:
    Error:
      type: object
      required:
        - error_code
        - error_message
      properties:
        error_code:
          type: string
          description: The system error code.
        error_message:
          type: string
          description: The human-readable error message.
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: >
        Provide your API key in the `X-API-Key` header, e.g., `X-API-Key:
        YOUR_API_KEY`.
    BearerAuth:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://auth.luminpdf.com/oauth2/auth
          tokenUrl: https://auth.luminpdf.com/oauth2/token
          scopes:
            openid: >-
              Retrieve basic identity details (username, email, profile
              picture).
            offline_access: Request a refresh token for long-lived access. Private apps only.
            profile.read: View basic user profile information.
            workspaces: View and manage Workspaces and Spaces.
            workspaces.read: View information about the authenticated user's Workspace.
            templates: View and manage templates in a Workspace.
            pdf:files: Create, edit, and delete PDF files in a Workspace.
            pdf:files.read: Retrieve PDF documents stored in a Workspace.
            sign:requests: Create, update, or view signature requests.
            sign:requests.read: Retrieve signature requests.
            agreements: Create, update, or delete AgreementGen documents.
      description: >
        OAuth 2.0 authorization code flow. Provide your access token in the
        `Authorization` header, e.g., `Authorization: Bearer <token>`. See the
        [OAuth 2.0 guide](/tabs/guides/authentication/oauth2) for details.

````