{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getcourier-dev/json-schema/getcourier-dev-create-inbox-request-schema.json",
  "title": "CreateInboxRequest",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getcourier-dev-openapi.json#/components/schemas/CreateInboxRequest",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "purpose": {
      "type": "string",
      "maxLength": 200,
      "description": "Why the inbox exists. Stored with the inbox metadata."
    },
    "agent": {
      "type": "string",
      "maxLength": 100
    },
    "service": {
      "type": "string",
      "maxLength": 100
    },
    "alias": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9-]{1,30}$",
      "description": "Requested local-part prefix. A 6-character random suffix is always appended. Reserved names return 400 ALIAS_RESERVED."
    },
    "ttl_hours": {
      "type": "integer",
      "enum": [
        72,
        720
      ],
      "default": 72,
      "description": "72 hours is free; 720 hours (30 days) requires an account_key."
    }
  }
}