{
  "openapi": "3.1.0",
  "info": {
    "title": "ADX demo invitation intake — not data access",
    "version": "2026-09-15",
    "description": "Accept encrypted invitation requests and return pending-local-save receipts. Only saved-locally confirms a local database acknowledgement. Confirmation email follows local saving; contact verification and approval precede invitation delivery. Signup does not issue an API key or grant access. Field length checks use UTF-8 bytes. Unconfirmed payloads expire after seven days; receipts and local requests expire after 90 days."
  },
  "servers": [
    {
      "url": "https://www.dajotaappfactory.com"
    }
  ],
  "paths": {
    "/signup.php": {
      "get": {
        "operationId": "readInvitationIntakeState",
        "summary": "Read intake readiness, not data API health",
        "responses": {
          "200": {
            "description": "Intake accepts requests; data access requires separate invitation activation"
          },
          "503": {
            "description": "Intake unavailable"
          }
        }
      },
      "post": {
        "operationId": "submitOrCheckDemoInvitation",
        "summary": "Register an invitation request or check a private receipt",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "name",
                      "email",
                      "visitorType",
                      "useCase",
                      "privacyAcknowledged"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 80
                      },
                      "email": {
                        "type": "string",
                        "format": "email",
                        "maxLength": 254
                      },
                      "visitorType": {
                        "enum": [
                          "human",
                          "agent"
                        ]
                      },
                      "useCase": {
                        "type": "string",
                        "minLength": 10,
                        "maxLength": 800
                      },
                      "privacyAcknowledged": {
                        "const": true
                      },
                      "requestId": {
                        "type": "string",
                        "pattern": "^[a-zA-Z0-9_-]{16,64}$"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "action",
                      "receipt"
                    ],
                    "properties": {
                      "action": {
                        "const": "status"
                      },
                      "receipt": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{48}$"
                      }
                    }
                  }
                ]
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "name",
                      "email",
                      "visitorType",
                      "useCase",
                      "privacyAcknowledged"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 80
                      },
                      "email": {
                        "type": "string",
                        "format": "email",
                        "maxLength": 254
                      },
                      "visitorType": {
                        "enum": [
                          "human",
                          "agent"
                        ]
                      },
                      "useCase": {
                        "type": "string",
                        "minLength": 10,
                        "maxLength": 800
                      },
                      "privacyAcknowledged": {
                        "const": "yes"
                      },
                      "requestId": {
                        "type": "string",
                        "pattern": "^[a-zA-Z0-9_-]{16,64}$"
                      },
                      "companyWebsite": {
                        "const": ""
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "action",
                      "receipt"
                    ],
                    "properties": {
                      "action": {
                        "const": "status"
                      },
                      "receipt": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{48}$"
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Receipt status: pending-local-save, saved-locally or handoff-expired. Includes savedLocally, savedLocallyAt, receivedAt, queueExpiresAt and expiresAt; no contact details or key"
          },
          "202": {
            "description": "Encrypted request accepted for asynchronous local saving. Initial status pending-local-save; not yet committed locally. Save receipt; not an API credential."
          },
          "400": {
            "description": "Invalid fields, query-string parameters, JSON, host or non-HTTPS request"
          },
          "403": {
            "description": "Cross-site browser request rejected"
          },
          "404": {
            "description": "Receipt unknown or expired"
          },
          "409": {
            "description": "Request ID reused with a different payload"
          },
          "413": {
            "description": "Body exceeds 8192 bytes"
          },
          "415": {
            "description": "Unsupported content type"
          },
          "429": {
            "description": "Rate limited. Honor Retry-After."
          },
          "503": {
            "description": "Unavailable or capacity reached; no success implied"
          }
        }
      }
    }
  }
}
