{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/switchlabs/main/json-schema/switchlabs-list-membership-schema.json",
  "title": "ListMembership",
  "x-generated": "2026-10-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crm-switchlabs-openapi.json#/components/schemas/ListMembership",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "list_id": {
      "type": "string"
    },
    "customer_id": {
      "type": "string"
    },
    "organization_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "subscribed",
        "unsubscribed",
        "pending"
      ]
    },
    "source": {
      "type": "string"
    },
    "subscribed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}