{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/namiq-io/json-schema/namiq-io-agent-key-response-schema.json",
  "title": "AgentKeyResponse",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/namiq-io-openapi.yml#/components/schemas/AgentKeyResponse",
  "type": "object",
  "required": [
    "ok",
    "key",
    "key_id",
    "endpoint",
    "header",
    "tier",
    "expires_at"
  ],
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "key": {
      "type": "string",
      "description": "The key. Shown once."
    },
    "key_id": {
      "type": "string",
      "description": "An identifier for the key. Not a secret."
    },
    "endpoint": {
      "type": "string",
      "description": "The MCP endpoint.",
      "format": "uri"
    },
    "header": {
      "type": "string",
      "description": "The HTTP header to send the key in."
    },
    "tier": {
      "type": "string",
      "description": "The key's tier."
    },
    "expires_at": {
      "type": "string",
      "description": "When the key expires.",
      "format": "date-time"
    },
    "lead_type": {
      "type": "string",
      "description": "M when a machine acquired it and nobody has confirmed; omitted when the address already had a lead."
    },
    "terms_version": {
      "type": "string",
      "description": "The terms version recorded."
    },
    "email_sent": {
      "type": "boolean",
      "description": "False means no delivery failure can be detected for this key."
    },
    "next": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "What to do next, in plain sentences."
    }
  }
}