{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/verifly-email/json-schema/verifly-email-register-result-schema.json",
  "title": "RegisterResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/verifly-email-onboarding-api-openapi.yml#/components/schemas/RegisterResult",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "message": {
      "type": "string"
    },
    "account": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "email": {
          "type": "string",
          "format": "email"
        },
        "credits": {
          "type": "integer",
          "description": "Free starting credits (100)."
        }
      },
      "required": [
        "id",
        "email",
        "credits"
      ]
    },
    "api_key": {
      "type": [
        "object",
        "null"
      ],
      "description": "Full key shown only once. Null only if account creation succeeded but key generation failed.",
      "properties": {
        "key": {
          "type": "string",
          "description": "Full vf_ API key. Store immediately."
        },
        "prefix": {
          "type": "string"
        },
        "warning": {
          "type": "string"
        }
      },
      "required": [
        "key",
        "prefix",
        "warning"
      ]
    }
  },
  "required": [
    "success",
    "message",
    "account",
    "api_key"
  ]
}