{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/apisign-io/json-schema/apisign-io-api-key-schema.json",
  "title": "ApiKey",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apisign-io-api-keys-api-openapi.yml#/components/schemas/ApiKey",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "start": {
      "type": "string",
      "description": "First 8 characters of the key"
    },
    "permission": {
      "$ref": "#/$defs/ApiKeyPermission"
    },
    "enabled": {
      "type": "boolean"
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "ApiKeyPermission": {
      "type": "string",
      "enum": [
        "read",
        "read_write"
      ],
      "default": "read_write",
      "description": "Applies to the MCP server only; REST endpoints do not check it"
    }
  }
}