/image/sourcesCreate an image source
Creates an image source that connects image delivery to a configured origin or proxy. Provide namespace and type, then include the configuration object required for that source type. The response includes the new source identifier and its image delivery settings.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Image source configuration. Provide namespace and type, along with the configuration object required for the selected source type.
This is a required field if source type is aws.
This is a required field if source type is azure.
This is a required field if source type is backblaze.
This is a required field if source type is cloudflare.
This is a required field if source type is cloudinary.
This is a required field if source type is dostorage.
This is a required field if source type is gcs.
This is a required field if source type is linode.
unique subdomain associated with the image source
This is a required field if source type is proxy.
Image source type: proxy, webfolder, aws, gcs, dostorage, wasabi, cloudinary, azure, linode, backblaze, cloudflare, or zoom.
This is a required field if source type is wasabi.
Web folder settings, including the base_url for the folder.
Browser cache time in seconds
CDN cache time in seconds
Source created timestamp in ISO 8601
Image source ID
Boolean flag indicating if source is active
Souce namespace
Source type
Source updated timestamp in ISO 8601
One documented failure
parameter_missingOne or more required values are missing.
One documented failure
invalid_api_keyAPI key supplied with request is invalid
One documented failure
unauthorised_feature_accessYour plan doesn't have this feature or you have reached the plan limit. Please upgrade your current plan to access this feature.
One documented failure
invalid_parameterbody must have required property '<field>'
A 400 is returned for a bad request, a 401 when the API key or bearer token is missing or invalid, a 403 when the feature is not included in the plan, and a 422 when request validation fails. namespace and type are required, and type must be one of the supported values. Include the configuration object for the selected type and its required fields, such as bucket_name, access_key, and secret for AWS.