Introduction
NexusEdge is a global content delivery network with 24 points of presence across Europe, Asia and North America. All endpoints are served over HTTPS with HTTP/2 and HTTP/3 support.
Base URL
https://api.nexusedge.io/v1
Authentication
All API requests must be authenticated with a Bearer token. You can generate tokens in the Domains section of the dashboard.
curl https://api.nexusedge.io/v1/domains \ -H "Authorization: Bearer $NEXUSEDGE_TOKEN"
Purge cache
Purge all cached objects for a domain, or target a specific path.
POST /v1/domains/{domain}/purge
Content-Type: application/json
{
"paths": ["/assets/app.js", "/img/*"]
}
Response format
All responses are JSON encoded and include a request_id for tracing.
{
"request_id": "req_7a3f9c21e4b0",
"status": "accepted",
"purged": 1482
}
Rate limits
- 1000 requests per minute per API token
- Purge operations: 60 per minute
- Analytics queries: 30 per minute
Errors
Errors use standard HTTP status codes. The response body includes a machine-readable code and human-readable message.
{
"error": {
"code": "domain_not_found",
"message": "No domain matching cdn03.iptsurkan.online was found in this account."
}
}