{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/portainer/main/json-schema/portainer-portainer-apikey-schema.json",
  "title": "portainer.APIKey",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/portainer-users-api-openapi.yml#/components/schemas/portainer.APIKey",
  "properties": {
    "dateCreated": {
      "description": "Unix timestamp (UTC) when the API key was created",
      "type": "integer"
    },
    "description": {
      "type": "string"
    },
    "digest": {
      "description": "Digest represents SHA256 hash of the raw API key",
      "type": "string"
    },
    "id": {
      "type": "integer"
    },
    "lastUsed": {
      "description": "Unix timestamp (UTC) when the API key was last used",
      "type": "integer"
    },
    "prefix": {
      "description": "API key identifier (7 char prefix)",
      "type": "string"
    },
    "userId": {
      "type": "integer"
    }
  },
  "type": "object"
}