{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/deadsimple-email/json-schema/deadsimple-email-inbox-created-schema.json",
  "title": "InboxCreated",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/deadsimple-email-inboxes-api-openapi.yml#/components/schemas/InboxCreated",
  "allOf": [
    {
      "$ref": "#/$defs/Inbox"
    },
    {
      "type": "object",
      "properties": {
        "credentials": {
          "$ref": "#/$defs/PaymentCredentials"
        },
        "payment": {
          "$ref": "#/$defs/PaymentSettlement"
        }
      }
    }
  ],
  "$defs": {
    "Inbox": {
      "type": "object",
      "properties": {
        "inbox_id": {
          "type": "string",
          "format": "uuid"
        },
        "workspace_id": {
          "type": "string",
          "format": "uuid"
        },
        "email": {
          "type": "string",
          "format": "email"
        },
        "local_part": {
          "type": "string"
        },
        "domain": {
          "type": "string"
        },
        "display_name": {
          "type": "string"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "paused"
          ]
        },
        "message_count": {
          "type": "integer"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "PaymentCredentials": {
      "type": "object",
      "description": "Issued once, on a payer's first paid inbox. The API key belongs to the Pay as you go account keyed on the wallet (or created for this card purchase) and has the same scoped permissions as an agent-signup key.",
      "properties": {
        "api_key": {
          "type": "string",
          "description": "Shown once."
        },
        "key_id": {
          "type": "string"
        },
        "account_id": {
          "type": "string"
        },
        "note": {
          "type": "string"
        },
        "warning": {
          "type": "string"
        }
      }
    },
    "PaymentSettlement": {
      "type": "object",
      "description": "How the call was paid. x402 gives {transaction, network, payer}; MPP gives {reference, method}.",
      "properties": {
        "transaction": {
          "type": "string",
          "description": "On-chain transaction (x402)."
        },
        "network": {
          "type": "string",
          "description": "CAIP-2 network (x402)."
        },
        "payer": {
          "type": "string",
          "description": "Payer wallet address (x402)."
        },
        "reference": {
          "type": "string",
          "description": "Stripe PaymentIntent id (MPP)."
        },
        "method": {
          "type": "string",
          "description": "Payment method (MPP)."
        }
      }
    }
  }
}