{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hempdata-io/json-schema/hempdata-io-api-response-free-key-schema.json",
  "title": "ApiResponse_FreeKey",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/hempdata-io-api-openapi.json#/components/schemas/ApiResponse_FreeKey",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "object",
      "properties": {
        "subscriber_id": {
          "type": "string"
        },
        "plan": {
          "type": "string",
          "enum": [
            "free"
          ]
        },
        "tier": {
          "type": "string",
          "description": "Always \"free\" for new keys; kept for client compatibility"
        },
        "api_key": {
          "type": "string",
          "description": "Secret key (hda_live_sk_...) — shown once, store it now"
        },
        "publishable_key": {
          "type": "string",
          "description": "Publishable key (hda_live_pk_...) for the embeddable widget"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "subscriber_id",
        "tier",
        "api_key",
        "publishable_key"
      ]
    },
    "meta": {
      "type": [
        "object",
        "null"
      ]
    },
    "errors": {
      "type": "null"
    }
  },
  "required": [
    "success",
    "data"
  ]
}