{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buildworkpro-com/json-schema/buildworkpro-com-signature-request-schema.json",
  "title": "SignatureRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buildworkpro-com-signaturerequests-api-openapi.yml#/components/schemas/SignatureRequest",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "entityType": {
      "type": "string",
      "enum": [
        "bid",
        "change_order"
      ]
    },
    "entityId": {
      "type": "integer"
    },
    "status": {
      "type": "string"
    },
    "signerName": {
      "type": [
        "string",
        "null"
      ]
    },
    "signerEmail": {
      "type": [
        "string",
        "null"
      ]
    },
    "sentAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "signedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "signedDocumentId": {
      "type": [
        "integer",
        "null"
      ]
    },
    "signingUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "Present only for callers holding signatures:send, and only while the request is pending or sent."
    }
  },
  "required": [
    "id",
    "entityType",
    "entityId",
    "status",
    "signerName",
    "signerEmail",
    "sentAt",
    "signedAt",
    "signedDocumentId"
  ]
}