API Reference

Programmatic access to manage zones, purge cache, query analytics, and configure edge behavior.

https://api.slamcdn.com/v1

Authentication

API Key Authentication

All API requests must include your API key in the Authorization header. You can generate and manage API keys from your account dashboard.

# Include your API key in every request
curl -H "Authorization: Bearer YOUR_API_KEY" \
     "https://api.slamcdn.com/v1/zones"

Pull Zones

Create and manage CDN pull zones that cache and deliver content from your origin server.

GET/zonesList all pull zones
POST/zonesCreate a new pull zone
GET/zones/{zone_id}Get zone details
PUT/zones/{zone_id}Update zone configuration
DELETE/zones/{zone_id}Delete a pull zone

Cache & Purge

Manage cached content across all edge nodes in the global network.

POST/zones/{zone_id}/purgePurge cache by URL or tag
POST/zones/{zone_id}/purge/allPurge all cached content
GET/zones/{zone_id}/cache/statsCache hit ratio statistics

CDN Links (File Storage)

Upload, manage, and serve static files directly from the SlamCDN edge network.

GET/storage/{zone_id}/filesList files in a zone
POST/storage/{zone_id}/filesUpload a file
GET/storage/{zone_id}/files/{path}Get file metadata
DELETE/storage/{zone_id}/files/{path}Delete a file

Analytics

Query bandwidth, request, and performance metrics for your zones.

GET/analytics/{zone_id}/bandwidthBandwidth usage over time
GET/analytics/{zone_id}/requestsRequest count by status code
GET/analytics/{zone_id}/geoTraffic by country
GET/analytics/{zone_id}/top-urlsTop requested URLs

SSL Certificates

Manage SSL certificates for your custom domains.

GET/zones/{zone_id}/sslList SSL certificates
POST/zones/{zone_id}/sslProvision a new certificate
DELETE/zones/{zone_id}/ssl/{cert_id}Revoke a certificate

Rate Limits

PlanRequests/minBurst
Starter6010
Professional30050
EnterpriseCustomCustom

Rate limit headers (X-RateLimit-Remaining, X-RateLimit-Reset) are included in every response.

SDKs & Libraries

Official client libraries to get started quickly in your language of choice.

Python

pip install slamcdn

Node.js

npm i @slamcdn/sdk

Go

go get slamcdn/go-sdk

PHP

composer require slamcdn/sdk