Skip to main content
Base URL: https://studio.molfex.app/api/v1
Create a key at studio.molfex.app/api-keys.

Walkthrough

The upload URL expires in 1 hour. Send the raw file, not JSON. Content-Type must match data.contentType. Replace files on an existing project:
sizeBytes is required when replacing files. It must be a positive integer.

Responses

Success:
Delete success:
Error:

Slug

Lowercase letters, numbers, and hyphens. Must start and end with a letter or number. Max 63 characters. Taken slug → "That link name is already taken" Your site is https://{slug}.molfex.app. The url field in JSON is the hostname only (example: my-site.molfex.app).

Password

siteSettings is optional. Omit it for a public site.
If passwordProtected is true, password is required (4–200 characters).

File kinds and size caps

fileName decides the kind and the Content-Type you send on the PUT. Rejected fileName"Choose a zip, site, or file to host" Over the cap → "That file is too large" fileName max 255 characters. A zip may hold up to 2000 files and 1 GB uncompressed.

Project status

Publish while processing202 { "status": "processing" } Publish while paused400 "This project cannot be published" Publish before upload → 400 "Upload the file before publishing" You can republish an active project after a new upload.

Credits

Publish uses credits. Buy more in Studio if a publish fails.