← Back to Home

API Documentation

POST /upload Upload a file to the CDN.

Request Body

multipart/form-data

  • file: string (binary)

Request Example (cURL)

curl -X POST "https://cdn.dinzid.biz.id/upload" \
-F "file=@/path/to/your/file"
Parameters
Server response

                            
Response body
POST /shorten Shorten a URL.

Request Body

application/json

  • longUrl: string
  • customCode: string

Request Example (cURL)

curl -X POST "https://cdn.dinzid.biz.id/shorten" \
-H "Content-Type: application/json" \
-d '{
  "longUrl": "value",
  "customCode": "value"
}'
Parameters
Request Body (JSON)
Server response

                            
Response body
GET /{code} Redirect to a long URL or serve a file from the CDN.

Parameters

  • code (path): string

Request Example (cURL)

curl -X GET "https://cdn.dinzid.biz.id/{code}"
Parameters
Server response

                            
Response body