Sauté the onion: Heat olive oil in a large pot over medium-high heat. Add the diced onion and cook for 4–5 minutes, stirring frequently, until softened and translucent.
Add vegetables and seasonings: Stir in the fire-roasted tomatoes, minced garlic, diced carrots, and diced potato. Add oregano, cumin, smoked paprika, and red pepper flakes. Cook for 1–2 minutes until fragrant.
Add the broth: Pour in the vegetable broth and add the optional bay leaves. Stir to combine.
Simmer: Bring the mixture to a boil. Reduce the heat, cover the pot, and simmer for 10–15 minutes to begin softening the vegetables.
Add the beans: Stir in the drained and rinsed pinto beans. Continue simmering for another 10 minutes, stirring occasionally, until the vegetables are tender.
Blend to your preference: Turn off the heat. Leave the soup chunky, partially blend it with an immersion blender, or transfer approximately half to a blender or separate pot for pureeing. Return the blended portion to the pot and stir well.
Adjust consistency: Add a little extra vegetable broth or water if the soup is too thick or too much liquid has evaporated.
Season and serve: Taste and adjust the salt, black pepper, and other seasonings as needed. Add a little lime juice if desired. Serve warm, garnished with fresh herbs.