Stats & Cache¶
Dashboard stats, option reads, and cache management.
- Base URL:
/wp-json/dms/v1/ - All requests require a Bearer API key - see Authentication.
Endpoints¶
| Method | Path | Capability | Purpose |
|---|---|---|---|
| GET | stats/{type_id} |
- | Dashboard stats for a type. |
| GET | options?keys=a,b |
- | Fetch specific DMS option values. |
| POST | cache/flush |
manage_settings |
Flush the DMS cache. |
GET /stats/{type_id}¶
Returns dashboard statistics for the given inventory type.
GET /options¶
Fetch specific DMS option values. The keys param is required - a comma-separated list of option keys.
curl "https://your-site.com/wp-json/dms/v1/options?keys=currency_symbol,date_format" \
-H "Authorization: Bearer YOUR_KEY"
POST /cache/flush¶
Capability: manage_settings. Clears the DMS cache - use after bulk external changes to force fresh reads.
curl -X POST "https://your-site.com/wp-json/dms/v1/cache/flush" \
-H "Authorization: Bearer YOUR_KEY"
See also¶
- REST API overview - response envelopes and capabilities.