{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/listdrop-co/json-schema/listdrop-co-create-list-response-schema.json",
  "title": "CreateListResponse",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/listdrop-co-openapi.json#/components/schemas/CreateListResponse",
  "type": "object",
  "required": [
    "id",
    "message"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "List id."
    },
    "claimUrl": {
      "type": "string",
      "format": "uri",
      "description": "Keyless flow only. Secret URL: the only way to view and keep the list. Show it to the user only."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "OAuth flow only: the created list's page in the user's account."
    },
    "expiresAt": {
      "type": "integer",
      "description": "Keyless flow only: unix ms after which an unclaimed draft is purged."
    },
    "shareUrl": {
      "type": "string",
      "format": "uri",
      "description": "Present when allowed_emails was set (keyless flow): the URL the allowlisted people open — share THIS with them, never the claim URL."
    },
    "allowedEmails": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "email"
      },
      "description": "Echo of the accepted (normalized) guest list, when allowed_emails was set."
    },
    "message": {
      "type": "string",
      "description": "Instructions to relay to the user."
    }
  }
}