A destination is storage of yours that Mynth writes finished images into, so
url on the result points at your own domain. Name it on a generation request
with its name, not its id.
The secret is write-only: it is stored in a vault and no endpoint returns it.
name cannot be changed later. Destinations
covers the path and URL templates, which is where most of the configuration
is.
Request body#
configobjectrequiredpath_templatestringrequired- ≤ 2048 characters
url_templatestringURL template used to create an image URL. It must include a
{path}which is a resolved path to file frompath_template.Example:
path_template -> "/images/{id}"
On upload
pathbecomes/images/img_si1EywtFZMvDArkcVSSsN759VFNbHtE_.webpurl_template: "https://my-cdn.my-domain.com/{path}"
The
urlin the response will be: "https://my-cdn.my-domain.com/images/img_si1EywtFZMvDArkcVSSsN759VFNbHtE_.webp"Note: The double
//are automatically removed and replaced with single slash.
namestringrequiredDestination slug. Immutable after creation. Matches /^[a-z0-9-]+$/.
≥ 1 characters≤ 64 charactersproviderobjectrequiredaccount_idstringrequiredbucketstringrequiredid"r2"requiredjurisdictionstring"default""eu""fedramp"
secretobjectrequiredaccess_key_idstringrequiredsecret_access_keystringrequired
Response#
201Destination created
dataobjectrequiredconfigjson | nullrequiredcreatedAtanyrequiredidstringrequirednamestringrequiredproviderjson | nullrequiredupdatedAtanyrequired
Errors#
A failed call names what went wrong in code, with a sentence in message. The codes, which of them are worth retrying, and how to read a validation failure are on Errors.