Images

Images used in articles, spaces and collections.

MethodPathSummary
GET/v1/app/kb/images/:idServe image by ID (no auth required so <img> tags work)
POST/v1/app/kb/imagesUpload an image (multipart/form-data, field name: "image")

#Serve image by ID (no auth required so <img> tags work)

GET/v1/app/kb/images/:id

Serve image by ID (no auth required so <img> tags work). Registered before the license gate below so it's resolved directly and never reaches it — every other route in this file is defined after the gate and stays covered by it regardless.

Address
https://<your-org>.brambleit.cloud/api/v1/app/kb/images/:id
Requires
None: public, or protected by a token in the address or body.

Path parameters

NameTypeDescription
idrequiredinteger

Response

A body.

Example request

Bash
curl -X GET 'https://<your-org>.brambleit.cloud/api/v1/app/kb/images/42' \
  -H "X-API-Key: $BRAMBLE_KEY"

#Upload an image (multipart/form-data, field name: "image")

POST/v1/app/kb/images
Address
https://<your-org>.brambleit.cloud/api/v1/app/kb/images
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Licence: WiKi.

Request body

multipart/form-data with the file.

Response 201

FieldTypeDescription
idinteger
urlstring
Example response
JSON
{
  "id": 42,
  "url": "https://example.com/…"
}

Errors

StatusMessage
400No image file provided
404User not found

Example request

Bash
curl -X POST 'https://<your-org>.brambleit.cloud/api/v1/app/kb/images' \
  -H "X-API-Key: $BRAMBLE_KEY"