Upload From Url
Changed onDownload a file from a URL and store it.
The returned URL can be used as an attachment in start_design_task.
A URL that cannot become a file is refused with a typed code: source_url_unreachable (the fetch failed — honour retryable: a timeout or 429 is transient, a 404 is not), unusable_source_url (it redirected somewhere unfetchable) or source_url_not_a_file (the content's type is unresolvable — pass filename with the real extension — or not accepted). An upstream 5xx is a 502 upstream_error — the remote's fault, worth a retry.
Request
- Base URLhttps://api.moda.app/v1
- URLhttps://api.moda.app/v1/uploads/from-url
- AuthHTTP bearer
Headers
Calendar-dated API version pin. New integrations should pin 2026-05-01 to opt into the newest response shapes. For back-compat the server also accepts requests with no header and resolves them to the current default (today: 2026-04-12); that default advances on each sunset date. Any unsupported value returns 400 unsupported_version.
Request body
Example request
{
"folder_id": "fld_01HT9WK8N3M2J4A5Z6P7Q8R9TV"
}Response
Successful Response
Example response
{
"id": "file_01HT9WK8N3M2J4A5Z6P7Q8R9TV",
"folder_id": "fld_01HT9WK8N3M2J4A5Z6P7Q8R9TV"
}Changes
- info
added the new optional request property
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info