{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mailkite-dev/json-schema/mailkite-dev-get-api-app-passwords-response-schema.json",
  "title": "GetApiAppPasswordsResponse",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/mailkite-dev-openapi-generated.yml#/components/schemas/GetApiAppPasswordsResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "App password id (apw_…)."
    },
    "user_id": {
      "type": "string",
      "description": "Owning account (usr_…)."
    },
    "label": {
      "type": "string",
      "description": "User-supplied name, e.g. which client or agent holds it."
    },
    "domain_id": {
      "type": "string",
      "description": "The hosted domain this password covers (dom_…). Null only for legacy account-wide credentials."
    },
    "domain": {
      "type": "string",
      "description": "Domain name this password covers."
    },
    "address": {
      "type": "string",
      "description": "Local-part pattern within the domain."
    },
    "protocols": {
      "type": "array",
      "description": "What this password may authenticate: `imap` for IMAP LOGIN, `api` for Bearer auth on the mailbox API."
    },
    "key_prefix": {
      "type": "string",
      "description": "First characters of the secret, for display (the rest is never retrievable)."
    },
    "created_at": {
      "type": "number",
      "description": "Creation time, ms epoch."
    },
    "last_used_at": {
      "type": "number",
      "description": "Last authenticated use, ms epoch — null if never used."
    },
    "legacy": {
      "type": "boolean",
      "description": "True for pre-existing IMAP-only credentials."
    }
  }
}