> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/cloudeka-api/deka-cdn/create-a-new-cdn.md).

# Create a new CDN

Create a new CDN instance with specified configuration

```json
{"openapi":"3.1.1","info":{"title":"Cloudeka AI - API Documentation","version":"1.0.0"},"tags":[{"name":"Deka CDN","description":"API endpoints for Deka CDN (base: /core/cdn)"}],"servers":[{"url":"https://ai.cloudeka.id/"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"description":"Type 'Bearer ' followed by your JWT token. Example: \"Bearer eyJhbGciOi...\"","type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"ai_cdn__cdn_use_case.CDNCreateResponse":{"type":"object","properties":{"created_at":{"type":"string"},"deployment_status":{"$ref":"#/components/schemas/ai_cdn__cdn_repository.DeploymentStatus"},"domain":{"type":"string"},"id":{"type":"string"},"ip":{"type":"array","items":{"type":"string"}},"port":{"type":"integer"},"ssl":{"type":"boolean"}}},"ai_cdn__cdn_repository.DeploymentStatus":{"type":"string","enum":["created","deleting","creating","deploying","deployed","delete_error","failed","undeployed","undeploying"]},"ai_cdn__cdn_use_case.CDNCreateRequest":{"type":"object","properties":{"billing_type":{"$ref":"#/components/schemas/ai_cdn__cdn_repository.BillingType"},"domain":{"type":"string"},"ip":{"type":"array","items":{"type":"string"}},"port":{"type":"integer"},"project_id":{"type":"string"},"ssl_id":{"type":"string"}}},"ai_cdn__cdn_repository.BillingType":{"type":"string","enum":["PPU","Monthly","Fixed"]}}},"paths":{"/core/cdn/v1/cdn/create":{"post":{"description":"Create a new CDN instance with specified configuration","tags":["Deka CDN","CDN"],"summary":"Create a new CDN","responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_cdn__cdn_use_case.CDNCreateResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_cdn__cdn_use_case.CDNCreateRequest"}}},"description":"CDN configuration","required":true}}}}}
```
