{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/machineinbox-com/json-schema/machineinbox-com-verification-code-response-schema.json",
  "title": "VerificationCodeResponse",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/machineinbox-com-openapi.json#/components/schemas/VerificationCodeResponse",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "found": {
      "type": "boolean"
    },
    "code": {
      "type": [
        "string",
        "null"
      ],
      "description": "The detected one-time code, or null when only links were found."
    },
    "links": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      },
      "description": "Confirmation or verification links found in the same message."
    },
    "messageId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "from": {
      "anyOf": [
        {
          "$ref": "#/$defs/Address"
        },
        {
          "type": "null"
        }
      ]
    },
    "subject": {
      "type": [
        "string",
        "null"
      ]
    },
    "receivedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "required": [
    "found",
    "code",
    "links",
    "messageId",
    "from",
    "subject",
    "receivedAt"
  ],
  "$defs": {
    "Address": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "address": {
          "type": "string",
          "format": "email"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "address"
      ]
    }
  }
}