{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eusend-dev/json-schema/eusend-dev-create-api-key-request-schema.json",
  "title": "CreateApiKeyRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eusend-dev-api-keys-api-openapi.yml#/components/schemas/CreateApiKeyRequest",
  "type": "object",
  "required": [
    "name"
  ],
  "additionalProperties": false,
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "test_mode": {
      "type": "boolean",
      "default": false,
      "description": "Mint an `eu_test_` key. A test key can only mint further test keys."
    },
    "permission": {
      "type": "string",
      "enum": [
        "full_access",
        "sending_access"
      ],
      "default": "full_access",
      "description": "`sending_access` reaches the send paths only; every other resource returns 403."
    },
    "domain_id": {
      "type": "string",
      "format": "uuid",
      "description": "Restrict the key to one sending domain. Valid only with `permission: sending_access`."
    }
  }
}