Create Source

​

This endpoint allows users to create image source.

Body

application/json
  • unique subdomain associated with the image source

  • values
    proxywebfolderawsgcsdostoragewasabicloudinaryazurelinodebackblazecloudflarezoom
  • This is a required field if source type is aws.

    Properties: 6
  • This is a required field if source type is azure.

    Properties: 4
  • This is a required field if source type is backblaze.

    Properties: 6
  • This is a required field if source type is cloudflare.

    Properties: 5
  • This is a required field if source type is cloudinary.

    Properties: 2
  • This is a required field if source type is dostorage.

    Properties: 5
  • This is a required field if source type is gcs.

    Properties: 2
  • This is a required field if source type is linode.

    Properties: 4
  • This is a required field if source type is proxy.

    Properties: 1
  • This is a required field if source type is wasabi.

    Properties: 5

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/image/sources
import Gumlet from '@gumlet/nodejs-sdk';

const client = new Gumlet({
  apiKey: process.env['API_KEY'], // defaults to the API_KEY env var
});

const imageSource = await client.imageSources.create({
  type: 'webfolder',
  webfolder: { base_url: 'https://www.google.com' },
  namespace: 'google-demo',
});

console.log(imageSource);
{
  "id": "6a849ee1ed1e919cbba62a7e",
  "namespace": "google-demo",
  "type": "webfolder",
  "cdn_type": "third_party",
  "cdn_cache_time": 8640000,
  "canonical_url": true,
  "browser_cache_time": 8640000,
  "is_cloudfront": false,
  "created_at": "2026-08-18T18:05:21.565Z",
  "updated_at": "2026-08-18T18:05:21.565Z",
  "webfolder": {
    "base_url": "https://www.google.com"
  },
  "default_params": {
    "format": "auto",
    "compress": "true"
  },
  "subdomain": "google-demo.gumlet.io",
  "is_active": true
}