{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clearpolicy-app/json-schema/clearpolicy-app-create-attestation-request-body-schema.json",
  "title": "CreateAttestationRequestBody",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/clearpolicy-app-api-openapi.json#/components/schemas/CreateAttestationRequestBody",
  "type": "object",
  "required": [
    "person_id",
    "document_id"
  ],
  "properties": {
    "person_id": {
      "type": "string",
      "description": "The ULID of the person to send the request to."
    },
    "document_id": {
      "type": "string",
      "description": "The ULID of the document to send. Must have a published revision."
    },
    "requested_attestation_type": {
      "type": "string",
      "enum": [
        "signature"
      ],
      "deprecated": true,
      "description": "Deprecated. Ignored if sent. New requests always use signature (typed-name electronic signature). acknowledgment is not accepted for writes."
    },
    "recipient_message": {
      "type": "string",
      "maxLength": 5000,
      "description": "An optional message to include with the request. This message appears in the emails sent for document requests and on the attestation page."
    }
  }
}