---
updatedAt: 2026-04-29T12:20:04.000Z
agentTools:
  projectIndex: https://developers.signwell.com/llms.txt
---

# Completed PDF

Gets a completed document PDF or ZIP file. Supply the unique document ID from either a document creation request or document page URL.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "SignWell Developer API",
    "description": "API for creating, managing, and tracking electronic signature workflows.",
    "version": "v1",
    "termsOfService": "https://www.signwell.com/terms/",
    "contact": {
      "email": "support@signwell.com"
    }
  },
  "tags": [
    {
      "name": "Document",
      "description": "Create, send, and manage documents for electronic signing."
    }
  ],
  "paths": {
    "/api/v1/documents/{id}/completed_pdf": {
      "get": {
        "summary": "Completed PDF",
        "description": "Gets a completed document PDF or ZIP file. Supply the unique document ID from either a document creation request or document page URL.",
        "tags": [
          "Document"
        ],
        "security": [
          {
            "api_key": []
          }
        ],
        "operationId": "getCompletedPdf",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "$ref": "#/components/schemas/CompletedDocumentId"
            },
            "required": true
          },
          {
            "name": "url_only",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/UrlOnly"
            }
          },
          {
            "name": "audit_page",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/IncludeAuditPage"
            }
          },
          {
            "name": "file_format",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/FileFormat"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful, returns the final completed PDF, or if url_only is set to true, a JSON object is returned. When url_only=false (default), the response is the raw PDF or ZIP binary data.",
            "content": {
              "application/json": {
                "example": {
                  "file_url": "https://www.signwell.com/signed/D0dDgQgOMGuR4lXBabLKTbYjER9.pdf?audit_page=true"
                },
                "schema": {
                  "$ref": "#/components/schemas/CompletedPdfResponse"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "example": {
                  "message": "Not found",
                  "meta": {
                    "error": "record_not_found",
                    "message": "Couldn't find the document requested",
                    "messages": [
                      "Couldn't find the document requested"
                    ]
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RateLimitErrorResponse"
                }
              }
            }
          }
        },
        "x-readme": {
          "code-samples": [
            {
              "language": "ruby",
              "name": "Ruby SDK",
              "install": "gem install signwell_sdk",
              "code": "require 'signwell_sdk'\n\nSignWell.configure do |config|\n  config.api_key['X-Api-Key'] = ENV['SIGNWELL_API_KEY']\nend\n\napi = SignWell::Resources::DocumentApi.new\n\n# Get a download URL for the completed PDF\nresponse = api.get_completed_pdf('document_id', { url_only: true })\nputs response.file_url"
            }
          ]
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "X-Api-Key",
        "in": "header"
      }
    },
    "schemas": {
      "CompletedDocumentId": {
        "type": "string",
        "format": "uuid",
        "description": "Unique identifier for a completed document."
      },
      "UrlOnly": {
        "type": "boolean",
        "default": false,
        "description": "Whether to return the URL of the completed PDF or the actual PDF content. Defaults to `false`."
      },
      "IncludeAuditPage": {
        "type": "boolean",
        "default": true,
        "description": "Whether to include the audit page as part of the document. Defaults to `true`. Cannot be turned off on a 21 CFR Part 11 document: the audit page is part of the record and setting it to `false` returns a 422."
      },
      "FileFormat": {
        "type": "string",
        "enum": [
          "pdf",
          "zip"
        ],
        "description": "Format of the file to be downloaded. Supported formats are 'pdf' and 'zip'. `zip` is unavailable on a 21 CFR Part 11 document, whose completed PDF, E-Signature page and audit page stay together as one record."
      },
      "CompletedPdfResponse": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/JSON"
          },
          {
            "$ref": "#/components/schemas/PDF"
          },
          {
            "$ref": "#/components/schemas/ZIP"
          }
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "description": "Standard error response",
        "properties": {
          "message": {
            "type": "string",
            "description": "Human-readable error message"
          },
          "meta": {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "description": "Error code identifier"
              },
              "message": {
                "type": "string",
                "description": "Detailed error message"
              },
              "messages": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "List of error messages"
              }
            },
            "required": [
              "error",
              "message"
            ]
          }
        }
      },
      "RateLimitErrorResponse": {
        "type": "object",
        "description": "Rate limit exceeded error response (HTTP 429)",
        "properties": {
          "error": {
            "type": "string",
            "description": "Rate limit error message indicating the limit and reset time"
          }
        },
        "required": [
          "error"
        ]
      },
      "JSON": {
        "type": "object",
        "description": "JSON response containing the URL to the completed PDF file (returned when url_only=true)",
        "properties": {
          "file_url": {
            "type": "string",
            "format": "url",
            "description": "URL to download the completed document"
          }
        },
        "required": [
          "file_url"
        ]
      },
      "PDF": {
        "type": "string",
        "format": "binary",
        "description": "Raw PDF binary data (default response when url_only=false)"
      },
      "ZIP": {
        "type": "string",
        "format": "binary",
        "description": "ZIP file containing the completed PDF (returned when file_format=zip)"
      }
    }
  },
  "servers": [
    {
      "url": "https://www.signwell.com"
    }
  ]
}
```