{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/riveterhq-com/json-schema/riveterhq-com-api-key-info-schema.json",
  "title": "ApiKeyInfo",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/riveterhq-com-account-api-openapi.yml#/components/schemas/ApiKeyInfo",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the API key"
    },
    "last_used_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the API key was last used"
    },
    "created_by": {
      "$ref": "#/$defs/User"
    }
  },
  "required": [
    "name",
    "last_used_at",
    "created_by"
  ],
  "$defs": {
    "User": {
      "type": "object",
      "properties": {
        "uuid": {
          "type": "string",
          "format": "uuid",
          "description": "User's unique identifier"
        },
        "name": {
          "type": "string",
          "description": "User's full name"
        },
        "email": {
          "type": "string",
          "format": "email",
          "description": "User's email address"
        }
      },
      "required": [
        "uuid",
        "name",
        "email"
      ]
    }
  }
}