{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/negativeev-com/json-schema/negativeev-com-agent-key-schema.json",
  "title": "Agent key",
  "description": "One of an account's agent keys, as listed. Never carries the plaintext.",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/negativeev-com-openapi.json#/components/schemas/AgentKey",
  "type": "object",
  "required": [
    "id",
    "name",
    "prefix",
    "created_at",
    "last_used_at",
    "revoked_at"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "prefix": {
      "type": "string",
      "description": "The key's first 12 characters."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "last_used_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "revoked_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}