---
title: "Download Signed Artefacts - PDF"
url: "https://developer.pexa.co.uk/apis/pexa-sign-v1-v1/versions/5e3ae08c-860a-4c76-b78b-6bb5b4ae4cba/operations/downloadSignedArtefacts"
---

> Full API specification: https://developer.pexa.co.uk/apis/pexa-sign-v1-v1/versions/5e3ae08c-860a-4c76-b78b-6bb5b4ae4cba.md

# Download Signed Artefacts - PDF

`GET` `/partner/api/platformconnect/v1/signing-instructions/{signingInstructionId}/signing-documents/{signingDocumentId}`

Operation ID: `downloadSignedArtefacts`

This API is used to download the signed document and the completion certificate, once the signing process has been completed with completion date with the PEXA organisational eSeal when applicable.

## Path parameters

- `signingInstructionId` (string, uuid, required) - Unique identifier of the signing instruction
- `signingDocumentId` (string, uuid, required) - Unique identifier of the signing document

## Query parameters

- `document_type` (string, required) - Allowed values: [`SIGNED_DOCUMENT`, `COMPLETION_CERTIFICATE`]

## Header parameters

- `X-Request-Correlation-Id` (string, optional)

## Responses

- `200` - OK
- `400` - BAD REQUEST
- `401` - UNAUTHORIZED
- `403` - FORBIDDEN
- `404` - NOT FOUND
- `409` - CONFLICT
- `500` - INTERNAL SERVER ERROR
- `503` - SERVICE UNAVAILABLE

## OpenAPI definition

```yaml
openapi: 3.0.1
info:
  title: PEXA Sign
  version: v1
servers:
  - url: https://api.pexa.co.uk
    description: API Gateway URL
paths:
  /partner/api/platformconnect/v1/signing-instructions/{signingInstructionId}/signing-documents/{signingDocumentId}:
    get:
      tags:
        - Signing
      summary: Download Signed Artefacts - PDF
      description: >
        This API is used to download the signed document and the completion
        certificate, once the signing process has been completed with completion
        date with the PEXA organisational eSeal when applicable.
      operationId: downloadSignedArtefacts
      security:
        - oauth2:
            - x-api:view:signing_instructions
            - view:signing_instructions
      parameters:
        - in: header
          name: X-Request-Correlation-Id
          schema:
            type: string
            description: The unique identifier for the request
        - name: signingInstructionId
          in: path
          required: true
          description: Unique identifier of the signing instruction
          schema:
            type: string
            format: uuid
        - name: signingDocumentId
          in: path
          required: true
          description: Unique identifier of the signing document
          schema:
            type: string
            format: uuid
        - name: document_type
          in: query
          required: true
          description: |
            Allowed values:  [`SIGNED_DOCUMENT`, `COMPLETION_CERTIFICATE`]
          schema:
            type: string
            pattern: ^(SIGNED_DOCUMENT|COMPLETION_CERTIFICATE)$
      responses:
        "200":
          description: OK
          headers:
            X-API-Version:
              schema:
                type: string
                description: The API version that was used to process the request.
            X-Request-Correlation-Id:
              schema:
                type: string
                description: The unique identifier for the request
            Content-Disposition:
              schema:
                type: string
                example: attachment;
                  filename="completion-certificate-3fa85f64-5717-4562-b3fc-2c963f66afa6.pdf"
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
                example: >
                  %PDF-1.4 1 0 obj<</Type/Catalog/Pages 2 0 R>>endobj 2 0
                  obj<</Type/Pages/Kids[3 0 R]/Count 1>>endobj 3 0
                  obj<</Type/Page/Parent 2 0 R/MediaBox[0 0 612 792]>>endobj
                  xref 0 4 0000000000 65535 f  trailer<</Size 4/Root 1 0 R>>
                  startxref 0 %%EOF
        "400":
          description: BAD REQUEST
          headers:
            X-API-Version:
              schema:
                type: string
                description: The API version that was used to process the request.
            X-Request-Correlation-Id:
              schema:
                type: string
                description: The unique identifier for the request
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                          description: Field
                        message:
                          type: string
                          description: Error message
              example:
                errors:
                  - message: "Invalid request: document_type query parameter is required"
        "401":
          description: UNAUTHORIZED
          headers:
            X-API-Version:
              schema:
                type: string
                description: The API version that was used to process the request.
            X-Request-Correlation-Id:
              schema:
                type: string
                description: The unique identifier for the request
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                          description: Field
                        message:
                          type: string
                          description: Error message
              example:
                errors:
                  - message: Access token is missing or invalid
        "403":
          description: FORBIDDEN
          headers:
            X-API-Version:
              schema:
                type: string
                description: The API version that was used to process the request.
            X-Request-Correlation-Id:
              schema:
                type: string
                description: The unique identifier for the request
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                          description: Field
                        message:
                          type: string
                          description: Error message
              example:
                errors:
                  - message: Insufficient scope or subscriber is inactive
        "404":
          description: NOT FOUND
          headers:
            X-API-Version:
              schema:
                type: string
                description: The API version that was used to process the request.
            X-Request-Correlation-Id:
              schema:
                type: string
                description: The unique identifier for the request
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                          description: Field
                        message:
                          type: string
                          description: Error message
              example:
                errors:
                  - message: Signing instruction or document not found
        "409":
          description: CONFLICT
          headers:
            X-API-Version:
              schema:
                type: string
                description: The API version that was used to process the request.
            X-Request-Correlation-Id:
              schema:
                type: string
                description: The unique identifier for the request
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                          description: Field
                        message:
                          type: string
                          description: Error message
              example:
                errors:
                  - message: Signed document is not yet available
        "500":
          description: INTERNAL SERVER ERROR
          headers:
            X-API-Version:
              schema:
                type: string
                description: The API version that was used to process the request.
            X-Request-Correlation-Id:
              schema:
                type: string
                description: The unique identifier for the request
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                          description: Field
                        message:
                          type: string
                          description: Error message
              example:
                errors:
                  - message: Internal server error
        "503":
          description: SERVICE UNAVAILABLE
          headers:
            X-API-Version:
              schema:
                type: string
                description: The API version that was used to process the request.
            X-Request-Correlation-Id:
              schema:
                type: string
                description: The unique identifier for the request
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                          description: Field
                        message:
                          type: string
                          description: Error message
              example:
                errors:
                  - message: Service under maintenance
security:
  - oauth2:
      - x-api:view:signing_instructions
      - view:signing_instructions
components:
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://login.pexauk.co.uk/oauth/token
          scopes:
            x-api:edit:signing_instructions: Permission to create signing instructions and
              cancel signing documents
            x-api:view:signing_instructions: Permission to view signing instructions and
              download signed documents
            edit:signing_instructions: Permission to create signing instructions and cancel
              signing documents
            view:signing_instructions: Permission to view signing instructions and download
              signed documents
```
