{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/call2me-app/json-schema/call2me-app-apikey-response-schema.json",
  "title": "APIKeyResponse",
  "description": "Response after creating an API key.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/call2me-app-api-keys-api-openapi.yml#/components/schemas/APIKeyResponse",
  "properties": {
    "key_id": {
      "type": "string",
      "title": "Key Id"
    },
    "api_key": {
      "type": "string",
      "title": "Api Key",
      "description": "The API key (only shown once!)"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "key_prefix": {
      "type": "string",
      "title": "Key Prefix"
    },
    "permissions": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Permissions"
    },
    "rate_limit": {
      "type": "integer",
      "title": "Rate Limit"
    },
    "read_only": {
      "type": "boolean",
      "title": "Read Only",
      "default": false
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "key_id",
    "api_key",
    "name",
    "key_prefix",
    "permissions",
    "rate_limit",
    "expires_at",
    "created_at"
  ]
}