{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/faxforagents/json-schema/faxforagents-agent-key-create-schema.json",
  "title": "AgentKeyCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/faxforagents-agents-api-openapi.yml#/components/schemas/AgentKeyCreate",
  "properties": {
    "label": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "title": "Label",
      "default": "agent key"
    },
    "environment": {
      "type": "string",
      "enum": [
        "live",
        "test"
      ],
      "title": "Environment",
      "default": "test"
    },
    "scopes": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Scopes",
      "description": "Omit for the default agent set. Never approval:decide, key:admin, policy:admin, agent:admin."
    },
    "expires_in_days": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 3650.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires In Days"
    }
  },
  "additionalProperties": false,
  "type": "object"
}