{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sendly-now/json-schema/sendly-now-list-subscribe-response-schema.json",
  "title": "ListSubscribeResponse",
  "description": "Result of a list-subscribe call.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sendly-now-lists-api-openapi.yml#/components/schemas/ListSubscribeResponse",
  "properties": {
    "data": {
      "properties": {
        "confirmToken": {
          "description": "Present only when the list has doubleOptIn enabled. Sendly does not send the confirmation email — deliver /api/lists/confirm-subscription?token=<confirmToken> to the contact. Valid for 24 hours.",
          "type": "string"
        },
        "created": {
          "description": "True when the membership row did not exist before this call.",
          "type": "boolean"
        },
        "membershipId": {
          "format": "uuid",
          "type": "string"
        },
        "previousStatus": {
          "description": "Status the membership held before this call; null when it did not exist. Use this rather than `created` to describe the transition to the user.",
          "enum": [
            "PENDING",
            "CONFIRMED",
            "UNSUBSCRIBED",
            null
          ],
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "enum": [
            "PENDING",
            "CONFIRMED",
            "UNSUBSCRIBED"
          ],
          "type": "string"
        }
      },
      "required": [
        "membershipId",
        "status",
        "created",
        "previousStatus"
      ],
      "type": "object"
    },
    "success": {
      "enum": [
        true
      ],
      "type": "boolean"
    }
  },
  "required": [
    "success",
    "data"
  ],
  "type": "object"
}