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".
POST
https://app.softsolz.uk/api/v1/services/site-builder/projects/{id}/assetsRecent Requests
Log in to see full request historyTimeStatusUser Agent
Make a request to see history.
Path Params
idstringrequiredHeaders
AuthorizationstringrequiredBearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.
Body Params
filesarray of objectsFiles 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": [] }}