Secure Content Delivery Network for Masdika platform. Allows you to upload files via POST and fetch temporary files via GET. Max upload size 100MB.
Masdika CDN provides a fast and secure storage solution. You can upload files (such as images, videos, and documents) using the POST method, and retrieve them anytime using the GET method.
All API requests must include your API Key. You can pass the API Key in two ways:
Authorization: Bearer <API_KEY>?apikey=<API_KEY> to the endpoint URL.Send a POST request to https://masdika.id/api/public/upload with the request body containing the file you want to upload (form-data). You can also set the expiration time by passing an expiresIn field (options: 1d, 1w, 1m, permanent).
A simple way to test the API directly from your terminal.
Using the native fetch API and form-data library in Node.js.
A clean implementation using the popular requests library in Python.
Standard cURL implementation for PHP applications.
Uploading multipart form data using Ruby's standard net/http library.
Using Go's standard library to construct and send multipart requests.
Send a request GET to the following URL to download or view the file.