Developers

APIs, SDK patterns, and automation for media delivery.

Build file upload flows, content libraries, protected downloads, and media optimization into your product with clear primitives.

CDN readyAPI firstSecure delivery
Developer writing code for cloud services

Platform confidence

Designed for teams that need media to stay fast, private, and observable.

Predictable performance

Edge caching, purge controls, and delivery analytics help teams keep media responsive during launches and traffic spikes.

Controlled access

Private buckets, scoped API keys, signed URLs, and clear activity logs support safer uploads and protected delivery flows.

Human support

Migration planning, production setup, and integration guidance are available when your workflow needs an extra pair of eyes.

Implementation path

Move from current storage to production CDN delivery with a clear rollout.

Start with the assets and access rules you already have, then connect uploads, cache behavior, signed delivery, and analytics in small steps your team can verify.

01

Map assets

Review file types, regions, access rules, bandwidth, and existing origins.

02

Configure delivery

Create buckets, CDN routes, signing rules, cache policies, and upload paths.

03

Launch with visibility

Monitor requests, cache hit ratio, bandwidth, errors, and user-facing latency.

Developer experience

Simple API, serious control.

MediaCloudHub gives teams a storage layer that feels native to modern product engineering: predictable endpoints, webhooks for async workflows, signed URLs for private delivery, and observability without digging through infrastructure dashboards.

  • REST API for uploads, folders, metadata, and delivery rules
  • Scoped keys for frontend, backend, CI, and partner access
  • Realtime delivery logs, bandwidth trends, and cache insights

upload.js

const media = await mch.files.upload({
  bucket: 'production-assets',
  file: './banner-video.mp4',
  access: 'signed',
  transform: {
    video: 'streaming',
    poster: true
  }
});

return media.cdn_url;

API documentation

Upload, list, secure, and deliver media from predictable REST endpoints.

Use plain HTTP or a lightweight SDK to connect MediaCloudHub to your app, admin panel, upload workflow, or deployment pipeline.

Quick Start

PHP
<?php
// No SDK required - plain cURL against the REST API.
$apiKey = getenv('MEDIACLOUDHUB_API_KEY'); // pk_live_...
$base = 'https://app.mediacloudhub.com/api/v1';

$ch = curl_init("$base/media/upload");
curl_setopt_array($ch, [
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => ["Authorization: Bearer $apiKey"],
  CURLOPT_POST => true,
  CURLOPT_POSTFIELDS => ['file' => new CURLFile('/path/to/photo.jpg')],
]);

$response = json_decode(curl_exec($ch), true);
curl_close($ch);

echo $response['id'];  // 42
echo $response['url']; // "https://cdn.yoursite.com/media/42/stream"
API

Endpoints

Base URL: https://app.mediacloudhub.com/api/v1 ยท Auth: Authorization: Bearer <api_key>

GET/api/v1/account

Get your account, plan, and storage usage

GET/api/v1/media

List media - ?type=image&q=name&page=1

POST/api/v1/media/upload

Upload a file with multipart/form-data using the file field

POST/api/v1/media/import-url

Import a remote file using a JSON body with url

GET/api/v1/media/{id}

Get a single media item by ID

PATCH/api/v1/media/{id}

Update filename, alt_text, folder, or metadata

DELETE/api/v1/media/{id}

Delete a media item permanently

GET/api/v1/folders

List distinct folder names in your library

Use with SDK

Quick start - authenticate and list your media.

Full Docs
Installcomposer require mediacloud/php-sdk
use MediaCloud\Client;

$client = new Client('pk_live************************5XZR');

$media = $client->media()->list();
foreach ($media->items as $item) {
    echo $item->cdn_url;
}

Integration paths

Connect the way your product already works.

Backend API

Issue signed upload sessions and manage files from your application server.

Frontend uploads

Let users upload directly through short-lived keys and validated upload rules.

CI automation

Publish static assets, purge paths, and tag releases from your deployment pipeline.

API building blocks

Use simple primitives to build serious media workflows.

Upload sessions

Create controlled browser or server uploads with size limits, file validation, and destination rules.

Scoped keys

Give frontend, backend, CI, and partner integrations only the permissions they need.

Purge controls

Refresh changed content by URL, prefix, bucket, release tag, or automated deployment event.

Events and logs

Follow upload status, delivery activity, transformation results, cache behavior, and error signals.

Next step

Build against the MediaCloudHub platform.

Use the login page to access your console, or contact us for API onboarding and integration planning.

Contact us