SoftSolzSoftSolz
HomeAPI GuideAPI ReferenceWidget Tester
site builder

Upload images or PDFs to use from the pages.

Send multipart/form-data with one or more "files" parts, or a JSON body { files: [{ name, content_base64 }] } (JSON bodies are capped at 1 MB in total). Allowed: png, jpg, jpeg, webp, gif, ico, svg, pdf up to 5 MB each. Reference an upload from pages by its returned path, e.g. src="assets/hero.jpg".

POSThttps://app.softsolz.uk/api/v1/services/site-builder/projects/{id}/assets

Recent Requests

Log in to see full request history
TimeStatusUser Agent
Make a request to see history.

Path Params

idstringrequired

Headers

Authorizationstringrequired

Bearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.

Body Params

filesarray of objects

Files to store: { name, content_base64 }. Only used for JSON requests.

Response

Response Body

uploadsarray of objectsOne entry per file: { name, path, size } or { name, error }.

Request

import { SoftSolz } from '@softsolz/sdk';
const client = new SoftSolz({ apiKey: process.env.SOFTSOLZ_API_KEY });
const result = await client.siteBuilder.uploadProjectAssets('<id>', {});
console.log(result);

Credentials

Sent as a Bearer token. Stored only in your browser.

Response · 201

{
"data": {
"uploads": []
}
}