{
  "openapi": "3.0.3",
  "info": {
    "title": "SignQuick API",
    "version": "1.1.0",
    "description": "SignQuick is a web app to sign PDFs and get them signed (https://signquick.app). This REST API lets you send a PDF for electronic signature, follow each signer, send reminders, cancel a request and check a sealed document.\n\nAuthentication: an API key created at https://signquick.app/developer, sent as `Authorization: Bearer sq_...`, or an OAuth 2.1 access token (the same sign-in as the MCP server). The API comes with the Business plan; other accounts get 403 `plan_required`.\n\nSignatures are simple electronic signatures (eIDAS SES, ESIGN, UETA) with an audit trail. Each signer signs on a page added at the end of the PDF; placing fields on the pages is done in the web app.\n\nThe same actions are available to AI assistants through the remote MCP server at https://signquick.app/api/mcp (docs: https://signquick.app/mcp).",
    "termsOfService": "https://signquick.app/legal/terms",
    "contact": {
      "name": "SignQuick support",
      "email": "contact@signquick.app",
      "url": "https://signquick.app/support"
    },
    "x-logo": {
      "url": "https://signquick.app/brand/signquick-icon-512.png",
      "altText": "SignQuick"
    }
  },
  "externalDocs": {
    "description": "Developer guide (webhooks, API, MCP server)",
    "url": "https://signquick.app/developers"
  },
  "servers": [
    {
      "url": "https://signquick.app",
      "description": "Production"
    }
  ],
  "security": [
    {
      "apiKey": []
    },
    {
      "oauth2": [
        "signquick:read"
      ]
    }
  ],
  "tags": [
    {
      "name": "Documents",
      "description": "PDFs stored in the account."
    },
    {
      "name": "Templates",
      "description": "Saved reusable documents."
    },
    {
      "name": "Signature requests",
      "description": "Send for signature and follow each signer."
    },
    {
      "name": "Verification",
      "description": "Public check of a sealed document. No authentication."
    }
  ],
  "paths": {
    "/api/v1/documents": {
      "get": {
        "tags": [
          "Documents"
        ],
        "operationId": "listDocuments",
        "summary": "List documents",
        "description": "The PDF documents of the account, newest first. Use an `id` as `document_id` when sending for signature.",
        "security": [
          {
            "apiKey": []
          },
          {
            "oauth2": [
              "signquick:read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items, newest first (1 to 100, default 20).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Only documents with this status, for example `draft` or `signed`.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The documents.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "documents"
                  ],
                  "properties": {
                    "documents": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Document"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired API key or access token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The account is not on the Business plan (`plan_required`), or the token lacks the scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests: the per-minute limit of the key (100 by default) was reached. See `Retry-After`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/templates": {
      "get": {
        "tags": [
          "Templates"
        ],
        "operationId": "listTemplates",
        "summary": "List templates",
        "description": "Saved templates. Use an `id` as `template_id` to send a fresh copy for signature.",
        "security": [
          {
            "apiKey": []
          },
          {
            "oauth2": [
              "signquick:read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items, newest first (1 to 100, default 20).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The templates.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "templates"
                  ],
                  "properties": {
                    "templates": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Template"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired API key or access token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The account is not on the Business plan (`plan_required`), or the token lacks the scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests: the per-minute limit of the key (100 by default) was reached. See `Retry-After`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/signatures": {
      "get": {
        "tags": [
          "Signature requests"
        ],
        "operationId": "listSignatureRequests",
        "summary": "List signature requests",
        "description": "Signature requests sent by the account, newest first, with how many signers have signed and who is still pending.",
        "security": [
          {
            "apiKey": []
          },
          {
            "oauth2": [
              "signquick:read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items, newest first (1 to 100, default 20).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "in_progress",
                "pending",
                "completed",
                "declined",
                "canceled",
                "expired"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The requests.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "signatureRequests"
                  ],
                  "properties": {
                    "signatureRequests": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SignatureRequestSummary"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired API key or access token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The account is not on the Business plan (`plan_required`), or the token lacks the scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests: the per-minute limit of the key (100 by default) was reached. See `Retry-After`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Signature requests"
        ],
        "operationId": "createSignatureRequest",
        "summary": "Send a document for signature",
        "description": "Send a PDF for signature. Give exactly one source: `document_id`, `template_id` or `pdf_base64` (a new PDF, saved to the account). With `delivery: email` (default) SignQuick e-mails each signer a personal link; with `delivery: link` nobody is e-mailed and the links are returned. Accounts whose encryption key is derived from a password answer 409 `password_key`: the server never holds that key.",
        "security": [
          {
            "apiKey": []
          },
          {
            "oauth2": [
              "signquick:write"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSignatureRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The request was created and, with delivery `email`, the invitations were sent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatedSignatureRequest"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (`invalid_title`, `missing_signers`, `invalid_email`, `invalid_source`, `not_pdf`...).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired API key or access token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The account is not on the Business plan (`plan_required`), or the token lacks the scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The document or template is not in this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The document cannot be opened on the server (`password_key`, `document_unreadable`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The PDF is larger than 10 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests: the per-minute limit of the key (100 by default) was reached. See `Retry-After`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/signatures/{id}": {
      "get": {
        "tags": [
          "Signature requests"
        ],
        "operationId": "getSignatureRequest",
        "summary": "Get a signature request",
        "description": "One request and the status of each signer. For a link-only request, the signing links still waiting are included.",
        "security": [
          {
            "apiKey": []
          },
          {
            "oauth2": [
              "signquick:read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Signature request id (UUID).",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignatureRequest"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired API key or access token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The account is not on the Business plan (`plan_required`), or the token lacks the scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found in this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests: the per-minute limit of the key (100 by default) was reached. See `Retry-After`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/signatures/{id}/remind": {
      "post": {
        "tags": [
          "Signature requests"
        ],
        "operationId": "remindSigners",
        "summary": "Remind signers",
        "description": "E-mail the signers who have not signed yet (with a signing order, only those whose turn it is). Someone e-mailed in the last 12 hours is skipped.",
        "security": [
          {
            "apiKey": []
          },
          {
            "oauth2": [
              "signquick:write"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Signature request id (UUID).",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email",
                    "description": "Remind only this signer."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Who was reminded, and who was skipped and why.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReminderResult"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired API key or access token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The account is not on the Business plan (`plan_required`), or the token lacks the scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found in this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The request is no longer open, or the signer is not waiting.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests: the per-minute limit of the key (100 by default) was reached. See `Retry-After`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/signatures/{id}/cancel": {
      "post": {
        "tags": [
          "Signature requests"
        ],
        "operationId": "cancelSignatureRequest",
        "summary": "Cancel a signature request",
        "description": "Cancel an open request: every signing link stops working. Signatures already given stay in the audit trail. Cannot be undone.",
        "security": [
          {
            "apiKey": []
          },
          {
            "oauth2": [
              "signquick:write"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Signature request id (UUID).",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Canceled.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "canceled"
                      ]
                    },
                    "note": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired API key or access token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The account is not on the Business plan (`plan_required`), or the token lacks the scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found in this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The request is already closed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests: the per-minute limit of the key (100 by default) was reached. See `Retry-After`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/verify": {
      "get": {
        "tags": [
          "Verification"
        ],
        "operationId": "verifyDocumentById",
        "summary": "Verify a sealed document by id",
        "description": "Public. The id is printed under the QR code of the SignQuick seal.",
        "security": [],
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Sealed document found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Verification"
                }
              }
            }
          },
          "404": {
            "description": "No sealed document with this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Verification"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Verification"
        ],
        "operationId": "verifyDocumentByHash",
        "summary": "Verify a sealed document by hash",
        "description": "Public. Send the SHA-256 of the signed PDF; a match means the file was not modified after signing.",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "hash"
                ],
                "properties": {
                  "hash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$",
                    "description": "SHA-256 of the PDF, lowercase hex."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Sealed document found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Verification"
                }
              }
            }
          },
          "400": {
            "description": "Not a 64-character hex hash.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No match: the file was modified or not sealed by SignQuick.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Verification"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "API key from https://signquick.app/developer (Business plan), sent as `Authorization: Bearer sq_...`. 100 requests per minute per key by default."
      },
      "oauth2": {
        "type": "oauth2",
        "description": "OAuth 2.1 authorization code with PKCE (S256). Clients can register dynamically at /api/oauth/register (RFC 7591).",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://signquick.app/oauth/authorize",
            "tokenUrl": "https://signquick.app/api/oauth/token",
            "refreshUrl": "https://signquick.app/api/oauth/token",
            "scopes": {
              "signquick:read": "See documents, templates and signature requests, and check signatures",
              "signquick:write": "Send documents for signature, remind signers and cancel requests"
            }
          }
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "Machine-readable code, for example `plan_required`."
          },
          "message": {
            "type": "string",
            "description": "What went wrong and what to do."
          }
        }
      },
      "Document": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "fileName": {
            "type": "string"
          },
          "pageCount": {
            "type": "integer",
            "nullable": true
          },
          "status": {
            "type": "string",
            "example": "draft"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "signedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "Template": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "pageCount": {
            "type": "integer",
            "nullable": true
          },
          "fields": {
            "type": "integer",
            "description": "Number of predefined fields."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "SignatureRequestSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "in_progress",
              "completed",
              "declined",
              "canceled",
              "expired"
            ]
          },
          "documentId": {
            "type": "string",
            "format": "uuid"
          },
          "signed": {
            "type": "integer",
            "description": "Signers who have signed."
          },
          "signers": {
            "type": "integer",
            "description": "Number of signers."
          },
          "pending": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            },
            "description": "Signers who have not signed or declined."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "Signer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "order": {
            "type": "integer"
          },
          "status": {
            "type": "string",
            "enum": [
              "notified",
              "viewed",
              "signed",
              "declined"
            ]
          },
          "viewedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "signedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "declinedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "declineReason": {
            "type": "string"
          },
          "signingUrl": {
            "type": "string",
            "format": "uri",
            "description": "Only for link-only requests: the personal link to hand to this signer."
          }
        }
      },
      "SignatureRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "in_progress",
              "completed",
              "declined",
              "canceled",
              "expired"
            ]
          },
          "documentId": {
            "type": "string",
            "format": "uuid"
          },
          "delivery": {
            "type": "string",
            "enum": [
              "email",
              "link"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "signers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Signer"
            }
          },
          "dashboardUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "CreateSignatureRequest": {
        "type": "object",
        "required": [
          "title",
          "signers"
        ],
        "description": "Exactly one of document_id, template_id or pdf_base64.",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "example": "NDA - Acme and Jane Doe"
          },
          "signers": {
            "type": "array",
            "minItems": 1,
            "maxItems": 20,
            "items": {
              "type": "object",
              "required": [
                "name",
                "email"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "maxLength": 120
                },
                "email": {
                  "type": "string",
                  "format": "email"
                }
              }
            }
          },
          "document_id": {
            "type": "string",
            "format": "uuid"
          },
          "template_id": {
            "type": "string",
            "format": "uuid"
          },
          "pdf_base64": {
            "type": "string",
            "format": "byte",
            "description": "A PDF up to 10 MB, base64-encoded."
          },
          "file_name": {
            "type": "string",
            "maxLength": 150
          },
          "message": {
            "type": "string",
            "maxLength": 2000,
            "description": "Included in the invitation e-mail."
          },
          "signing_order": {
            "type": "boolean",
            "default": false,
            "description": "true: one after the other, in the listed order."
          },
          "delivery": {
            "type": "string",
            "enum": [
              "email",
              "link"
            ],
            "default": "email"
          },
          "expires_in_days": {
            "type": "integer",
            "minimum": 1,
            "maximum": 90,
            "default": 30
          }
        }
      },
      "CreatedSignatureRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "in_progress"
            ]
          },
          "documentId": {
            "type": "string",
            "format": "uuid"
          },
          "newDocument": {
            "type": "boolean",
            "description": "true when a document was created from a template or pdf_base64."
          },
          "pageCount": {
            "type": "integer",
            "nullable": true
          },
          "delivery": {
            "type": "string",
            "enum": [
              "email",
              "link"
            ]
          },
          "signingOrder": {
            "type": "string",
            "enum": [
              "parallel",
              "sequential"
            ]
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "signers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Signer"
            }
          },
          "emailed": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            }
          },
          "inviteFailed": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            }
          },
          "note": {
            "type": "string"
          }
        }
      },
      "ReminderResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "reminded": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            }
          },
          "skipped": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string"
                },
                "reason": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "Verification": {
        "type": "object",
        "properties": {
          "verified": {
            "type": "boolean"
          },
          "error": {
            "type": "string"
          },
          "document": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "fileName": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "signedAt": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              },
              "signatureCount": {
                "type": "integer",
                "nullable": true
              },
              "documentHash": {
                "type": "string"
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              }
            }
          }
        }
      }
    }
  }
}
