SoftSolzSoftSolz
HomeAPI GuideAPI ReferenceWidget Tester

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), or { file_ids: [...] } for files already sent with POST /files or POST /files/upload-links. Allowed: png, jpg, jpeg, webp, gif, ico or pdf up to 5 MB each. SVG uploads are refused (422 svg_not_supported); put SVG graphics inline in your pages or write them as .svg site files with files/apply. When every file is refused the call answers 4xx; when only some are refused the others are saved and each refused one carries its own error. 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

Kept only in this browser
TimeStatusTook
Send a request with Try it to see it here.

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.

file_idsarray of strings

Files already sent with POST /files or POST /files/upload-links.

Response

Response Body

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

Request

curl --request POST \
--url https://app.softsolz.uk/api/v1/services/site-builder/projects/{id}/assets \
--header 'Authorization: Bearer sk_live_your_key' \
--header 'Content-Type: application/json' \
--data '{
"files": [
{
"name": "hero.jpg",
"content_base64": "/9j/4AAQ..."
}
]
}'

Credentials

Sent as a Bearer token and used in the samples above and in Try it. Kept only in this browser tab until you close it. Use an sk_test_ key to stay in your sandbox.

Response · 201

{
"data": {
"uploads": [
{
"name": "hero.jpg",
"path": "assets/hero.jpg",
"size": 182000
}
]
}
}