Skip to main content
POST
/
distributions
Create Distribution
curl --request POST \
  --url https://api.tenbyte.com/v1/distributions \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
"{\n    \"name\": \"chaldal new\",\n    \"type\": \"custom\",\n    \"domain_type\": \"system\",\n    \"description\": \"test\",\n    \"cache_strategy\": \"vod\",\n    \"host_header\": \"cdn233.tenbyte.com.my\",\n    \"origin\": {\n        \"name\": \"chaldal\",\n        \"type\": \"s3\",\n        \"endpoint\": \"https://3aa3af49-9bdb-498c-ad02-3a0d6a865aea.s3.ap-southeast-1.wasabisys.com\",\n        \"bucket\": \"3aa3af49-9bdb-498c-ad02-3a0d6a865aea\",\n        \"region\": \"ap-southeast-2\",\n        \"access_key\": \"YOUR_ACCESS_KEY\",\n        \"secret_key\": \"YOUR_SECRET_KEY\",\n    }\n}"
'
{}

Authorizations

X-API-Key
string
header
required

Body

application/json
name
string
required

A human-readable name for the CDN distribution.

domain_type
enum<string>
required

The type of domain: custom (user-provided CNAME) or shared.

Available options:
system,
custom
cname
string
required

The custom domain that clients will use (e.g., cdn.example.com).

cache_strategy
string
required

Strategy for caching: vod, live, or static.

host_header
string
required

Host header to send to the origin server.

origin
object
required

Configuration for the origin server.

Response

200 - application/json

The response is of type object.