API status
This module logs the success or failure of API calls, including timestamps and endpoint URLs. It provides a dashboard to review API status and uses Drupal's State API to avoid custom database tables.
Track the success and failure of API calls with timestamps. Works for internal or external APIs and any system-to-system integration. Uses State API — no custom tables needed.
Features
- Log API calls as 'success' or 'failed' with timestamps
- Store endpoint URLs for each API
- Dashboard at /admin/reports/api-status
- Uses State API - no database tables needed
- Works with any external API (Stripe, SendGrid, etc.)
Post-Installation
1. Enable module: drush en api_status
2. Set permissions at /admin/people/permissions
3. View dashboard at /admin/reports/api-status
4. Track APIs in your code:
$tracker = \Drupal::service('api_status.tracker');
$tracker->log('my_api', 'success', 'https://api.example.com');
Community Documentation
See README.md in the module for complete usage examples.