{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/companydata-dk/json-schema/companydata-dk-account-response-schema.json",
  "title": "AccountResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/companydata-dk-account-api-openapi.yml#/components/schemas/AccountResponse",
  "properties": {
    "data": {
      "$ref": "#/$defs/AccountInfo",
      "description": "Account information"
    },
    "meta": {
      "additionalProperties": true,
      "type": "object",
      "title": "Meta",
      "description": "Response metadata"
    }
  },
  "type": "object",
  "required": [
    "data"
  ],
  "$defs": {
    "AccountInfo": {
      "properties": {
        "key_prefix": {
          "type": "string",
          "title": "Key Prefix",
          "description": "First characters of the API key"
        },
        "name": {
          "type": "string",
          "title": "Name",
          "description": "API key name"
        },
        "permissions": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Permissions",
          "description": "Granted permissions"
        },
        "rate_limit": {
          "additionalProperties": true,
          "type": "object",
          "title": "Rate Limit",
          "description": "Rate limit configuration"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At",
          "description": "When the API key was created"
        }
      },
      "type": "object",
      "required": [
        "key_prefix",
        "name",
        "permissions",
        "rate_limit",
        "created_at"
      ],
      "title": "AccountInfo"
    }
  }
}