CDN API
Sure! Here's a well-formatted version of your API documentation for GitBook:
CDN Cache Clearing API
Authentication
To authenticate your API requests, include your token in the Authorization
header using the Bearer scheme:
⚠️ Important: Keep your token secure and never share it publicly. You can regenerate your token at any time from the dashboard.
Endpoint
POST /api/v1/cdn/clear-cache
POST /api/v1/cdn/clear-cache
Clears the cache for a specified CDN domain.
Request Body
domain (string, required): The CDN domain for which the cache should be cleared.
Response
Success (200 OK)
Usage Examples
cURL
JavaScript (Fetch)
JavaScript (Axios)
Last updated