IAV-1141/feat(credential-validator): expose credential validation endpoints for messaging channels and WooCommerce integration
Summary
Adds a REST controller in iavia-core-n8n-service that exposes credential validation endpoints for all supported messaging channels and e-commerce integrations.
These endpoints will be consumed by iavia-agent-service-customer-care to validate credentials before agent execution.
Changes
- New controller:
CustomerCareAgentCredentialValidatorController - Delegates to existing validator services (no business logic in controller)
Endpoints Added
| Method | Path | Description |
|---|---|---|
| GET | /validate/telegram |
Validate Telegram credentials |
| GET | /validate/whatsapp |
Validate WhatsApp API + OAuth credentials |
| GET | /validate/woocommerce |
Validate WooCommerce integration credentials |
| GET | /validate/instagram/token |
Validate Instagram Pro API token |
| POST | /validate/facebook/page-token |
Validate Facebook page access token |
| POST | /validate/facebook/messenger/webhook |
Validate Facebook Messenger webhook subscription |
Consumers
-
iavia-agent-service-customer-carewill call these endpoints to verify credentials are valid and have the required permissions before running agent workflows.
Notes
- WooCommerce is an e-commerce integration, not a messaging channel
- Messaging channels: Instagram, Facebook Messenger, Telegram, WhatsApp