Heat coconut oil in a large pot or Dutch oven over medium heat.
Add the diced onion and sauté for 5 minutes until softened and translucent.
Stir in garlic and ginger, cooking for another minute until fragrant.
Add curry powder, cumin, turmeric, and cayenne pepper. Stir constantly for 30 seconds to toast the spices.
Add the cubed pumpkin, chickpeas, coconut milk, vegetable broth, and tomato paste. Stir well to combine.
Bring to a boil, then reduce heat to low. Cover and simmer for 15-20 minutes, until pumpkin is tender.
If using spinach, stir it in during the last 2 minutes of cooking until wilted.
Season with salt to taste and adjust spices if needed.
Serve over basmati rice or with naan bread, garnished with fresh cilantro.