{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getcourier-dev/json-schema/getcourier-dev-inbox-created-schema.json",
  "title": "InboxCreated",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getcourier-dev-openapi.json#/components/schemas/InboxCreated",
  "type": "object",
  "required": [
    "success",
    "address",
    "inbox_id",
    "read_token",
    "expires_at",
    "ttl_hours",
    "paid",
    "identity",
    "alias",
    "links"
  ],
  "properties": {
    "success": {
      "const": true
    },
    "address": {
      "type": "string",
      "format": "email"
    },
    "inbox_id": {
      "type": "string"
    },
    "read_token": {
      "type": "string",
      "description": "Inbox-scoped bearer token, shown once."
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "ttl_hours": {
      "type": "integer"
    },
    "paid": {
      "type": "boolean"
    },
    "charged_credits": {
      "type": "integer",
      "description": "Credits charged. Present only for paid creations."
    },
    "balance": {
      "type": "integer",
      "description": "Remaining credit balance. Present only for paid creations."
    },
    "identity": {
      "$ref": "#/$defs/Identity"
    },
    "alias": {
      "type": "object",
      "required": [
        "alias",
        "inbox_id",
        "read_token",
        "created_at",
        "expires_at"
      ],
      "properties": {
        "alias": {
          "type": "string",
          "format": "email"
        },
        "inbox_id": {
          "type": "string"
        },
        "read_token": {
          "type": "string"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "expires_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "links": {
      "type": "object",
      "required": [
        "messages",
        "wait",
        "mcp"
      ],
      "properties": {
        "messages": {
          "type": "string"
        },
        "wait": {
          "type": "string"
        },
        "mcp": {
          "type": "string",
          "const": "/mcp"
        }
      }
    },
    "note": {
      "type": "string"
    }
  },
  "$defs": {
    "Identity": {
      "type": "object",
      "required": [
        "did",
        "public_key",
        "fingerprint"
      ],
      "properties": {
        "did": {
          "type": "string",
          "description": "did:key identifier for the Ed25519 public key (multicodec ed25519-pub, base58btc)."
        },
        "public_key": {
          "type": "string",
          "description": "base64url of the 32-byte raw Ed25519 public key."
        },
        "fingerprint": {
          "type": "string",
          "description": "First 16 hex characters of SHA-256 over the raw public key."
        },
        "private_key": {
          "type": "string",
          "description": "base64url of the PKCS8 DER private key. Returned once at creation and never stored by GetCourier."
        }
      }
    }
  }
}