Prepare the ditalini according to package directions. Rinse with cold water, drain well, and set aside.
Set a large soup pot over medium heat and add the olive oil. Once hot, add the onion, okra, celery, and carrots. Cook for 3 to 5 minutes, stirring often, until crisp-tender.
Stir in the garlic and cook for about 1 minute, just until fragrant.
Add the vegetable broth, red kidney beans, black-eyed peas, tomatoes, parsley, basil, oregano, thyme, and black pepper. Bring to a boil, then reduce the heat to low.
Cover and simmer for 20 minutes, stirring occasionally.
Uncover and stir in the spinach. Simmer for 1 to 2 minutes, until wilted. Remove from heat and stir in the cooked pasta. Adjust seasoning to taste and serve hot.